Added python bindings for changes in r9649.

git-svn-id: http://svn.osgeo.org/qgis/trunk@9653 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2008-11-17 16:04:30 +00:00
parent f5e577c2e3
commit 84eafcc8a2
3 changed files with 25 additions and 1 deletions

View File

@ -41,6 +41,11 @@ public:
LabelFieldCount
};
struct labelpoint {
QgsPoint p;
double angle;
};
/** \brief render label
* \param sizeScale global scale factor for size in pixels, labels in map units are not scaled
*/
@ -55,7 +60,7 @@ public:
void readXML(const QDomNode& node);
/** Writes the contents of the renderer to a configuration file */
// TODO: wrap void writeXML(std::ostream& xml);
void writeXML( QDomNode & label_node, QDomDocument & document );
//! add vector of required fields to existing list of fields
void addRequiredFields ( QList<int> & fields );
@ -82,5 +87,18 @@ public:
*/
QString fieldValue ( int attr, QgsFeature& feature );
/** Accessor and mutator for the minimum scale member */
void setMinScale( float theMinScale );
float minScale();
/** Accessor and mutator for the maximum scale member */
void setMaxScale( float theMaxScale );
float maxScale();
/** Accessor and mutator for the scale based visilibility flag */
void setScaleBasedVisibility( bool theVisibilityFlag );
bool scaleBasedVisibility();
};

View File

@ -68,6 +68,9 @@ public:
bool angleIsSet ( ) const;
double angle ( ) const;
bool angleIsAuto( ) const;
void setAutoAngle(bool state);
/* Alignment */
void setAlignment ( int alignment );
bool alignmentIsSet ( ) const;

View File

@ -30,6 +30,8 @@ class QgsRenderContext
bool drawEditingInformation() const;
double rendererScale() const;
//setters
/**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/
@ -40,5 +42,6 @@ class QgsRenderContext
void setRenderingStopped(bool stopped);
void setScaleFactor(double factor);
void setRasterScaleFactor(double factor);
void setRendererScale( double scale );
void setPainter(QPainter* p);
};