Open Inventor Release 2024.1.3
 
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
25class SoFont;
26class SoFieldSensor;
27class SoText2;
28class SoTranslation;
29
83class INVENTORMEDICAL_API SliceOrientationMarkers : public SoAnnotation {
84
85 SO_NODE_HEADER(SliceOrientationMarkers);
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
<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:100
Screen-aligned 2D text shape node.
Definition SoText2.h:194
Node representing a 3D translation.