SoVRMLVertexShape - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 2.5.0
Note : Coin

NAMESoVRMLVertexShape − The SoVRMLVertexShape class is a superclass for vertex based shapes​.

SYNOPSIS
#include <Inventor/VRMLnodes/SoVRMLVertexShape​.h> Inherits SoVRMLGeometry​. Inherited by SoVRMLIndexedShape​.

Public Typesenum Binding { OVERALL = SoMaterialBindingElement::OVERALL, PER_PART = SoMaterialBindingElement::PER_PART, PER_PART_INDEXED = SoMaterialBindingElement::PER_PART_INDEXED, PER_FACE = SoMaterialBindingElement::PER_FACE, PER_FACE_INDEXED = SoMaterialBindingElement::PER_FACE_INDEXED, PER_VERTEX = SoMaterialBindingElement::PER_VERTEX, PER_VERTEX_INDEXED = SoMaterialBindingElement::PER_VERTEX_INDEXED }

Public Member Functionsvirtual SoType getTypeId (void) const
virtual SbBool generateDefaultNormals (SoState *s, SoNormalBundle *nb)
virtual SbBool generateDefaultNormals (SoState *s, SoNormalCache *nc)
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 notify (SoNotList *list)

Static Public Member Functionsstatic SoType getClassTypeId (void)
static void initClass (void)

Public AttributesSoSFNode coord
SoSFNode texCoord
SoSFNode normal
SoSFNode color
SoSFBool colorPerVertex
SoSFBool normalPerVertex

Protected Member Functionsvirtual const SoFieldData * getFieldData (void) const
SoVRMLVertexShape (void)
virtual ~SoVRMLVertexShape ()
virtual SbBool shouldGLRender (SoGLRenderAction *action)
void setNormalCache (SoState *s, int numNormals, SbVec3f *normals)
SoNormalCache * getNormalCache (void) const
SoNormalCache * generateAndReadLockNormalCache (SoState *const state)
void getVertexData (SoState *state, const SoCoordinateElement *&coords, const SbVec3f *&normals, const SbBool neednormals)
void readLockNormalCache (void)
void readUnlockNormalCache (void)

Static Protected Member Functionsstatic const SoFieldData ** getFieldDataPtr (void)

Additional Inherited Members

Detailed DescriptionThe SoVRMLVertexShape class is a superclass for vertex based shapes​.

Constructor & Destructor Documentation

SoVRMLVertexShape::SoVRMLVertexShape (void) [protected]Constructor​. References color, colorPerVertex, coord, normal, normalPerVertex, and texCoord​.

SoVRMLVertexShape::~SoVRMLVertexShape () [protected], [virtual]Destructor​.

Member Function Documentation

SoType SoVRMLVertexShape::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 } else if (node->getTypeId()​.isOfType(SoGroup::getClassTypeId())) { SoGroup * group = (SoGroup *)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​. Reimplemented from SoVRMLGeometry​. Reimplemented in SoVRMLIndexedShape, and SoVRMLIndexedFaceSet​.

const SoFieldData * SoVRMLVertexShape::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 SoVRMLGeometry​. Reimplemented in SoVRMLIndexedShape, and SoVRMLIndexedFaceSet​.

SbBool SoVRMLVertexShape::generateDefaultNormals (SoState * s, SoNormalBundle * nb) [virtual]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer​.


 Subclasses should override this method to generate default normals using the SoNormalBundle class​.
TRUE should be returned if normals were generated, FALSE otherwise​. Default method returns FALSE​. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2​.1 API​.
Reimplemented in SoVRMLIndexedFaceSet​. Referenced by generateAndReadLockNormalCache()​.

SbBool SoVRMLVertexShape::generateDefaultNormals (SoState * s, SoNormalCache * nc) [virtual]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer​.


 Subclasses should override this method to generate default normals using the SoNormalCache class​. This is more effective than using SoNormalGenerator​. Return
TRUE if normals were generated, FALSE otherwise​. Default method just returns FALSE​. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2​.1 API​.
Reimplemented in SoVRMLIndexedFaceSet​.

void SoVRMLVertexShape::doAction (SoAction * action) [virtual]This function performs the typical operation of a node for any action​. Reimplemented from SoNode​. References color, coord, SoNode::doAction(), normal, and texCoord​. Referenced by SoVRMLIndexedFaceSet::generatePrimitives()​.

void SoVRMLVertexShape::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 SoShape​. Reimplemented in SoVRMLIndexedFaceSet​. References color, coord, SoNode::GLRender(), normal, and texCoord​. Referenced by SoVRMLIndexedFaceSet::GLRender()​.

void SoVRMLVertexShape::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 SoShape​. References SoShape::getBoundingBox()​.

void SoVRMLVertexShape::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 SoShape​. References SoShape::callback()​.

void SoVRMLVertexShape::pick (SoPickAction * action) [virtual]Action method for SoPickAction​. Does common processing for SoPickAction action instances​. Reimplemented from SoNode​. References SoNode::pick()​.

void SoVRMLVertexShape::notify (SoNotList * l) [virtual]Notifies all auditors for this instance when changes are made​. Reimplemented from SoVRMLGeometry​. Reimplemented in SoVRMLIndexedShape​. References coord, SoNotList::getLastField(), SoVRMLGeometry::notify(), readLockNormalCache(), and readUnlockNormalCache()​. Referenced by SoVRMLIndexedShape::notify()​.

SbBool SoVRMLVertexShape::shouldGLRender (SoGLRenderAction * action) [protected], [virtual]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer​.

Reimplemented from SoVRMLGeometry​. References SoShape::shouldGLRender()​. Referenced by SoVRMLIndexedFaceSet::GLRender()​.

SoNormalCache * SoVRMLVertexShape::generateAndReadLockNormalCache (SoState *const state) [protected]Convenience method that can be used by subclasses to return or create a normal cache​. If the current cache is not valid, it takes care of unrefing the old cache and pushing and popping the state to create element dependencies when creating the new cache​. When returning from this method, the normal cache will be read locked, and the caller should call readUnlockNormalCache() when the normals in the cache is no longer needed​. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2​.1 API​.
Since Coin 2​.0 References generateDefaultNormals(), SoState::pop(), SoState::push(), readLockNormalCache(), and readUnlockNormalCache()​. Referenced by SoVRMLIndexedShape::getVertexData()​.

void SoVRMLVertexShape::getVertexData (SoState * state, const SoCoordinateElement *& coords, const SbVec3f *& normals, const SbBool neednormals) [protected]Convenience method that returns the current coordinate and normal element​. This method is not part of the OIV API​. References SoMField::getNum(), SoMFVec3f::getValues(), normal, and SoVRMLNormal::vector​. Referenced by SoVRMLIndexedShape::getVertexData()​.

void SoVRMLVertexShape::readLockNormalCache (void) [protected]Read lock the normal cache​. This method should be called before fetching the normal cache (using getNormalCache())​. When the cached normals are no longer needed, readUnlockNormalCache() must be called​. It is also possible to use generateAndReadLockNormalCache()​. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2​.1 API​.
See also readUnlockNormalCache() Since Coin 2​.0 Referenced by generateAndReadLockNormalCache(), and notify()​.

void SoVRMLVertexShape::readUnlockNormalCache (void) [protected]Read unlock the normal cache​. Should be called when the read-locked cached normals are no longer needed​. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2​.1 API​.
See also readLockNormalCache() Since Coin 2​.0 Referenced by generateAndReadLockNormalCache(), SoVRMLIndexedFaceSet::generatePrimitives(), SoVRMLIndexedShape::getVertexData(), SoVRMLIndexedFaceSet::GLRender(), and notify()​.

Member Data Documentation

SoSFNode SoVRMLVertexShape::coordShould contain an SoVRMLCoordinate node​. Referenced by SoVRMLIndexedShape::computeBBox(), doAction(), SoVRMLIndexedFaceSet::generateDefaultNormals(), GLRender(), notify(), and SoVRMLVertexShape()​.

SoSFNode SoVRMLVertexShape::texCoordCan contain an SoVRMLTextureCoordinate node​. Referenced by doAction(), GLRender(), and SoVRMLVertexShape()​.

SoSFNode SoVRMLVertexShape::normalCan contain an SoVRMLNormal node​. Referenced by doAction(), getVertexData(), GLRender(), and SoVRMLVertexShape()​.

SoSFNode SoVRMLVertexShape::colorCan contain an SoVRMLColor node​. Referenced by doAction(), GLRender(), and SoVRMLVertexShape()​.

SoSFBool SoVRMLVertexShape::colorPerVertexWhen TRUE, colors are applied per vertex​. Default value is TRUE​. Referenced by SoVRMLVertexShape()​.

SoSFBool SoVRMLVertexShape::normalPerVertexWhen TRUE, normals are applied per vertex​. Default value is TRUE​. Referenced by SoVRMLVertexShape()​.

AuthorGenerated automatically by Doxygen for Coin from the source code​.
0
Johanes Gumabo
Data Size   :   53,866 byte
man-SoVRMLVertexShape.3coin2Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 180,539
Visitor ID   :     :  
Visitor IP   :   18.117.10.207   :  
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.