[PREVIEW] [Medical] Shape node that draws the intersection of a plane and a box. More...
#include <Medical/nodes/PlaneBoxIntersection.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
PlaneBoxIntersection () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static void | initClass () |
static void | exitClass () |
Public Attributes | |
SoSFBox3f | box |
SoSFPlane | plane |
This node is useful for highlighting. The intersection of a plane and a box in the general case is a polygon with up to six points. If the plane does not intersect the box, nothing is drawn.
This node is particularly useful for highlighting the location of a clip plane (using the bounding box of the geometry) and for highlighting the outline of an oblique slice (SoObliqueSlice) using the bounding box (extent) of the volume. The plane field may be automatically updated from a dragger or another node such as SoClipPlane or SoObliqueSlice using the connectFrom() method.
This node is derived from SoLineSet, but the standard fields of that class (numVertices, startIndex and vertexProperty) are managed internally and should not be modified by the application.
The color, line width, etc of the intersection lines can be set using SoMaterial, SoDrawStyle, etc nodes in the usual way.
plane | 1 0 0 0 |
box | 0 0 0 0 0 0 |
SoClipPlane, SoObliqueSlice, MoMeshPlaneSlice
PlaneBoxIntersection::PlaneBoxIntersection | ( | ) |
Constructor.
static void PlaneBoxIntersection::exitClass | ( | ) | [static] |
Finish this class.
Reimplemented from SoLineSet.
static SoType PlaneBoxIntersection::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoLineSet.
virtual SoType PlaneBoxIntersection::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoLineSet.
static void PlaneBoxIntersection::initClass | ( | ) | [static] |
Initialize this class.
Reimplemented from SoLineSet.
3D box to be intersected.
Default is an empty box.
Plane to intersect with.
Default is plane with normal vector 1,0,0 at distance 0.