MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoPlaneSync.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_PLANE_SYNC_H
14
#define SO_PLANE_SYNC_H
15
16
19
20
// This node calculates a new translation from a translation, a rotation
21
// and a distance factor. It is especially useful to synchronize two
22
// clipping planes.
23
24
25
#include "
SoUtilsSystem.h
"
26
27
#include "Inventor/nodes/SoGroup.h"
28
#include "Inventor/fields/SoSFRotation.h"
29
#include "Inventor/sensors/SoFieldSensor.h"
30
31
//----------------------------------------------------------------------------------
34
//----------------------------------------------------------------------------------
35
class
SoPlaneSync
:
public
SoGroup
36
{
37
38
SO_NODE_HEADER(
SoPlaneSync
);
39
40
public
:
42
SoPlaneSync
();
43
45
static
void
initClass
();
46
48
SoSFVec3f
translation
;
49
51
SoSFRotation
rotation
;
52
54
SoSFFloat
distanceFactor
;
55
57
SoSFVec3f
translationOutput
;
58
60
SoSFRotation
rotationOutput
;
61
62
protected
:
64
~SoPlaneSync
()
override
{};
65
66
private
:
68
void
_calculateOutput(SoField*);
70
};
71
72
#endif
SoUtilsSystem.h
SoPlaneSync::translation
SoSFVec3f translation
Translation to the plane center. (Input). Default is (0,0,0).
Definition
SoPlaneSync.h:48
SoPlaneSync::rotation
SoSFRotation rotation
Rotation of the plane. (Input). Defaults are ((1,0,0),0).
Definition
SoPlaneSync.h:51
SoPlaneSync::~SoPlaneSync
~SoPlaneSync() override
Destructor.
Definition
SoPlaneSync.h:64
SoPlaneSync::translationOutput
SoSFVec3f translationOutput
The translation to the field plane center of the second plane. (Output). Default is (0,...
Definition
SoPlaneSync.h:57
SoPlaneSync::distanceFactor
SoSFFloat distanceFactor
The factor determining the distance between the two planes. (Input). Default is 1.
Definition
SoPlaneSync.h:54
SoPlaneSync::initClass
static void initClass()
Initializes this class.
SoPlaneSync::SoPlaneSync
SoPlaneSync()
Constructor.
SoPlaneSync::rotationOutput
SoSFRotation rotationOutput
The rotation of the second clip plane. (Output). Defaults are ((1,0,0), 0).
Definition
SoPlaneSync.h:60
MeVisLab
Standard
Sources
Inventor
SoUtils
SoPlaneSync.h
Generated by
1.18.0