| 1 |
NAME SoPrimitiveVertex SoPrimVtx "" { |
| 2 |
represents a vertex of a generated primitive |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE SoPrimitiveVertex.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
An \cSoPrimitiveVertex\. represents a vertex of a primitive (triangle, |
| 9 |
line segment, or point) that is being generated by an |
| 10 |
\cSoCallbackAction\.. It contains an object-space point, normal, |
| 11 |
texture coordinates, material index, and a pointer to an instance of |
| 12 |
an \cSoDetail\. subclass. This detail may contain more information |
| 13 |
about the vertex, or may be a NULL pointer if there is no such info. |
| 14 |
\p |
| 15 |
Instances of \cSoPrimitiveVertex\. are typically created on the stack |
| 16 |
by shape classes while they are generating primitives. Anyone who |
| 17 |
wants to save them as return values from \cSoCallbackAction\. should |
| 18 |
probably make copies of them. |
| 19 |
} |
| 20 |
|
| 21 |
METHOD "" SoPrimitiveVertex() {} |
| 22 |
METHOD CreateCopy SoPrimitiveVertex(const SoPrimitiveVertex &pv) {} |
| 23 |
METHOD "" ~SoPrimitiveVertex() { |
| 24 |
Constructors and destructor. Note that copying a primitive vertex |
| 25 |
copies the detail pointer, and not the detail itself. |
| 26 |
} |
| 27 |
|
| 28 |
METHOD getPt const SbVec3f & getPoint() const {} |
| 29 |
METHOD getNorm const SbVec3f & getNormal() const {} |
| 30 |
METHOD getTexCoords const SbVec4f & getTextureCoords() const { |
| 31 |
These return the surface point, normal, and texture coordinates in |
| 32 |
object space. |
| 33 |
} |
| 34 |
|
| 35 |
METHOD getMtlInd int getMaterialIndex() const { |
| 36 |
Returns the index into the current set of materials of the material |
| 37 |
active at the vertex. |
| 38 |
} |
| 39 |
|
| 40 |
METHOD getDtl const SoDetail * getDetail() const { |
| 41 |
Returns the detail giving more information about the vertex. Note that |
| 42 |
this pointer may be NULL if there is no more info. |
| 43 |
} |
| 44 |
|
| 45 |
METHOD "" SoPrimitiveVertex & operator =(const SoPrimitiveVertex &pv) { |
| 46 |
Copies the given vertex. Note that just the pointer to the detail is |
| 47 |
copied, and not the detail itself. |
| 48 |
} |