| 1 |
NAME SoVertexProperty SoVertProp "" { vertex property node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoVertexProperty.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This property node may be used to efficiently specify coordinates, normals, |
| 7 |
texture coordinates, colors, transparency values, material |
| 8 |
binding and normal binding for vertex-based shapes, i.e., shapes of |
| 9 |
class \cSoVertexShape\.. An \cSoVertexProperty\. node can be used |
| 10 |
as a child of a group node in a scene graph, in which case the |
| 11 |
properties it specifies are inherited by subsequent shape nodes in the |
| 12 |
graph. It can also be directly referenced as the \cVertexProperty\. |
| 13 |
\cSoSFField\. of a vertex-based shape, bypassing scene graph inheritance. |
| 14 |
\p |
| 15 |
When directly referenced by a \vVertexProperty\. \cSoSFField\. of a vertex-based |
| 16 |
shape, the \cSoVertexProperty\. node is the most efficient way of |
| 17 |
specifying vertex-based shapes. Use of the directly referenced |
| 18 |
\cSoVertexProperty\. node results in significantly faster scene |
| 19 |
rendering than scene graph inheritance of vertex properties, provided all |
| 20 |
required vertex properties are specified in the \cSoVertexProperty\. |
| 21 |
node. |
| 22 |
\p |
| 23 |
Because the class \cSoVertexProperty\. is derived from \cSoNode\., a |
| 24 |
vertex property node can be inserted as a child node in a scene graph. |
| 25 |
When inserted as a node in a scene graph, the \cSoVertexProperty\. node is |
| 26 |
traversed as any other property node and the properties it specifies are |
| 27 |
inherited by subsequent shape nodes in the scene graph. It specifies |
| 28 |
the current material and normal bindings, and can be used to specify |
| 29 |
the current 3D |
| 30 |
coordinates, the current normals, the current texture |
| 31 |
coordinates, the current diffuse colors, and the current transparencies. |
| 32 |
\p |
| 33 |
All multiple-valued fields in the \cSoVertexProperty\. node are optional. |
| 34 |
If a field is not present (i.e. if it has 0 values), then shapes that require |
| 35 |
the missing information are required to obtain it from the current traversal |
| 36 |
state. However, users are |
| 37 |
cautioned that, for optimal performance, the vertex property node should |
| 38 |
be referenced as the \vVertexProperty\. field of an \cSoVertexShape\., |
| 39 |
and should specify in its fields all values required to render that shape. |
| 40 |
\p |
| 41 |
The various fields in a vertex property node can be used in place of |
| 42 |
corresponding fields in other property nodes, as follows: The \vvertex\. field |
| 43 |
contains 3D coordinates, as in the \vpoint\. field of an |
| 44 |
\cSoCoordinate3\. |
| 45 |
node. The \vnormal\. field contains normal vectors, as in the |
| 46 |
\vvector\. |
| 47 |
field of the \vSoNormal\. node. The \vorderedRGBA\. field contains |
| 48 |
packed colors in the hexadecimal format \c0xrrggbbaa\., where |
| 49 |
\crr\. is the red value (between 00 and 0xFF hex) |
| 50 |
\cgg\. is the green value (between 00 and 0xFF hex) |
| 51 |
\cbb\. is the blue value (between 00 and 0xFF hex) |
| 52 |
\caa\. is the alpha value (between 00 = transparent |
| 53 |
and 0xFF = opaque). |
| 54 |
The packed colors are equivalent to an \cSoPackedColor\. node, and |
| 55 |
provide values for both diffuse color and transparency. |
| 56 |
The \vtexCoord\. field replaces |
| 57 |
the \vpoint\. field of the \cSoTextureCoordinate2\. node. |
| 58 |
\p |
| 59 |
If the |
| 60 |
transparency type is \cSoGLRenderAction::SCREEN_DOOR\., only the |
| 61 |
first transparency value will be used. With other transparency types, |
| 62 |
multiple transparencies will be used. |
| 63 |
\p |
| 64 |
The \vmaterialBinding\. field replaces the \vvalue\. field of the |
| 65 |
\cSoMaterialBinding\. node. The \vmaterialBinding\. field in a directly |
| 66 |
referenced \cSoVertexProperty\. node has no effect unless there is a nonempty |
| 67 |
\vorderedRGBA\. field, in which case the material binding specifies the |
| 68 |
assignment of diffuse colors and alpha values to the shape. |
| 69 |
The \vmaterialBinding\. field can take as value any of the material |
| 70 |
bindings supported by Inventor. |
| 71 |
|
| 72 |
\p |
| 73 |
The \vnormalBinding\. field replaces the \vvalue\. field of the |
| 74 |
\cSoNormalBinding\. node. The \vnormalBinding\. field of |
| 75 |
a directly referenced \cSoVertexProperty\. node has no effect |
| 76 |
unless there is a nonempty |
| 77 |
\vnormal\. field, in which case the normal binding specifies the assignment |
| 78 |
of normal vectors to the shape. The value of the \vnormalBinding\. |
| 79 |
field can be any of the normal bindings supported by Inventor. |
| 80 |
} |
| 81 |
ENUM Binding { |
| 82 |
OVERALL "Whole object has same material/normal", |
| 83 |
PER_PART "One material/normal for each part of object", |
| 84 |
PER_PART_INDEXED "One material/normal for each part, indexed", |
| 85 |
PER_FACE "One material/normal for each face of object", |
| 86 |
PER_FACE_INDEXED "One material/normal for each face, indexed", |
| 87 |
PER_VERTEX "One material/normal for each vertex of object", |
| 88 |
PER_VERTEX_INDEXED "One material/normal for each vertex, indexed" |
| 89 |
} |
| 90 |
|
| 91 |
FIELD vertex {vertex coordinate(s).} |
| 92 |
FIELD normal {normal vector(s).} |
| 93 |
FIELD orderedRGBA {packed color(s), including transparencies.} |
| 94 |
FIELD texCoord {texture coordinate(s).} |
| 95 |
FIELD normalBinding {normal binding.} |
| 96 |
FIELD materialBinding {material binding.} |
| 97 |
|
| 98 |
METHOD "" SoVertexProperty(){ |
| 99 |
Creates an SoVertexProperty node with default settings. |
| 100 |
} |
| 101 |
|
| 102 |
ACTION SoGLRenderAction, SoCallbackAction, SoPickAction { |
| 103 |
When traversed in a scene graph, sets coordinates, normals, texture coordinates, |
| 104 |
diffuse colors, transparency, normal binding and material binding in current |
| 105 |
traversal state. If not traversed, has no effect on current traversal state |
| 106 |
associated with action. The normalBinding field has no effect if there |
| 107 |
are no normals. The materialBinding has no effect if there are no |
| 108 |
packed colors. |
| 109 |
} |
| 110 |
ACTION SoGetBoundingBoxAction { |
| 111 |
When traversed in a scene graph, sets coordinates in current traversal |
| 112 |
state. If not traversed, has no effect on current traversal state |
| 113 |
associated with action. |
| 114 |
} |
| 115 |
ALSO { |
| 116 |
SoIndexedTriangleStripSet |
| 117 |
SoIndexedFaceSet |
| 118 |
SoIndexedLineSet |
| 119 |
SoTriangleStripSet |
| 120 |
SoLineSet |
| 121 |
SoFaceSet |
| 122 |
SoPointSet |
| 123 |
SoQuadMesh |
| 124 |
SoVertexShape |
| 125 |
SoIndexedShape |
| 126 |
SoNonindexedShape |
| 127 |
} |