Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
PlaneGeometryIntersection.h
Go to the documentation of this file.
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 _PLANE_GEOMETRY_INTERSECTION_H_
15#define _PLANE_GEOMETRY_INTERSECTION_H_
16
19
26
27class PlaneGeometryIntersectionImpl;
28
143{
145
146public:
147
150
156
161
168
174
183 const SoShape* getShape() const;
184
196
199
201 static void initClass();
202
204 static void exitClass();
205
206private:
207
208 PlaneGeometryIntersectionImpl* m_impl;
209
211 SoFieldSensor* m_sceneSensor;
212 SoFieldSensor* m_planeSensor;
213 SoFieldSensor* m_polygonSensor;
214 static void fieldSensorCB( void* data, SoSensor* sensor );
215
217 void resetGeometry();
218
221};
222#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...
static void initClass()
Initialize class (called automatically by InventorMedical::init()).
PlaneGeometryIntersection()
Constructor.
const SoShape * getShape() const
Get the shape node that contains the computed vertices and indices.
SoSFPlane plane
Plane to intersect with.
SoSFBool polygon
Specifies whether to compute a capping polygon (default false).
SoSFBool automatic
Specifies whether to recompute the intersection automatically or not (default true).
SoSFFloat tolerance
Tolerance for testing if vertices are equal.
static void exitClass()
Finish using class (called automatically by InventorMedical::finish()).
SoSFNode scene
Scene to intersect with plane.
int recompute()
Recompute the intersection.
Sensor class that can be attached to Open Inventor fields.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing a floating-point value.
Definition SoSFFloat.h:78
Field containing a a node.
Definition SoSFNode.h:97
Field containing a plane equation.
Definition SoSFPlane.h:82
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:97
Group node that saves and restores traversal state.
Abstract base class for all shape nodes.
Definition SoShape.h:115
#define INVENTORMEDICAL_API
Definition port.h:388