YPlot.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 "YPlot.h"
18 
20 #include "reps/SymbolPointRep.h"
21 
22 namespace hippodraw {
23 
25 {
26  m_name = "Y Plot";
27 
28  Map1Projector * projector = new Map1Projector();
29 // projector -> setYErrorOption ( true );
30 
31  m_projector = projector;
33 }
34 
36 {
37  return new YPlot ( *this );
38 }
39 
40 bool YPlot::acceptFunction ( int num )
41 {
42  return num == 1;
43 }
44 
45 bool
46 YPlot::
48 {
49  return axis == Axes::X || axis == Axes::Y;
50 }
51 
52 } // namespace hippodraw
53 
std::string m_name
The name of the display as it might be displayed in a GUI.
Definition: DataRep.h:76
virtual DataRep * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
Definition: YPlot.cxx:35
hippodraw::SymbolPointRep class interface
bool acceptFunction(int num)
Returns true if the DataRep accepts functions on number variables.
Definition: YPlot.cxx:40
YPlot class interface.
RepBase * m_rep
The representation used for drawing each data point in the view.
Definition: DataRep.h:94
A PointRep class draws a symbol to represent the value.
The base class for data representations.
Definition: DataRep.h:68
YPlot()
The default constructor.
Definition: YPlot.cxx:24
ProjectorBase * m_projector
A projector used to transform data to projected values that will be plotted.
Definition: DataRep.h:90
hippodraw::Map1Projector class interface
virtual bool hasAxis(hippodraw::Axes::Type) const
Returns true if the data representation has specified axis type axis.
Definition: YPlot.cxx:47
A derived class of NTupleProjector that maps 1 DataSource column to a Y axis of two dimensional proje...
Definition: Map1Projector.h:33
Type
Axes constants.
Definition: AxesType.h:31

Generated for HippoDraw Class Library by doxygen