MeVisLab Resolution Independence API
SoDragger3D.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef SO_DRAGGER3_D_H
14 #define SO_DRAGGER3_D_H
15 
16 #include "SoUtilsSystem.h"
17 #include <Inventor/draggers/SoDragger.h>
18 
22 class SOUTILS_EXPORT SoDragger3D : public SoDragger {
24  SO_KIT_HEADER(SoDragger3D);
25 
26  // catalog entries for the dragger
27  SO_KIT_CATALOG_ENTRY_HEADER(dragScale);
28  SO_KIT_CATALOG_ENTRY_HEADER(drag2DSep);
29  SO_KIT_CATALOG_ENTRY_HEADER(drag2DTrafo);
30  SO_KIT_CATALOG_ENTRY_HEADER(drag2D);
31  SO_KIT_CATALOG_ENTRY_HEADER(drag1DSep);
32  SO_KIT_CATALOG_ENTRY_HEADER(drag1DTrafo);
33  SO_KIT_CATALOG_ENTRY_HEADER(drag1D);
34 
35 
36 public:
37  // ######## Fields ##############
38 
40  SoSFVec3f translation;
41 
42  // ######## Public-Functions ##########
43 
45  static void initClass();
46 
49 
51  void setScale(float scale);
52 
53 protected:
54 
56  ~SoDragger3D() override;
57 
58 private:
59 
61  void initDragger3D();
62 
63  // ####### Callback-Functions #########
64 
65  void posChangedCB(SoField*);
66  static void valueChangedCB(void*, SoDragger *myDrag);
67 
69  SoScale* _dScale;
70 
72  SoFieldSensor* _translSensor;
73 
74 }; // SoDragger3D
75 
76 #endif //_SoDragger3D_h
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition: SoUtilsSystem.h:31
SoDragger3D is a 3d dragger consisting of a 2d and 1d draggers.
Definition: SoDragger3D.h:22
SoSFVec3f translation
Position of the 3D-Dragger.
Definition: SoDragger3D.h:40
void setScale(float scale)
sets the general scale size of the dragger
static void initClass()
must be called first to initialize the class in OpenInventor
~SoDragger3D() override
Destructor.
SoDragger3D()
Constructor.