MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoRotateCamera.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2013, 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_ROTATE_CAMERA_H
14
#define SO_ROTATE_CAMERA_H
15
16
18
// Allows to rotate the camera around the focal point
19
20
#include "
SoUtilsSystem.h
"
21
22
#include <Inventor/nodes/SoSubNode.h>
23
#include <Inventor/nodes/SoNode.h>
24
#include <Inventor/nodes/SoSeparator.h>
25
26
#include <Inventor/fields/SoSFNode.h>
27
#include <Inventor/fields/SoSFInt32.h>
28
#include <Inventor/fields/SoSFTrigger.h>
29
#include <Inventor/fields/SoSFVec3f.h>
30
#include <Inventor/fields/SoSFFloat.h>
31
#include <Inventor/fields/SoSFTrigger.h>
32
#include <Inventor/fields/SoSFBool.h>
33
34
#include <Inventor/sensors/SoFieldSensor.h>
35
#include <Inventor/sensors/SoNodeSensor.h>
36
#include <Inventor/sensors/SoTimerSensor.h>
37
38
class
SoCamera;
39
class
SoGetBoundingBoxAction;
40
41
43
class
SOUTILS_EXPORT
SoRotateCamera
:
public
SoNode
44
{
45
SO_NODE_HEADER(
SoRotateCamera
);
46
47
public
:
48
SoRotateCamera
();
49
static
void
initClass
();
50
52
53
SoSFNode
inCamera
;
54
SoSFNode
inScene
;
55
56
SoSFVec3f
rotationAxis
;
57
SoSFFloat
rotationAngle
;
58
SoSFInt32
rotationSteps
;
59
SoSFInt32
rotationCurrentStep
;
60
61
SoSFBool
autoAdjustClippingPlanes
;
62
63
SoSFTrigger
rotate
;
64
SoSFBool
autoRotate
;
65
67
68
69
protected
:
71
~SoRotateCamera
()
override
;
72
73
74
private
:
75
SoGetBoundingBoxAction* _autoClipBoxAction;
76
SoNode* _inSceneNode;
77
78
SoRef<SoSeparator> _root;
79
80
bool
_isAutoRotating;
81
82
void
rotateChanged(SoField*);
83
void
inSceneChanged(SoField*);
84
85
SoTimerSensor* _rotSensor;
86
void
rotationChanged(SoSensor* sensor);
87
static
void
rotationChangedCB(
void
* data, SoSensor* sensor);
88
89
void
reorientCamera(
const
SbRotation& rot);
90
void
autoAdjustCameraClippingPlanes(SoCamera* camera);
91
};
92
93
#endif
// __SoRotateCamera_H
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SoRotateCamera::rotationAngle
SoSFFloat rotationAngle
Definition
SoRotateCamera.h:57
SoRotateCamera::~SoRotateCamera
~SoRotateCamera() override
Protected destructor.
SoRotateCamera::initClass
static void initClass()
SoRotateCamera::autoRotate
SoSFBool autoRotate
Definition
SoRotateCamera.h:64
SoRotateCamera::inCamera
SoSFNode inCamera
! Fields
Definition
SoRotateCamera.h:53
SoRotateCamera::rotationCurrentStep
SoSFInt32 rotationCurrentStep
Definition
SoRotateCamera.h:59
SoRotateCamera::autoAdjustClippingPlanes
SoSFBool autoAdjustClippingPlanes
Definition
SoRotateCamera.h:61
SoRotateCamera::rotate
SoSFTrigger rotate
Definition
SoRotateCamera.h:63
SoRotateCamera::SoRotateCamera
SoRotateCamera()
SoRotateCamera::inScene
SoSFNode inScene
Definition
SoRotateCamera.h:54
SoRotateCamera::rotationSteps
SoSFInt32 rotationSteps
Definition
SoRotateCamera.h:58
SoRotateCamera::rotationAxis
SoSFVec3f rotationAxis
Definition
SoRotateCamera.h:56
MeVisLab
Standard
Sources
Inventor
SoUtils
SoRotateCamera.h
Generated by
1.18.0