ScatterPlot.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 "ScatterPlot.h"
18 
20 
21 namespace hippodraw {
22 
24 {
25  m_name = "Scatter Plot";
26 
27  m_projector = new Map2Projector();
29 }
30 
32 {
33  return new ScatterPlot( *this );
34 }
35 
37 {
38  return num == 1;
39 }
40 
41 bool
44 {
45  return axis == Axes::X || axis == Axes::Y;
46 }
47 
48 bool
50 hasZoomY ( ) const
51 {
52  return true;
53 }
54 
55 } // namespace hippodraw
56 
std::string m_name
The name of the display as it might be displayed in a GUI.
Definition: DataRep.h:76
A derived class of NTupleProjector that maps 2 ntuple columns to a two dimensional projection...
Definition: Map2Projector.h:29
virtual bool hasAxis(hippodraw::Axes::Type) const
Returns true if the data representation has specified axis type axis.
Definition: ScatterPlot.cxx:43
DataRep * clone()
The clone function returns an object of its own kind which is a copy of this object.
Definition: ScatterPlot.cxx:31
ScatterPlot()
The default constructor.
Definition: ScatterPlot.cxx:23
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
virtual bool acceptFunction(int number)
Returns true if number is equal to 1.
Definition: ScatterPlot.cxx:36
virtual bool hasZoomY() const
Returns true if this DataRep has zoom feature on the Y axis.
Definition: ScatterPlot.cxx:50
ProjectorBase * m_projector
A projector used to transform data to projected values that will be plotted.
Definition: DataRep.h:90
ScatterPlot class interface.
Type
Axes constants.
Definition: AxesType.h:31
hippodraw::Map2Projector class interface

Generated for HippoDraw Class Library by doxygen