Skip to content
Permalink
Browse files

Added python bindings for changes in r9649.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9653 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Nov 17, 2008
1 parent 8ac56e6 commit 0cead3107d88fae2490824b409e6064fb5752ad3
Showing with 25 additions and 1 deletion.
  1. +19 −1 python/core/qgslabel.sip
  2. +3 −0 python/core/qgslabelattributes.sip
  3. +3 −0 python/core/qgsrendercontext.sip
@@ -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();

};

@@ -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;
@@ -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);
};

0 comments on commit 0cead31

Please sign in to comment.
You can’t perform that action at this time.