MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoClipBox.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_CLIP_BOX_H
14
#define SO_CLIP_BOX_H
15
16
19
20
#include "
SoUtilsSystem.h
"
21
#include <ThirdPartyWarningsDisable.h>
22
#include <Inventor/fields/SoSFBool.h>
23
#include <Inventor/fields/SoSFTrigger.h>
24
#include <Inventor/nodes/SoSeparator.h>
25
#include <Inventor/nodes/SoSubNode.h>
26
#include <Inventor/nodes/SoTransformSeparator.h>
27
#include <Inventor/nodes/SoSwitch.h>
28
#include <Inventor/nodes/SoFont.h>
29
#include <Inventor/nodes/SoClipPlane.h>
30
#include <Inventor/nodes/SoSurroundScale.h>
31
#include <Inventor/sensors/SoNodeSensor.h>
32
#include <ThirdPartyWarningsRestore.h>
33
#include "
SoPlaneDragger.h
"
34
37
42
class
SoClipBox
:
public
SoTransformSeparator
43
{
44
45
SO_NODE_HEADER(
SoClipBox
);
46
47
public
:
49
51
SoSFBool
on
;
52
54
SoSFBool
left
,
right
,
top
,
bottom
,
front
,
rear
;
55
57
SoSFBool
hideGeometry
;
58
60
SoSFTrigger
resetGeometry
;
61
63
SoSFTrigger
resetSurround
;
64
66
SoSFBool
isActive
;
67
69
SoSFRotation
rotation0
;
71
SoSFVec3f
translation0
;
73
SoSFRotation
rotation1
;
75
SoSFVec3f
translation1
;
77
SoSFRotation
rotation2
;
79
SoSFVec3f
translation2
;
81
SoSFRotation
rotation3
;
83
SoSFVec3f
translation3
;
85
SoSFRotation
rotation4
;
87
SoSFVec3f
translation4
;
89
SoSFRotation
rotation5
;
91
SoSFVec3f
translation5
;
92
94
static
void
initClass
();
95
96
// Constructor
97
SoClipBox
();
98
99
void
activityChanged
(SoField* field);
100
void
resetDraggerGeometry
(SoField* field =
nullptr
);
101
void
updateDraggerState
(SoField* field =
nullptr
);
102
void
resetSurroundChanged
(SoField* field);
103
104
protected
:
105
~SoClipBox
()
override
;
106
107
private
:
108
SoSwitch* _onScene;
109
SoSwitch* _dragSwitches[6];
110
SoClipPlane* _clipPlanes[6];
111
SoPlaneDragger
* _draggers[6];
112
SoSeparator* _dragGroup;
113
SoGroup* _clipGroup;
114
SoSurroundScale* _surround;
115
116
SoSFVec3f* _translations[6];
117
SoSFRotation* _rotations[6];
118
};
119
120
#endif
SoPlaneDragger.h
SoUtilsSystem.h
SoClipBox::translation0
SoSFVec3f translation0
translation of clip dragger 0
Definition
SoClipBox.h:71
SoClipBox::bottom
SoSFBool bottom
Definition
SoClipBox.h:54
SoClipBox::top
SoSFBool top
Definition
SoClipBox.h:54
SoClipBox::rear
SoSFBool rear
Definition
SoClipBox.h:54
SoClipBox::hideGeometry
SoSFBool hideGeometry
hide the geometry of the draggers
Definition
SoClipBox.h:57
SoClipBox::resetGeometry
SoSFTrigger resetGeometry
reset the geometry to form the standard box again
Definition
SoClipBox.h:60
SoClipBox::rotation3
SoSFRotation rotation3
rotation of clip dragger 3
Definition
SoClipBox.h:81
SoClipBox::front
SoSFBool front
Definition
SoClipBox.h:54
SoClipBox::rotation0
SoSFRotation rotation0
rotation of clip dragger 0
Definition
SoClipBox.h:69
SoClipBox::on
SoSFBool on
Fields.
Definition
SoClipBox.h:51
SoClipBox::translation2
SoSFVec3f translation2
translation of clip dragger 2
Definition
SoClipBox.h:79
SoClipBox::resetDraggerGeometry
void resetDraggerGeometry(SoField *field=nullptr)
SoClipBox::right
SoSFBool right
Definition
SoClipBox.h:54
SoClipBox::translation3
SoSFVec3f translation3
translation of clip dragger 3
Definition
SoClipBox.h:83
SoClipBox::isActive
SoSFBool isActive
shows if the clip box is currently active
Definition
SoClipBox.h:66
SoClipBox::resetSurroundChanged
void resetSurroundChanged(SoField *field)
SoClipBox::translation4
SoSFVec3f translation4
translation of clip dragger 4
Definition
SoClipBox.h:87
SoClipBox::left
SoSFBool left
switch each of the six sides on/off
Definition
SoClipBox.h:54
SoClipBox::updateDraggerState
void updateDraggerState(SoField *field=nullptr)
SoClipBox::rotation2
SoSFRotation rotation2
rotation of clip dragger 2
Definition
SoClipBox.h:77
SoClipBox::translation5
SoSFVec3f translation5
translation of clip dragger 6
Definition
SoClipBox.h:91
SoClipBox::rotation5
SoSFRotation rotation5
rotation of clip dragger 5
Definition
SoClipBox.h:89
SoClipBox::activityChanged
void activityChanged(SoField *field)
SoClipBox::translation1
SoSFVec3f translation1
translation of clip dragger 1
Definition
SoClipBox.h:75
SoClipBox::initClass
static void initClass()
inventor runtime type system init
SoClipBox::rotation1
SoSFRotation rotation1
rotation of clip dragger 1
Definition
SoClipBox.h:73
SoClipBox::resetSurround
SoSFTrigger resetSurround
reset so that the clip box surrounds the current bounding box
Definition
SoClipBox.h:63
SoClipBox::SoClipBox
SoClipBox()
SoClipBox::rotation4
SoSFRotation rotation4
rotation of clip dragger 4
Definition
SoClipBox.h:85
SoClipBox::~SoClipBox
~SoClipBox() override
SoPlaneDragger
Defines a plane dragger that can be used to manipulate a plane (and translation+rotation).
Definition
SoPlaneDragger.h:35
MeVisLab
Standard
Sources
Inventor
SoUtils
SoClipBox.h
Generated by
1.18.0