MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoToggle.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_TOGGLE_H
14
#define SO_TOGGLE_H
15
16
18
19
#include "
SoUtilsSystem.h
"
20
21
#include <Inventor/nodes/SoSubNode.h>
22
#include <Inventor/nodes/SoSwitch.h>
23
#include <Inventor/sensors/SoFieldSensor.h>
24
#include <Inventor/fields/SoSFBool.h>
25
#include <Inventor/fields/SoSFTrigger.h>
26
27
//--------- disable VC++ warnings---------
28
#ifdef WIN32
29
#pragma warning(disable : 4355)
30
#pragma warning(disable : 4275)
31
#pragma warning(disable : 4251)
32
#endif
33
34
//=============================================================
37
38
//=============================================================
39
class
SOUTILS_EXPORT
SoToggle
:
public
SoSwitch
40
{
41
42
SO_NODE_HEADER(
SoToggle
);
43
44
public
:
46
SoSFBool
on
;
47
49
SoSFTrigger
toggle
;
50
51
SoToggle
();
52
static
void
initClass
();
53
55
void
onChanged
(SoField* field);
56
58
void
onToggle
(SoField* field);
59
60
private
:
61
~SoToggle
()
override
;
62
};
63
64
#endif
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SoToggle::on
SoSFBool on
switches contained scenegraph on/off
Definition
SoToggle.h:46
SoToggle::toggle
SoSFTrigger toggle
toggles 'on' field
Definition
SoToggle.h:49
SoToggle::onToggle
void onToggle(SoField *field)
called when toggle is touched
SoToggle::initClass
static void initClass()
SoToggle::onChanged
void onChanged(SoField *field)
called when the on field changes
SoToggle::SoToggle
SoToggle()
MeVisLab
Standard
Sources
Inventor
SoUtils
SoToggle.h
Generated by
1.18.0