MeVisLab Toolbox Reference
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
31class SOUTILS_EXPORT SoCameraViewAll : public SoNode
32{
34 SO_NODE_HEADER(SoCameraViewAll);
35
36public:
39
41 static void initClass();
42
44
46
48
50
52
54
56
57
58
59protected:
61 ~SoCameraViewAll() override;
62
65
66};
67
68#endif // __SoCameraViewAll_H
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
The Inventor module class SoCameraViewAll derived from SoNode.
SoSFTrigger viewAll
SoCameraViewAll()
Constructor.
static void initClass()
Initializes this class (called on dll initialization).
SoSFNode inCamera
! Fields
void viewAllChanged(SoField *field)
Called when field viewAll changed.
SoSFInt32 viewportWidth
SoSFInt32 viewportHeight
~SoCameraViewAll() override
Protected destructor.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.