Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SliceOrientationMarkers.h
Go to the documentation of this file.
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
20
24
25class SoFont;
26class SoFieldSensor;
27class SoText2;
28class SoTranslation;
29
84
86
87public:
91
95
99
102
104 static void initClass();
105
107 static void exitClass();
108
111
112private:
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
#define SO_NODE_HEADER(className)
Definition SoSubNode.h:151
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> (Preview feature...
SoSFFloat offset
Distance from edge of window to letter.
SoSFFloat fontSize
Specify the font size in pixels (default is 17).
SliceOrientationMarkers()
Constructor.
SoSFString fontName
Specify the font name (default is "Arial:Bold").
static void initClass()
Initialize the class.
SoSFEnum axis
Axis (default is AXIAL).
static void exitClass()
Finish using the class.
Annotation group node.
Sensor class that can be attached to Open Inventor fields.
Node that defines font name, size, and type for text.
Definition SoFont.h:303
Smart pointer for any class inheriting SoRefCounter.
Definition SoRef.h:90
Field containing an enumerated value.
Definition SoSFEnum.h:89
Field containing a floating-point value.
Definition SoSFFloat.h:78
Field containing a string.
Definition SoSFString.h:117
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:97
Screen-aligned 2D text shape node.
Definition SoText2.h:194
Node representing a 3D translation.
#define INVENTORMEDICAL_API
Definition port.h:388