StripChart.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 "StripChart.h"
18 
20 #include "reps/LinePointRep.h"
21 
22 using namespace hippodraw;
23 
25 {
26  m_name = "Strip Chart";
27 
29  m_rep = new LinePointRep();
30 }
31 
33 {
34  return new StripChart ( *this );
35 }
36 
38 {
39  return num == 1;
40 }
41 
42 using namespace hippodraw;
43 
44 bool
47 {
48  return axis == Axes::X || axis == Axes::Y;
49 }
50 
51 bool
53 hasZoomY () const
54 {
55  return true;
56 }
virtual bool acceptFunction(int num)
Returns true if the DataRep accepts functions on number variables.
Definition: StripChart.cxx:37
std::string m_name
The name of the display as it might be displayed in a GUI.
Definition: DataRep.h:76
Copyright (C) 2000-2005 The Board of Trustees of The Leland Stanford Junior University.
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
virtual bool hasAxis(hippodraw::Axes::Type) const
Returns true if the data representation has specified axis type axis.
Definition: StripChart.cxx:46
virtual DataRep * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
Definition: StripChart.cxx:32
StripChart()
The default constructor.
Definition: StripChart.cxx:24
ProjectorBase * m_projector
A projector used to transform data to projected values that will be plotted.
Definition: DataRep.h:90
StripChart class interface.
A PointRep class that draws a column to represent the value.
Definition: LinePointRep.h:34
Type
Axes constants.
Definition: AxesType.h:31
virtual bool hasZoomY() const
Returns true to allow zooming on Y axis.
Definition: StripChart.cxx:53
hippodraw::LinePointRep class interface

Generated for HippoDraw Class Library by doxygen