Image.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 "Image.h"
18 
20 #include "reps/ColorBoxPointRep.h"
21 
22 using namespace hippodraw;
23 
25  : DataRep()
26 {
27  m_name = "Image";
28 
29  MapMatrixProjector * projector = new MapMatrixProjector();
30  m_projector = projector;
31  m_rep = new ColorBoxPointRep();
32 }
33 
35 {
36  return new Image ( *this );
37 }
38 
39 bool Image::acceptFunction ( int num )
40 {
41  return num == 2;
42 }
43 
44 using namespace hippodraw;
45 
46 bool
47 Image::
49 {
50  return axis == Axes::X || axis == Axes::Y || axis ==Axes::Z;
51 }
52 
53 bool
54 Image::
56 {
57  return true;
58 }
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.
virtual DataRep * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
Definition: Image.cxx:34
bool acceptFunction(int num)
Returns true if the DataRep accepts functions on number variables.
Definition: Image.cxx:39
Image()
The default constructor.
Definition: Image.cxx:24
hippodraw::Image class interface
virtual bool hasAxis(hippodraw::Axes::Type) const
Returns true if the data representation has specified axis type axis.
Definition: Image.cxx:48
hippodraw::MapMatrixProjector class interface
RepBase * m_rep
The representation used for drawing each data point in the view.
Definition: DataRep.h:94
The base class for data representations.
Definition: DataRep.h:68
A derived class of NTupleProjector that maps 1 DataSource column to a Y axis of two dimensional proje...
ProjectorBase * m_projector
A projector used to transform data to projected values that will be plotted.
Definition: DataRep.h:90
virtual bool needsMatrixSet() const
Returns true as the Image needs to have the XY matrix set in order to display itself.
Definition: Image.cxx:55
Type
Axes constants.
Definition: AxesType.h:31

Generated for HippoDraw Class Library by doxygen