Open Inventor
Release 2024.2.1
Loading...
Searching...
No Matches
SliceOrientationMarkers.h
1
// Slice orientation markers utility class
2
4
//
5
// This class is part of the Open Inventor Medical utility library.
6
//
7
// The medical utility classes are provided as a prebuilt library named
8
// "fei_inventor_medical", that can be used directly in an Open Inventor
9
// application. The classes in the prebuilt library are documented and
10
// supported by Thermo Fisher Scientific. These classes are also provided as source code.
11
//
12
// Please see $OIVHOME/include/Medical/InventorMedical.h for the full text.
13
//
15
16
#ifndef _SLICE_ORIENTATION_MARKERS_H_
17
#define _SLICE_ORIENTATION_MARKERS_H_
18
19
#include <Inventor/nodes/SoAnnotation.h>
20
21
#include <Inventor/fields/SoSFEnum.h>
22
#include <Inventor/fields/SoSFFloat.h>
23
#include <Inventor/fields/SoSFString.h>
24
25
class
SoFont
;
26
class
SoFieldSensor
;
27
class
SoText2
;
28
class
SoTranslation
;
29
83
class
INVENTORMEDICAL_API
SliceOrientationMarkers
:
public
SoAnnotation
{
84
85
SO_NODE_HEADER(
SliceOrientationMarkers
);
86
87
public
:
90
SoSFEnum
axis
;
91
94
SoSFFloat
offset
;
95
98
SoSFString
fontName
;
99
101
SoSFFloat
fontSize
;
102
104
static
void
initClass
();
105
107
static
void
exitClass
();
108
110
SliceOrientationMarkers
();
111
112
private
:
114
virtual
~SliceOrientationMarkers
();
115
117
void
updateLetters();
118
119
SoRef<SoFont>
m_fontNode;
120
121
SoText2
* m_textNodes[4];
122
SoTranslation
* m_tranNodes[4];
123
124
SoFieldSensor
* m_axisSensor;
125
SoFieldSensor
* m_offsetSensor;
126
static
void
fieldSensorCB(
void
* data,
SoSensor
* sensor );
127
};
128
129
#endif
SliceOrientationMarkers
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> (Preview feature...
Definition
SliceOrientationMarkers.h:83
SliceOrientationMarkers::offset
SoSFFloat offset
Distance from edge of window to letter.
Definition
SliceOrientationMarkers.h:94
SliceOrientationMarkers::fontSize
SoSFFloat fontSize
Specify the font size in pixels (default is 17).
Definition
SliceOrientationMarkers.h:101
SliceOrientationMarkers::SliceOrientationMarkers
SliceOrientationMarkers()
Constructor.
SliceOrientationMarkers::fontName
SoSFString fontName
Specify the font name (default is "Arial:Bold").
Definition
SliceOrientationMarkers.h:98
SliceOrientationMarkers::initClass
static void initClass()
Initialize the class.
SliceOrientationMarkers::axis
SoSFEnum axis
Axis (default is AXIAL).
Definition
SliceOrientationMarkers.h:90
SliceOrientationMarkers::exitClass
static void exitClass()
Finish using the class.
SoAnnotation
Annotation group node.
Definition
SoAnnotation.h:130
SoFieldSensor
Sensor class that can be attached to Open Inventor fields.
Definition
SoFieldSensor.h:76
SoFont
Node that defines font name, size, and type for text.
Definition
SoFont.h:303
SoRef
Smart pointer for any class inheriting SoRefCounter.
Definition
SoRef.h:90
SoSFEnum
Field containing an enumerated value.
Definition
SoSFEnum.h:89
SoSFFloat
Field containing a floating-point value.
Definition
SoSFFloat.h:78
SoSFString
Field containing a string.
Definition
SoSFString.h:117
SoSensor
Abstract base class for Open Inventor sensors.
Definition
SoSensor.h:100
SoText2
Screen-aligned 2D text shape node.
Definition
SoText2.h:194
SoTranslation
Node representing a 3D translation.
Definition
SoTranslation.h:93
Medical
nodes
SliceOrientationMarkers.h
Generated by
1.9.8