MeVisLab Resolution Independence API
Toggle main menu visibility
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
22
class
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
37
public
:
38
// ######## Fields ##############
39
41
SoSFVec3f
translation
;
42
43
// ######## Public-Functions ##########
44
46
static
void
initClass
();
47
49
SoDragger3D
();
50
52
void
setScale
(
float
scale);
53
54
protected
:
56
~SoDragger3D
()
override
;
57
58
private
:
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
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SoDragger3D::translation
SoSFVec3f translation
Position of the 3D-Dragger.
Definition
SoDragger3D.h:41
SoDragger3D::setScale
void setScale(float scale)
sets the general scale size of the dragger
SoDragger3D::initClass
static void initClass()
must be called first to initialize the class in OpenInventor
SoDragger3D::~SoDragger3D
~SoDragger3D() override
Destructor.
SoDragger3D::SoDragger3D
SoDragger3D()
Constructor.
MeVisLab
Standard
Sources
Inventor
SoUtils
SoDragger3D.h
Generated by
1.18.0