MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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
22class SOUTILS_EXPORT SoDragger3D : public SoDragger
23{
25 SO_KIT_HEADER(SoDragger3D);
26
27 // catalog entries for the dragger
28 SO_KIT_CATALOG_ENTRY_HEADER(dragScale);
29 SO_KIT_CATALOG_ENTRY_HEADER(drag2DSep);
30 SO_KIT_CATALOG_ENTRY_HEADER(drag2DTrafo);
31 SO_KIT_CATALOG_ENTRY_HEADER(drag2D);
32 SO_KIT_CATALOG_ENTRY_HEADER(drag1DSep);
33 SO_KIT_CATALOG_ENTRY_HEADER(drag1DTrafo);
34 SO_KIT_CATALOG_ENTRY_HEADER(drag1D);
35
36
37public:
38 // ######## Fields ##############
39
42
43 // ######## Public-Functions ##########
44
46 static void initClass();
47
50
52 void setScale(float scale);
53
54protected:
56 ~SoDragger3D() override;
57
58private:
60 void initDragger3D();
61
62 // ####### Callback-Functions #########
63
64 void posChangedCB(SoField*);
65 static void valueChangedCB(void*, SoDragger* myDrag);
66
68 SoScale* _dScale;
69
71 SoFieldSensor* _translSensor;
72
73}; // SoDragger3D
74
75#endif //_SoDragger3D_h
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
SoDragger3D is a 3d dragger consisting of a 2d and 1d draggers.
Definition SoDragger3D.h:23
SoSFVec3f translation
Position of the 3D-Dragger.
Definition SoDragger3D.h:41
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.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.