ColorPlot.cxx
Go to the documentation of this file.
1 
12 // for truncation warning in debug mode
13 #ifdef _MSC_VER
14 #include "msdevstudio/MSconfig.h"
15 #endif
16 
17 #include "ColorPlot.h"
18 
20 #include "reps/ColorBoxPointRep.h"
21 
22 
23 using namespace hippodraw;
24 
26  : DataRep ()
27 {
28  m_name = "Color Plot";
30  m_rep = new ColorBoxPointRep ();
31 }
32 
34 {
35  return new ColorPlot( *this );
36 }
37 
38 bool
40 hasAxis ( Axes::Type axis ) const
41 {
42  return axis == Axes::X || axis == Axes::Y || axis ==Axes::Z;
43 }
hippodraw::ColorBoxPointRep class interface
std::string m_name
The name of the display as it might be displayed in a GUI.
Definition: DataRep.h:76
A PointRep class that draws a colored box to represent the value.
A derived class of Hist2DProjImp and NTupleProjector that reads two columns of data and projects them...
DyHist2DProjector class implementation.
DataRep * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
Definition: ColorPlot.cxx:33
RepBase * m_rep
The representation used for drawing each data point in the view.
Definition: DataRep.h:94
ColorPlot class interface.
The base class for data representations.
Definition: DataRep.h:68
virtual bool hasAxis(hippodraw::Axes::Type) const
Returns true if the data representation has specified axis type axis.
Definition: ColorPlot.cxx:40
ProjectorBase * m_projector
A projector used to transform data to projected values that will be plotted.
Definition: DataRep.h:90
ColorPlot()
The default constructor.
Definition: ColorPlot.cxx:25
Type
Axes constants.
Definition: AxesType.h:31

Generated for HippoDraw Class Library by doxygen