18 #ifndef QGSMESHRENDERERSETTINGS_H 19 #define QGSMESHRENDERERSETTINGS_H 24 #include "qgis_core.h" 40 bool isEnabled()
const;
42 void setEnabled(
bool enabled );
45 double lineWidth()
const;
47 void setLineWidth(
double lineWidth );
52 void setColor(
const QColor &color );
55 bool mEnabled =
false;
57 QColor mColor = Qt::black;
73 QColor maxColor()
const;
75 void setMaxColor(
const QColor &maxColor );
78 QColor minColor()
const;
80 void setMinColor(
const QColor &minColor );
88 double minValue()
const;
94 void setMinValue(
double minValue );
102 double maxValue()
const;
108 void setMaxValue(
double maxValue );
111 QColor mMaxColor = QColor::fromRgb( 255, 0, 0 );
112 QColor mMinColor = QColor::fromRgb( 0, 0, 255 );
113 double mMaxValue = std::numeric_limits<double>::quiet_NaN();
114 double mMinValue = std::numeric_limits<double>::quiet_NaN();
150 double lineWidth()
const;
152 void setLineWidth(
double lineWidth );
155 QColor color()
const;
157 void setColor(
const QColor &color );
165 double filterMin()
const;
171 void setFilterMin(
double filterMin );
179 double filterMax()
const;
185 void setFilterMax(
double filterMax );
197 double minShaftLength()
const;
204 void setMinShaftLength(
double minShaftLength );
211 double maxShaftLength()
const;
218 void setMaxShaftLength(
double maxShaftLength );
225 double scaleFactor()
const;
232 void setScaleFactor(
double scaleFactor );
239 double fixedShaftLength()
const;
246 void setFixedShaftLength(
double fixedShaftLength );
249 double arrowHeadWidthRatio()
const;
251 void setArrowHeadWidthRatio(
double arrowHeadWidthRatio );
254 double arrowHeadLengthRatio()
const;
256 void setArrowHeadLengthRatio(
double arrowHeadLengthRatio );
260 QColor mColor = Qt::black;
261 double mFilterMin = -1;
262 double mFilterMax = -1;
264 double mMinShaftLength = 0.8;
265 double mMaxShaftLength = 10;
266 double mScaleFactor = 10;
267 double mFixedShaftLength = 20;
268 double mArrowHeadWidthRatio = 0.15;
269 double mArrowHeadLengthRatio = 0.40;
272 #endif //QGSMESHRENDERERSETTINGS_H Represents a mesh renderer settings for mesh object.
Represents a mesh renderer settings for scalar datasets.
Represents a mesh renderer settings for vector datasets.
Scale vector magnitude by factor scaleFactor()
const double DEFAULT_LINE_WIDTH
ArrowScalingMethod
Algorithm how to transform vector magnitude to length of arrow on the device in pixels.