myMarker( Plot2d::Circle ),
myLine( Plot2d::Solid ),
myLineWidth( 0 ),
- myYAxis( QwtPlot::yLeft )
+ myYAxis( QwtPlot::yLeft ),
+ myNbMarkers( 1 )
{
}
myLine = curve.getLine();
myLineWidth = curve.getLineWidth();
myPoints = curve.getPointList();
+ myNbMarkers = curve.getNbMarkers();
}
/*!
myLine = curve.getLine();
myLineWidth = curve.getLineWidth();
myPoints = curve.getPointList();
+ myNbMarkers = curve.getNbMarkers();
return *this;
}
return myMarker;
}
+/*!
+ Sets number of markers per step ( and resets AutoAssign flag ).
+*/
+void Plot2d_Curve::setNbMarkers( const int nbMarkers )
+{
+ myNbMarkers = nbMarkers;
+ myAutoAssign = false;
+}
+
+/*!
+ Gets number of markers per step ( and resets AutoAssign flag ).
+*/
+int Plot2d_Curve::getNbMarkers() const
+{
+ return myNbMarkers;
+}
+
/*!
Sets curve's line type and width ( and resets AutoAssign flag )
NOTE : A line width of 0 will produce a 1 pixel wide line using a fast algorithm for diagonals.
void setMarker( Plot2d::MarkerType );
Plot2d::MarkerType getMarker() const;
+ void setNbMarkers( const int );
+ int getNbMarkers() const;
+
void setLine( Plot2d::LineType, const int = 0 );
Plot2d::LineType getLine() const;
int getLineWidth() const;
QString myVerUnits;
QColor myColor;
Plot2d::MarkerType myMarker;
+ int myNbMarkers;
Plot2d::LineType myLine;
int myLineWidth;
QwtPlot::Axis myYAxis;