Isis 3 Programmer Reference
PlotCurve.h
Go to the documentation of this file.
1 #ifndef PlotCurve_h
2 #define PlotCurve_h
3 
26 #include <qwt_plot.h>
27 #include <qwt_plot_curve.h>
28 #include <qwt_plot_marker.h>
29 #include <qwt_symbol.h>
30 #include <qwt_plot_marker.h>
31 
32 namespace Isis {
44  class PlotCurve : public QwtPlotCurve {
45 
46  public:
54  enum Units {
93  };
94 
96  ~PlotCurve();
97 
98  void attachMarkers();
99 
100  QColor color() const;
101  QwtSymbol *markerSymbol() const;
102  Units xUnits() const;
103  Units yUnits() const;
104 
105  void setColor(const QColor &color);
106  void setData(QwtSeriesData<QPointF> *data);
107  void setPen(const QPen &pen);
108  void setMarkerSymbol(QwtSymbol::Style style);
109  void setMarkerVisible(bool visible);
110 
111  protected:
112  QByteArray fromByteArray(const QByteArray &classData);
113  QByteArray toByteArray() const;
114 
115  private:
116  PlotCurve(const PlotCurve &other);
117  PlotCurve &operator=(const PlotCurve &other);
118 
119  void clearMarkers();
120  void recreateMarkers();
121 
122  private:
123  QColor m_color;
124  QwtSymbol *m_markerSymbol;
125  QList<QwtPlotMarker *> m_valuePointMarkers;
126  Units m_xUnits;
127  Units m_yUnits;
128  };
129 };
130 #endif
void setMarkerVisible(bool visible)
This method sets the visibility states of the markers at each value point.
Definition: PlotCurve.cpp:131
QwtSymbol * m_markerSymbol
Marker&#39;s styles.
Definition: PlotCurve.h:124
void attachMarkers()
After attaching this curve to a plot, due to an inheritance/implementation complication with qwt the ...
Definition: PlotCurve.cpp:46
The data is a Cube DN value.
Definition: PlotCurve.h:67
QwtSymbol * markerSymbol() const
This method returns the shape of the markers.
Definition: PlotCurve.cpp:66
The data is a percentage (0-100).
Definition: PlotCurve.h:75
The data is a wavelength.
Definition: PlotCurve.h:92
PlotCurve(Units xUnits, Units yUnits)
Constructs and instance of a PlotCurve with some default properties.
Definition: PlotCurve.cpp:22
QColor color() const
This method returns the color of the curve.
Definition: PlotCurve.cpp:56
void setColor(const QColor &color)
Set the color of this curve and it&#39;s markers.
Definition: PlotCurve.cpp:97
The data is a pixel #.
Definition: PlotCurve.h:79
Units xUnits() const
Get the units of the x-axis double data.
Definition: PlotCurve.cpp:76
QByteArray fromByteArray(const QByteArray &classData)
Construct the plot curve given the past results of toByteArray(...).
Definition: PlotCurve.cpp:145
void setData(QwtSeriesData< QPointF > *data)
This method sets the data for the curve, then sets the value for the markers associated with the curv...
Definition: PlotCurve.cpp:109
The data is an elevation (in meters).
Definition: PlotCurve.h:71
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
The data is in meters.
Definition: PlotCurve.h:83
The data is a band number.
Definition: PlotCurve.h:63
void setPen(const QPen &pen)
Sets the plot pen to the passed-in pen.
Definition: PlotCurve.cpp:340
The data is in kilometers.
Definition: PlotCurve.h:87
Units yUnits() const
Get the units of the y-axis double data.
Definition: PlotCurve.cpp:86
void setMarkerSymbol(QwtSymbol::Style style)
This method sets the shape of the markers.
Definition: PlotCurve.cpp:120
The data units are not yet known.
Definition: PlotCurve.h:59
Units
These are all the possible units for the x or y data in a plot curve.
Definition: PlotCurve.h:54