#include <Inventor/SoPrimitiveVertex.h>
Public Methods | |
SoPrimitiveVertex (void) | |
SoPrimitiveVertex (const SoPrimitiveVertex &pv) | |
~SoPrimitiveVertex () | |
const SbVec3f & | getPoint (void) const |
const SbVec3f & | getNormal (void) const |
const SbVec4f & | getTextureCoords (void) const |
int | getMaterialIndex (void) const |
const SoDetail * | getDetail (void) const |
SoPrimitiveVertex & | operator= (const SoPrimitiveVertex &pv) |
void | setPoint (const SbVec3f &point) |
void | setNormal (const SbVec3f &normal) |
void | setTextureCoords (const SbVec4f &texcoords) |
void | setTextureCoords (const SbVec2f &texcoords) |
void | setMaterialIndex (const int index) |
void | setDetail (SoDetail *const detail) |
Instances of SoPrimitiveVertex are constructed when generating primitive data, primarily during an SoCallbackAction traversal. Depending on the context the vertex could represent a single 3D point, one of the two vertices in a line or one of the three vertices in a triangle.
|
Default constructor, sets up a "void" instance. |
|
Copy constructor. Does a shallow copy.
|
|
Destructor. The detail instance is owned by client code and will not be destructed here. |
|
Returns vertex coordinates, positioned in object space. |
|
Returns normal vector, oriented in object space. |
|
Returns texture coordinates for vertex, specified in object space. |
|
Returns index of the vertex into the currently active material, if any. |
|
Returns pointer to detail instance with more information about the vertex. A detail instance may not be available, and if so |
|
Copy operator. When pv is copied into this instance, a shallow copy is made. Ie, only the reference to the detail instance is copied (if any), not the detail itself. |
|
Used internally from library client code setting up an SoPrimitiveVertex instance. |
|
Used internally from library client code setting up an SoPrimitiveVertex instance. |
|
Used internally from library client code setting up an SoPrimitiveVertex instance. |
|
Used internally from library client code setting up an SoPrimitiveVertex instance. Covenience function. Will fill in 0 and 1 in the last two texture coords in the internal SbVec4f texture coordinate instance. |
|
Used internally from library client code setting up an SoPrimitiveVertex instance. |
|
Used internally from library client code setting up an SoPrimitiveVertex instance. Note that it's the client's responsibility to do the deallocation of the detail instance after the SoPrimitiveVertex instance has gone out of scope. |