Open Inventor Reference
|
Represents a vertex of a generated primitive. More...
#include <Inventor/SoPrimitiveVertex.h>
Public Member Functions | |
SoPrimitiveVertex () | |
Constructors and destructor. | |
SoPrimitiveVertex (const SoPrimitiveVertex &pv) | |
Constructors and destructor. | |
~SoPrimitiveVertex () | |
Constructors and destructor. | |
const SbVec3f & | getPoint () const |
These return the surface point, normal, and texture coordinates in object space. | |
const SbVec3f & | getNormal () const |
These return the surface point, normal, and texture coordinates in object space. | |
const SbVec4f & | getTextureCoords () const |
These return the surface point, normal, and texture coordinates in object space. | |
int | getMaterialIndex () const |
Returns the index into the current set of materials of the material active at the vertex. | |
const SoDetail * | getDetail () const |
Returns the detail giving more information about the vertex. | |
SoPrimitiveVertex & | operator= (const SoPrimitiveVertex &pv) |
Copies the given vertex. | |
void | setPoint (const SbVec3f &pt) |
These methods are typically called by shape classes during primtiive generation. | |
void | setNormal (const SbVec3f &norm) |
void | setTextureCoords (const SbVec4f &t) |
void | setMaterialIndex (int index) |
Sets the material index. The index is set to 0 during construction. | |
void | setDetail (SoDetail *d) |
Sets the detail corresponding to the vertex. | |
An SoPrimitiveVertex represents a vertex of a primitive (triangle, line segment, or point) that is being generated by an SoCallbackAction. It contains an object-space point, normal, texture coordinates, material index, and a pointer to an instance of an SoDetail subclass. This detail may contain more information about the vertex, or may be a NULL pointer if there is no such info.
Instances of SoPrimitiveVertex are typically created on the stack by shape classes while they are generating primitives. Anyone who wants to save them as return values from SoCallbackAction should probably make copies of them.
Definition at line 84 of file SoPrimitiveVertex.h.
SoPrimitiveVertex::SoPrimitiveVertex | ( | ) |
Note that copying a primitive vertex copies the detail pointer, and not the detail itself.
SoPrimitiveVertex::SoPrimitiveVertex | ( | const SoPrimitiveVertex & | pv | ) |
Note that copying a primitive vertex copies the detail pointer, and not the detail itself.
SoPrimitiveVertex::~SoPrimitiveVertex | ( | ) |
Note that copying a primitive vertex copies the detail pointer, and not the detail itself.
|
inline |
Note that this pointer may be NULL if there is no more info.
Definition at line 115 of file SoPrimitiveVertex.h.
|
inline |
Definition at line 111 of file SoPrimitiveVertex.h.
|
inline |
Definition at line 104 of file SoPrimitiveVertex.h.
|
inline |
Definition at line 101 of file SoPrimitiveVertex.h.
|
inline |
Definition at line 107 of file SoPrimitiveVertex.h.
SoPrimitiveVertex & SoPrimitiveVertex::operator= | ( | const SoPrimitiveVertex & | pv | ) |
Note that just the pointer to the detail is copied, and not the detail itself.
|
inline |
The pointer may be NULL, although it is set to NULL during construction.
Definition at line 136 of file SoPrimitiveVertex.h.
|
inline |
Definition at line 132 of file SoPrimitiveVertex.h.
|
inline |
Definition at line 128 of file SoPrimitiveVertex.h.
|
inline |
These set the object space point, normal, and texture coordinates:
Definition at line 127 of file SoPrimitiveVertex.h.
|
inline |
Definition at line 129 of file SoPrimitiveVertex.h.