LinearTransform.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
13 #ifndef _LinearTransform_H_
14 #define _LinearTransform_H_
15 
16 #include "UnaryTransform.h"
17 
18 namespace hippodraw {
19 
20 class AxisModelBase;
21 class AxisTick;
22 
30 {
31 private:
32 
35  std::vector < AxisTick > m_ticks;
36 
37 void setFirstTick( AxisModelBase & );
38  void setTickStep( AxisModelBase & );
39  const std::vector < AxisTick > &
40  genTicks ( AxisModelBase & );
41 
42 public:
43 
45  LinearTransform ();
46 
48  LinearTransform ( const LinearTransform & );
49 
51  virtual ~LinearTransform();
52 
54 #ifdef CLONE_DEFECT
55  virtual TransformBase * clone () const;
56 #else
57  virtual LinearTransform * clone () const;
58 #endif
59 
60  bool isLinear () const;
61 
63  virtual void transform ( double & x ) const;
64 
66  virtual void inverseTransform ( double & x ) const;
67 
69  virtual void transform ( std::vector< double > & x ) const;
70 
74  virtual void validate ( Range & ) const;
75 
78  virtual const std::vector < AxisTick > &
79  setTicks ( AxisModelBase & axis );
80 
84  virtual const Range & adjustValues ( AxisModelBase & axis,
85  const Range & limit );
86 
87 };
88 
89 } // namespace hippodraw
90 
91 #endif // _LinearTransform_H_

Generated for HippoDraw Class Library by doxygen