ProfileHist.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 "ProfileHist.h"
18 
20 #include "reps/SymbolPointRep.h"
21 
22 namespace hippodraw {
23 
25 {
26  m_name = "Profile";
27 
30  setErrorDisplay ( Axes::Y, true );
31 }
32 
34 {
35  return new ProfileHist ( *this );
36 }
37 
39 {
40  return num == 1;
41 }
42 
43 bool
46 {
47  return true;
48 }
49 
50 bool
53 {
54  return axis == Axes::X || axis == Axes::Y;
55 }
56 
57 } // namespace hippodraw
58 
std::string m_name
The name of the display as it might be displayed in a GUI.
Definition: DataRep.h:76
hippodraw::SymbolPointRep class interface
A derived class of BinningProjector which projects to a profile display.
ProfileProjector class interface.
void setErrorDisplay(Axes::Type axis, bool)
Sets the display of error bar, if applicable, on the specified axis.
Definition: DataRep.cxx:186
ProfileHist()
The default constructor.
Definition: ProfileHist.cxx:24
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 hasErrorDisplay() const
Returns true.
Definition: ProfileHist.cxx:45
virtual bool hasAxis(hippodraw::Axes::Type) const
Returns true if the data representation has specified axis type axis.
Definition: ProfileHist.cxx:52
ProjectorBase * m_projector
A projector used to transform data to projected values that will be plotted.
Definition: DataRep.h:90
virtual DataRep * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
Definition: ProfileHist.cxx:33
ProfileHist class interface.
Type
Axes constants.
Definition: AxesType.h:31
virtual bool acceptFunction(int num)
Returns true if the DataRep accepts functions on number variables.
Definition: ProfileHist.cxx:38

Generated for HippoDraw Class Library by doxygen