27 #include "../../../common/StringUtils.h" 28 #include "../../../se/AnchorPoint.h" 29 #include "../../../se/Displacement.h" 30 #include "../../../se/SvgParameter.h" 31 #include "../../../se/PointPlacement.h" 32 #include "../../../se/Utils.h" 33 #include "../propertybrowser/AbstractPropertyManager.h" 43 m_pointPlacement(new
te::se::PointPlacement)
69 addProperty(pointPlacementProperty, tr(
"Point Placement"), QColor(241, 165, 61));
118 double x = value.width() / 100.;
119 double y = value.height() / 100.;
154 QSize anchorSize(50, 50);
158 QSize dispSize(0, 0);
162 int rotationValue = 0;
173 QSize anchorSize(50, 50);
180 anchorSize.setWidth(x);
181 anchorSize.setHeight(y);
189 QSize dispSize (0, 0);
200 int rotationValue = 0;
void setDisplacement(Displacement *d)
const ParameterValue * getDisplacementX() const
const AnchorPoint * getAnchorPoint() const
void setRotation(ParameterValue *r)
A Displacement gives X and Y offset displacements to use for rendering a text label, graphic or other Symbolizer near a point.
const Displacement * getDisplacement() const
TESEEXPORT double GetDouble(const te::se::ParameterValue *param)
It gets the parameter value as a double.
void setAnchorPoint(AnchorPoint *a)
PointPlacement * clone() const
It creates a new copy of this object.
const ParameterValue * getRotation() const
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
An AnchorPoint identifies the location inside of a text label to use an 'anchor' for positioning it r...
const ParameterValue * getDisplacementY() const
A widget used to define the PointPlacement se object.
void setAnchorPointX(ParameterValue *x)
void setDisplacementY(ParameterValue *y)
A PointPlacement specifies how a text label should be rendered relative to a geometric point...
static AbstractPropertyManager & getInstance()
It returns a reference to the singleton instance.
void setAnchorPointY(ParameterValue *y)
const ParameterValue * getAnchorPointX() const
void setDisplacementX(ParameterValue *x)
TESEEXPORT int GetInt(const te::se::ParameterValue *param)
It gets the parameter value as an integer.
const ParameterValue * getAnchorPointY() const