Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added python bindings for changes in r9649.
- Loading branch information
|
@@ -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); |
|
|
}; |