| 1 |
NAME SoVertexShape SoVtx "" { |
| 2 |
abstract base class for all vertex-based shape nodes |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE nodes/SoVertexShape.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This node is the abstract base class for all vertex-based shape |
| 9 |
(geometry) nodes. It is used as a |
| 10 |
repository for convenience functions for subclasses and to provide a |
| 11 |
type identifier to make it easy to determine whether a shape is |
| 12 |
vertex-based. |
| 13 |
It contains one public field, the \cSoVertexProperty\. |
| 14 |
field. |
| 15 |
\p |
| 16 |
All subclasses of this node draw objects constructed from |
| 17 |
vertices. If the vertexProperty field is non-null and there are |
| 18 |
coordinates in the associated vertex property node, then those |
| 19 |
coordinates are used. Otherwise the objects are drawn using the |
| 20 |
current coordinates in the state. The coordinates of the shape |
| 21 |
are transformed by the current transformation matrix and are drawn |
| 22 |
with the current light model and drawing style. |
| 23 |
\p |
| 24 |
Subclasses that construct polygons from vertices may not render or |
| 25 |
pick correctly if any of their polygons are self-intersecting or |
| 26 |
non-planar. |
| 27 |
\p |
| 28 |
All vertex shape subclasses use the bounding box of the shape to |
| 29 |
determine default texture coordinates. The longest dimension of the |
| 30 |
bounding box defines the S coordinates, and the next longest defines |
| 31 |
the T coordinates. The value of the S coordinate ranges from 0 to 1, |
| 32 |
from one end of the bounding box to the other. The T coordinate ranges |
| 33 |
between 0 and the ratio of the second greatest dimension of the |
| 34 |
bounding box to the greatest dimension. |
| 35 |
\p |
| 36 |
When a vertex-based shape is picked with an \cSoRayPickAction\., a |
| 37 |
detail is always returned. If the shape is composed of faces (such as |
| 38 |
\cSoFaceSet\. or \cSoTriangleStripSet\.), an \cSoFaceDetail\. is |
| 39 |
returned. If the shape is composed of line segments (such as |
| 40 |
\cSoLineSet\.), an \cSoLineDetail\. is returned. If the shape is |
| 41 |
composed of points (such as \cSoPointSet\.), an \cSoPointDetail\. is |
| 42 |
returned. Note that the type of detail returned is not affected by the |
| 43 |
current drawing style. |
| 44 |
\p |
| 45 |
Similarly, each class of vertex-based shape invokes appropriate |
| 46 |
callbacks if those callbacks are registered with the |
| 47 |
\cSoCallbackAction\.. Shapes made of faces invoke triangle callbacks |
| 48 |
for each generated triangle. (Faces may be triangulated to create |
| 49 |
these triangles.) Shapes made of line segments invoke line segment |
| 50 |
callbacks for each segment, and shapes made of points invoke point |
| 51 |
callbacks. |
| 52 |
\p |
| 53 |
The subclass \cSoIndexedShape\. is a base class for vertex-based |
| 54 |
shapes that index into the current set of coordinates. |
| 55 |
The subclass \cSoNonIndexedShape\. is a base class for vertex-based |
| 56 |
shapes that use the current coordinates in order. |
| 57 |
} |
| 58 |
|
| 59 |
METHOD "" static SoType getClassTypeId() { |
| 60 |
Returns type identifier for this class. |
| 61 |
} |
| 62 |
FIELD vertexProperty {vertex property node.} |
| 63 |
|
| 64 |
ALSO { SoIndexedShape, SoNonIndexedShape, SoVertexProperty } |