![]() |
http://www.sim.no http://www.coin3d.org |
The SoIndexedShape class is the superclass for all indexed vertex shapes. More...
#include <Inventor/nodes/SoIndexedShape.h>
Public Attributes | |
SoMFInt32 | coordIndex |
SoMFInt32 | materialIndex |
SoMFInt32 | normalIndex |
SoMFInt32 | textureCoordIndex |
![]() | |
SoSFNode | vertexProperty |
Static Protected Member Functions | |
static const SoFieldData ** | getFieldDataPtr (void) |
static SbBool | areTexCoordsIndexed (SoAction *action) |
![]() | |
static const SoFieldData ** | getFieldDataPtr (void) |
![]() | |
static const SoFieldData ** | getFieldDataPtr (void) |
![]() | |
static const SoFieldData ** | getFieldDataPtr (void) |
static void | setNextActionMethodIndex (int index) |
static int | getNextActionMethodIndex (void) |
static void | incNextActionMethodIndex (void) |
static void | setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask) |
![]() | |
static uint32_t | getCurrentWriteCounter (void) |
static void | staticDataLock (void) |
static void | staticDataUnlock (void) |
Additional Inherited Members | |
![]() | |
enum | TriangleShape { TRIANGLE_STRIP , TRIANGLE_FAN , TRIANGLES , POLYGON , QUADS , QUAD_STRIP , POINTS , LINES , LINE_STRIP } |
![]() | |
enum | NodeType { INVENTOR = 0x0000 , VRML1 = 0x0001 , VRML2 = 0x0002 , INVENTOR_1 = 0x0004 , INVENTOR_2_0 = 0x0008 , INVENTOR_2_1 = 0x0010 , INVENTOR_2_5 = 0x0020 , INVENTOR_2_6 = 0x0040 , COIN_1_0 = 0x0080 , COIN_2_0 = 0x0100 , EXTENSION = 0x0200 , COIN_2_2 = 0x0400 , COIN_2_3 = 0x0800 , COIN_2_4 = 0x1000 , INVENTOR_5_0 = 0x2000 , COIN_2_5 = 0x4000 } |
![]() | |
enum | BaseFlags { IS_ENGINE = 0x01 , IS_GROUP = 0x02 } |
![]() | |
uint32_t | uniqueId |
![]() | |
SbBool | isBuiltIn |
![]() | |
static uint32_t | nextUniqueId = 0 |
static int | nextActionMethodIndex = 0 |
The SoIndexedShape class is the superclass for all indexed vertex shapes.
This is an abstract class which contains storage for four fields for indices to coordinates, normals, materials and texture coordinates for it's subclasses.
|
protected |
Constructor.
References coordIndex, materialIndex, normalIndex, and textureCoordIndex.
|
protectedvirtual |
Destructor.
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:
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 SoVertexShape.
Reimplemented in SoIndexedFaceSet, SoIndexedLineSet, and SoIndexedTriangleStripSet.
|
protectedvirtual |
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL
.
Reimplemented from SoVertexShape.
Reimplemented in SoIndexedFaceSet, SoIndexedLineSet, and SoIndexedTriangleStripSet.
|
protectedvirtual |
Implemented by SoShape subclasses to let the SoShape superclass know the exact size and weighted center point of the shape's bounding box.
The bounding box and center point should be calculated and returned in the local coordinate system.
The method implements action behavior for shape nodes for SoGetBoundingBoxAction. It is invoked from SoShape::getBoundingBox(). (Subclasses should not override SoNode::getBoundingBox().)
The box parameter sent in is guaranteed to be an empty box, while center is undefined upon function entry.
Implements SoShape.
References coordIndex, SoMField::getNum(), SbVec4f::getReal(), SoAction::getState(), SoMFInt32::getValues(), SbVec3f::setValue(), and SoVertexShape::vertexProperty.
|
protected |
Starting at index position startCoord, returns the number of indices until either the end of index array or a separator index (-1).
References coordIndex, SoMField::getNum(), and SoMFInt32::getValues().
|
protected |
Not implemented. Probably only used for internal purposes in SGI's original Open Inventor, which means it should have been private.
Let us know if you need this method for any code you are porting and we'll look into implement it properly.
Not implemented. Probably only used for internal purposes in SGI's original Open Inventor, which means it should have been private.
Let us know if you need this method for any code you are porting and we'll look into implement it properly.
Not implemented. Probably only used for internal purposes in SGI's original Open Inventor, which means it should have been private.
Let us know if you need this method for any code you are porting and we'll look into implement it properly.
Not implemented. Probably only used for internal purposes in SGI's original Open Inventor, which means it should have been private.
Let us know if you need this method for any code you are porting and we'll look into implement it properly.
|
staticprotected |
Returns whether texture coordinates should be indexed or not.
References SoAction::getState().
|
protected |
Convenience method that will fetch data needed for rendering or generating primitives. Takes care of normal cache.
This method was not part of the original SGI Open Inventor API, and is an extension specific for Coin.
References coordIndex, SoVertexShape::generateAndReadLockNormalCache(), SoMField::getNum(), SoMFInt32::getValues(), SoVertexShape::getVertexData(), materialIndex, normalIndex, SoVertexShape::readUnlockNormalCache(), and textureCoordIndex.
Referenced by SoIndexedFaceSet::generatePrimitives(), SoIndexedTriangleStripSet::generatePrimitives(), SoIndexedFaceSet::GLRender(), SoIndexedLineSet::GLRender(), and SoIndexedTriangleStripSet::GLRender().
SoMFInt32 SoIndexedShape::coordIndex |
Coordinate indices.
Referenced by computeBBox(), SoIndexedFaceSet::generateDefaultNormals(), SoIndexedTriangleStripSet::generateDefaultNormals(), SoIndexedFaceSet::generatePrimitives(), SoIndexedTriangleStripSet::generatePrimitives(), getNumVerts(), SoIndexedFaceSet::getPrimitiveCount(), SoIndexedLineSet::getPrimitiveCount(), SoIndexedTriangleStripSet::getPrimitiveCount(), getVertexData(), SoIndexedFaceSet::GLRender(), SoIndexedLineSet::GLRender(), SoIndexedTriangleStripSet::GLRender(), and SoIndexedShape().
SoMFInt32 SoIndexedShape::materialIndex |
Material indices.
Referenced by getVertexData(), and SoIndexedShape().
SoMFInt32 SoIndexedShape::normalIndex |
Normal indices.
Referenced by getVertexData(), and SoIndexedShape().
SoMFInt32 SoIndexedShape::textureCoordIndex |
Texture coordinate indices.
Referenced by getVertexData(), and SoIndexedShape().
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 19 2023 for Coin by Doxygen. 1.9.8