Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
Magnifier.h
1
2//
3// This class is part of the Open Inventor Medical utility library.
4//
5// The medical utility classes are provided as a prebuilt library named
6// "fei_inventor_medical", that can be used directly in an Open Inventor
7// application. The classes in the prebuilt library are documented and
8// supported by Thermo Fisher Scientific. These classes are also provided as source code.
9//
10// Please see $OIVHOME/include/Medical/InventorMedical.h for the full text.
11//
13
14#ifndef _MEDICAL_MAGNIFIER_H
15#define _MEDICAL_MAGNIFIER_H
16
17#include <Medical/InventorMedical.h>
18#include <Inventor/nodes/SoMaterial.h>
19#include <Inventor/nodes/SoOrthographicCamera.h>
20#include <Inventor/nodes/SoSeparator.h>
21#include <Inventor/draggers/SoTranslate2Dragger.h>
22#include <Inventor/sensors/SoFieldSensor.h>
23
24#include <Inventor/fields/SoSFColor.h>
25#include <Inventor/fields/SoSFFloat.h>
26#include <Inventor/fields/SoSFNode.h>
27
60class INVENTORMEDICAL_API Magnifier : public SoTranslate2Dragger {
61
62 SO_NODE_HEADER(Magnifier);
63
64public:
69
74
80
83
85 static void initClass();
86
88 static void exitClass();
89
90private:
91 virtual ~Magnifier();
92
93private:
94
95 void commonConstructor();
96
97 SoFieldSensor* m_sceneFieldSensor;
98 static void sceneFieldChangedCB( void* data, SoSensor* sensor );
99
100 SoRef<SoSeparator> m_magnifierSGSep;
101 SoRef<SoMaterial> m_magnifierBorderMaterial;
102 SoRef<SoSeparator> m_sceneToMagnifyParent;
103 SoRef<SoOrthographicCamera> m_magnifierCam;
104};
105#endif
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> (Preview feature...
Definition Magnifier.h:60
static void initClass()
Initialize class (called automatically by InventorMedical::init()).
Magnifier()
Constructor.
SoSFFloat magnifierFactor
Specifies the magnification factor.
Definition Magnifier.h:79
static void exitClass()
Finish using class (called automatically by InventorMedical::finish()).
SoSFNode sceneToMagnify
Specifies the root node of the scene that will be magnified.
Definition Magnifier.h:68
SoSFColor magnifierColor
Specifies the color of the border around the magnifier.
Definition Magnifier.h:73
Sensor class that can be attached to Open Inventor fields.
Smart pointer for any class inheriting SoRefCounter.
Definition SoRef.h:90
Field containing an RGB color.
Definition SoSFColor.h:82
Field containing a floating-point value.
Definition SoSFFloat.h:78
Field containing a a node.
Definition SoSFNode.h:97
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:100
Object you can translate within a plane by dragging with the mouse.