Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TransformNode.hh
1 #ifndef __TransformNode_HH__
2 #define __TransformNode_HH__
3 
4 #include <bias_config.h>
5 
6 #ifndef BIAS_HAVE_OPENGL
7 # error You need OpenGL. Please recompile BIAS with USE_OpenGL on.
8 #endif
9 #include <Base/Math/Vector3.hh>
10 
11 namespace BIAS
12 {
13 
14  /** @class TransformNode
15  @author grauel
16  @ingroup g_glviewer
17  @brief interface for transformations edited by a TrackballTransController
18  */
19  class BIASGLviewer_EXPORT TransformNode
20  {
21 
22  public:
23 
25  virtual ~TransformNode(){};
26 
27  /// this methods will be called by the TrackballTransControl
28  virtual bool AddTranslation(const BIAS::Vector3<double>& transl){ return false; };
29  virtual bool SetTranslation(const BIAS::Vector3<double>& transl){ return false; };
30  virtual bool GetTranslation(BIAS::Vector3<double>& transl){ return false; };
31 
32  virtual bool Rotate(const BIAS::Vector3<double>& axis,
33  double rotationAngleRAD){ return false; };
34  virtual bool Scale(const BIAS::Vector3<double>& scale){ return false; };
35 
36  }; // end class
37 
38 } // end of namespace
39 
40 #endif
virtual bool SetTranslation(const BIAS::Vector3< double > &transl)
interface for transformations edited by a TrackballTransController
virtual bool GetTranslation(BIAS::Vector3< double > &transl)
virtual bool AddTranslation(const BIAS::Vector3< double > &transl)
this methods will be called by the TrackballTransControl
virtual bool Scale(const BIAS::Vector3< double > &scale)
virtual bool Rotate(const BIAS::Vector3< double > &axis, double rotationAngleRAD)
virtual ~TransformNode()