SoVertexProperty - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 3.1.3
Note : Coin
NAMESoVertexProperty − The SoVertexProperty class collects the functionality of various appearance nodes.
SYNOPSIS
#include <Inventor/nodes/SoVertexProperty.h> Inherits SoNode.
Public Typesenum Binding { OVERALL = 2, PER_PART, PER_PART_INDEXED, PER_FACE, PER_FACE_INDEXED, PER_VERTEX, PER_VERTEX_INDEXED }
Public Member Functionsvirtual SoType getTypeId (void) const
SoVertexProperty (void)
virtual void doAction (SoAction *action)
virtual void GLRender (SoGLRenderAction *action)
virtual void getBoundingBox (SoGetBoundingBoxAction *action)
virtual void callback (SoCallbackAction *action)
virtual void pick (SoPickAction *action)
virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
Static Public Member Functionsstatic SoType getClassTypeId (void)
static void initClass (void)
Public AttributesSoMFVec3f vertex
SoMFVec2f texCoord
SoMFVec3f texCoord3
SoMFVec3f normal
SoSFEnum normalBinding
SoMFUInt32 orderedRGBA
SoSFEnum materialBinding
Protected Member Functionsvirtual const SoFieldData * getFieldData (void) const
virtual ~SoVertexProperty ()
virtual void notify (SoNotList *list)
Static Protected Member Functionsstatic const SoFieldData ** getFieldDataPtr (void)
Additional Inherited Members
Detailed DescriptionThe SoVertexProperty class collects the functionality of various appearance nodes. Instead of reading data from the current state stack of the scenegraph traversal, nodes inheriting SoVertexShape can be set up with an SoVertexProperty node in the SoVertexShape::vertexProperty field. Coordinates, normals, texture coordinates and material / color information will then be fetched from the vertexshape's SoVertexProperty node instead of from the state stack. The SoVertexProperty node provides fields for duplicating the functionality of all these other Inventor node types: SoCoordinate3, SoTextureCoordinate2, SoTextureCoordinate3, SoNormal, SoPackedColor, SoMaterialBinding and SoNormalBinding. The SoVertexProperty node was introduced fairly late in the design of the Inventor API by SGI. The idea behind it was to provide a means to specify the necessary data for vertexshape-derived nodes which would be more efficient to work with than fetching the data from the traversal state stack. In practice, the effect is not at all very noticable. Since the use of SoVertexProperty nodes in the SoVertexShape::vertexProperty field somewhat breaks with the basic design of the Open Inventor API (the SoVertexProperty data is not pushed to the traversal state stack), you might be better off design-wise by using the usual mechanisms, ie by setting up the individual nodes SoVertexProperty 'collects'. One of the drawbacks will for instance be that it's not possible to share parts of the SoVertexProperty node between several shapes, which is something that can easily be done when setting up individual state-changing nodes in the scenegraph. FILE FORMAT/DEFAULTS: VertexProperty {
vertex [ ]
normal [ ]
texCoord [ ]
orderedRGBA [ ]
texCoord3 [ ]
normalBinding PER_VERTEX_INDEXED
materialBinding OVERALL
}
Since Inventor 2.1 See also SoVertexShape SoCoordinate3, SoTextureCoordinate2, SoTextureCoordinate3, SoNormal SoPackedColor SoMaterialBinding, SoNormalBinding
Member Enumeration Documentation
enum SoVertexProperty::BindingThe binding types available for our SoVertexProperty::normalBinding and SoVertexProperty::materialBinding fields. For a detailed explanation of each of the enumeration value binding types, see the documentation of the SoMaterialBinding node.
Constructor & Destructor Documentation
SoVertexProperty::SoVertexProperty (void)Constructor.
SoVertexProperty::~SoVertexProperty () [protected], [virtual]Destructor.
Member Function Documentation
SoType SoVertexProperty::getTypeId (void) const [virtual]Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting. Usage example: void foo(SoNode * node)
{
if (node->getTypeId() == SoFile::getClassTypeId()) {
SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type
}
}For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on. For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups. Implements SoBase.
const SoFieldData * SoVertexProperty::getFieldData (void) const [protected], [virtual]Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL. Reimplemented from SoFieldContainer.
void SoVertexProperty::doAction (SoAction * action) [virtual]This function performs the typical operation of a node for any action. Reimplemented from SoNode.
void SoVertexProperty::GLRender (SoGLRenderAction * action) [virtual]Action method for the SoGLRenderAction. This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method. Reimplemented from SoNode.
void SoVertexProperty::getBoundingBox (SoGetBoundingBoxAction * action) [virtual]Action method for the SoGetBoundingBoxAction. Calculates bounding box and center coordinates for node and modifies the values of the action to encompass the bounding box for this node and to shift the center point for the scene more towards the one for this node. Nodes influencing how geometry nodes calculates their bounding box also overrides this method to change the relevant state variables. Reimplemented from SoNode.
void SoVertexProperty::callback (SoCallbackAction * action) [virtual]Action method for SoCallbackAction. Simply updates the state according to how the node behaves for the render action, so the application programmer can use the SoCallbackAction for extracting information about the scene graph. Reimplemented from SoNode.
void SoVertexProperty::pick (SoPickAction * action) [virtual]Action method for SoPickAction. Does common processing for SoPickAction action instances. Reimplemented from SoNode.
void SoVertexProperty::getPrimitiveCount (SoGetPrimitiveCountAction * action) [virtual]Action method for the SoGetPrimitiveCountAction. Calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the action. Nodes influencing how geometry nodes calculates their primitive count also overrides this method to change the relevant state variables. Reimplemented from SoNode.
void SoVertexProperty::notify (SoNotList * l) [protected], [virtual]Notifies all auditors for this instance when changes are made. Reimplemented from SoNode.
Member Data Documentation
SoMFVec3f SoVertexProperty::vertexThis field sets up vertex coordinates in the same manner as SoCoordinate3::point. By default the field contains no coordinates. See also SoCoordinate3
SoMFVec2f SoVertexProperty::texCoordSame functionality as SoTextureCoordinate2::point. By default the field contains no coordinates. See also SoTextureCoordinate2
SoMFVec3f SoVertexProperty::texCoord3Same functionality as SoTextureCoordinate3::point. By default the field contains no coordinates. See also SoTextureCoordinate3 Since Coin 2.0 TGS Inventor 2.6
SoMFVec3f SoVertexProperty::normalThis field defines a set of normal vectors in the same manner as SoNormal::vector. By default the field contains no vectors. See also SoNormal
SoSFEnum SoVertexProperty::normalBindingDefines how to bind the normals specified in the SoVertexProperty::normal set to the parts of the 'owner' shape. Must be one of the values in the SoVertexProperty::Binding enum. Default value of the field is SoVertexProperty::PER_VERTEX_INDEXED. See also SoNormalBinding
SoMFUInt32 SoVertexProperty::orderedRGBAA set of 'packed' 32-bit diffusecolor plus transparency values. Works in the same manner as the SoPackedColor::orderedRGBA field. By default the field has no data. See also SoPackedColor
SoSFEnum SoVertexProperty::materialBindingDefines how to bind the colorvalues specified in the SoVertexProperty::orderedRGBA set to the parts of the 'owner' shape. Must be one of the values in the SoVertexProperty::Binding enum. Default value of the field is SoVertexProperty::OVERALL. See also SoMaterialBinding
AuthorGenerated automatically by Doxygen for Coin from the source code. 0
Johanes Gumabo
Data Size : 45,920 byte
man-SoVertexProperty.3coin3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 199,840
Visitor ID : :
Visitor IP : 3.133.155.48 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.