Open Inventor Reference
|
Stores detail information about vertex-based shapes made of faces. More...
#include <Inventor/details/SoFaceDetail.h>
Public Member Functions | |
SoFaceDetail () | |
Constructor and destructor. | |
virtual | ~SoFaceDetail () |
Constructor and destructor. | |
int32_t | getNumPoints () const |
Returns the number of points in the face. | |
const SoPointDetail * | getPoint (int i) const |
Returns information about the point forming the i'th vertex of the face, represented as an SoPointDetail. | |
int32_t | getFaceIndex () const |
Returns the index of the face within the shape. | |
int32_t | getPartIndex () const |
Returns the index of the part containing the face within the shape. | |
virtual SoDetail * | copy () const |
Returns an instance that is a copy of this instance. | |
void | setNumPoints (int32_t num) |
Sets the number of points in the face and allocates room for the points. | |
void | setPoint (int32_t index, const SoPointDetail *pd) |
Copies a point detail from the given detail. | |
void | setFaceIndex (int32_t i) |
Sets the face index and part index. | |
void | setPartIndex (int32_t i) |
SoPointDetail * | getPoints () |
Return a pointer to the point details. | |
void | setNumPoints (long num) |
void | setPoint (long index, const SoPointDetail *pd) |
void | setFaceIndex (long i) |
void | setPartIndex (long i) |
Public Member Functions inherited from SoDetail | |
virtual | ~SoDetail () |
Destructor. | |
virtual SoType | getTypeId () const =0 |
Returns the type identifier for a specific instance. | |
bool | isOfType (SoType type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
virtual SoDetail * | copy () const =0 |
Returns an instance that is a copy of this instance. | |
Static Public Member Functions | |
static void | initClass () |
Static Public Member Functions inherited from SoDetail | |
static SoType | getClassTypeId () |
Returns type identifier for this class. | |
static void | initClass () |
static void | initClasses () |
Initialize ALL Inventor detail classes. | |
Additional Inherited Members | |
Protected Member Functions inherited from SoDetail | |
SoDetail () | |
Constructor is protected since this is an abstract class. | |
This class contains detail information about a point on a face in a vertex-based shape made of faces. The information includes the number of points in the face, the points forming the vertices of the face, and the index of the face within the shape.
Note that when an SoFaceDetail is returned from picking (in an SoPickedPoint), it will contain details for all points defining the face that was intersected. However, when an SoFaceDetail is created for a triangle produced during primitive generation (in an SoPrimitiveVertex), it will contain details for only the three vertices of the triangle.
Definition at line 86 of file SoFaceDetail.h.
SoFaceDetail::SoFaceDetail | ( | ) |
|
virtual |
|
virtual |
The caller is responsible for deleting the copy when done.
Implements SoDetail.
|
inline |
Definition at line 105 of file SoFaceDetail.h.
|
inline |
Definition at line 98 of file SoFaceDetail.h.
|
inline |
Definition at line 108 of file SoFaceDetail.h.
|
inline |
Definition at line 102 of file SoFaceDetail.h.
|
inline |
Definition at line 126 of file SoFaceDetail.h.
|
static |
|
inline |
Definition at line 122 of file SoFaceDetail.h.
|
inline |
i | System long |
Definition at line 133 of file SoFaceDetail.h.
void SoFaceDetail::setNumPoints | ( | int32_t | num | ) |
|
inline |
num | System long |
Definition at line 129 of file SoFaceDetail.h.
|
inline |
Definition at line 123 of file SoFaceDetail.h.
|
inline |
i | System long |
Definition at line 135 of file SoFaceDetail.h.
void SoFaceDetail::setPoint | ( | int32_t | index, |
const SoPointDetail * | pd | ||
) |
|
inline |
pd | System long |
Definition at line 131 of file SoFaceDetail.h.