MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoCameraViewAll.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2010, 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_CAMERA_VIEW_ALL_H
14
#define SO_CAMERA_VIEW_ALL_H
15
16
18
// allows to trigger the view all action of a camera, independent of a viewer
19
20
#include "
SoUtilsSystem.h
"
21
22
#include <Inventor/nodes/SoSubNode.h>
23
#include <Inventor/nodes/SoNode.h>
24
// include used fields
25
#include <Inventor/fields/SoSFNode.h>
26
#include <Inventor/fields/SoSFInt32.h>
27
#include <Inventor/fields/SoSFTrigger.h>
28
#include <Inventor/sensors/SoFieldSensor.h>
29
31
class
SOUTILS_EXPORT
SoCameraViewAll
:
public
SoNode
32
{
34
SO_NODE_HEADER(
SoCameraViewAll
);
35
36
public
:
38
SoCameraViewAll
();
39
41
static
void
initClass
();
42
44
45
SoSFNode
inCamera
;
46
47
SoSFNode
inScene
;
48
49
SoSFInt32
viewportWidth
;
50
51
SoSFInt32
viewportHeight
;
52
53
SoSFTrigger
viewAll
;
54
56
57
58
protected
:
60
~SoCameraViewAll
()
override
;
61
63
void
viewAllChanged
(SoField* field);
64
};
65
66
#endif
// __SoCameraViewAll_H
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SoCameraViewAll::viewAll
SoSFTrigger viewAll
Definition
SoCameraViewAll.h:53
SoCameraViewAll::inScene
SoSFNode inScene
Definition
SoCameraViewAll.h:47
SoCameraViewAll::SoCameraViewAll
SoCameraViewAll()
Constructor.
SoCameraViewAll::initClass
static void initClass()
Initializes this class (called on dll initialization).
SoCameraViewAll::inCamera
SoSFNode inCamera
! Fields
Definition
SoCameraViewAll.h:45
SoCameraViewAll::viewAllChanged
void viewAllChanged(SoField *field)
Called when field viewAll changed.
SoCameraViewAll::viewportWidth
SoSFInt32 viewportWidth
Definition
SoCameraViewAll.h:49
SoCameraViewAll::viewportHeight
SoSFInt32 viewportHeight
Definition
SoCameraViewAll.h:51
SoCameraViewAll::~SoCameraViewAll
~SoCameraViewAll() override
Protected destructor.
MeVisLab
Standard
Sources
Inventor
SoUtils
SoCameraViewAll.h
Generated by
1.18.0