AxisRep2D.cxx
Go to the documentation of this file.
1 
12 #ifdef _MSC_VER
13 // for min()
14 #include "msdevstudio/MSconfig.h"
15 #endif
16 
17 #include "AxisRep2D.h"
18 
19 #include "graphics/ViewBase.h"
20 #include <algorithm>
21 
22 #include <cmath>
23 #include <cassert>
24 
25 using std::min;
26 using std::string;
27 using std::vector;
28 
29 using namespace hippodraw;
30 
32  : AxisRepBase ()
33 {
34 }
35 
36 AxisRep2D::AxisRep2D( const AxisRep2D & axis_rep )
37  : AxisRepBase( axis_rep )
38 {
39 }
40 
42 {
43  return new AxisRep2D( *this );
44 }
45 
46 void
49  ViewBase &, const std::string & )
50 {
51  assert( false );
52  // Should never be called.
53 }
54 
55 void
58  const TransformBase &,
59  ViewBase & )
60 {
61  // Should never be called;
62  assert( false );
63 }
The class for the 2D axes drawing.
Definition: AxisRep2D.h:39
A transform that transforms coordinates from one coordinate system to another.
Definition: TransformBase.h:35
AxisRep2D()
The default constructor.
Definition: AxisRep2D.cxx:31
virtual void drawZLabels(const AxisModelBase &axis_model, ViewBase &view, const std::string &Z_label)
Draws the labels of the z axis.
Definition: AxisRep2D.cxx:48
The AxisModelBase class maintains the Range and scaling of an axis.
Definition: AxisModelBase.h:33
The base class for the axis representation hierarchy.
Definition: AxisRepBase.h:49
The abstract base class for views.
Definition: ViewBase.h:62
hippodraw::AxisRep2D class interface
AxisRepBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
Definition: AxisRep2D.cxx:41
hippodraw::ViewBase class interface
virtual void drawAllZTicks(const AxisModelBase &axis_model, const TransformBase &transform, ViewBase &view)
Takes care of the z ticks drawing (i.e., the ticks on the top of the plot).
Definition: AxisRep2D.cxx:57

Generated for HippoDraw Class Library by doxygen