Open Inventor Reference
|
#include <Inventor/nodes/SoVertexProperty.h>
Public Types | |
enum | { COLOR_BITS = 0x18 , PART_COLOR = 0x8 , FACE_COLOR = 0x10 , VERTEX_COLOR = 0x18 , NORMAL_BITS = 0x6 , PART_NORMAL = 0x2 , FACE_NORMAL = 0x4 , VERTEX_NORMAL = 0x6 , TEXCOORD_BIT = 0x1 } |
32 rendering cases. More... | |
enum | { TEXTURE_FUNCTION_BIT = 0x80 , OVERRIDE_FROM_STATE_BIT = 0x40 , COORD_FROM_STATE_BIT = 0x20 , COLOR_FROM_STATE_BITS = COLOR_BITS , NORMAL_FROM_STATE_BITS = NORMAL_BITS , TEXCOORD_FROM_STATE_BIT = TEXCOORD_BIT , ALL_FROM_STATE_BITS = 0xFF } |
Bit-mask, set by fillInCache method Bits use same as above, plus one for coords and one for overrides (diffuse color, material binding, transparency) plus one for texture function (if tcoords in VP) More... | |
Public Member Functions | |
bool | mightNeedSomethingFromState (const SoShapeStyleElement *sse) const |
API used by shapes: | |
void | fillInColorAndTranspAvail (const SoVertexProperty *, SoState *state) |
void | fillInCache (const SoVertexProperty *, SoState *) |
bool | shouldGenerateNormals (const SoShapeStyleElement *sse) const |
bool | shouldGenerateTexCoords (const SoShapeStyleElement *sse) const |
int | getRenderCase (const SoShapeStyleElement *sse) const |
bool | haveTexCoordsInVP () |
void | sendVertex (const char *vp) const |
void | sendNormal (const char *np) const |
void | sendColor (const char *cp) const |
void | sendTexCoord (const char *tcp) const |
int | getNumVertices () const |
int | getNumNormals () const |
int | getNumColors () const |
int | getNumTexCoords () const |
const char * | getVertices (int i) const |
const char * | getNormals (int i) const |
const char * | getColors (int i) const |
const char * | getTexCoords (int i) const |
bool | colorIsInVtxProp () const |
bool | transpIsInVtxProp () const |
Indicates if non-opaque transparency is in vertex property. | |
int | getVertexStride () const |
int | getNormalStride () const |
int | getColorStride () const |
int | getTexCoordStride () const |
SoNormalBindingElement::Binding | getNormalBinding () |
SoMaterialBindingElement::Binding | getMaterialBinding () |
SoTextureCoordinateBindingElement::Binding | getTexCoordBinding () |
void | invalidate () |
void | sendVertexAtIndex (const int32_t index) |
void | sendNormalAtIndex (const int32_t index) |
void | sendColorAtIndex (const int32_t index) |
void | sendTexCoordAtIndex (const int32_t index) |
SoVertexPropertyCache () | |
Constructor. Initializes everything. | |
Public Attributes | |
SoVPCacheFunc * | vertexFunc |
Tables of functions, data, and strides to increment through data. | |
const char * | vertexPtr |
int | vertexStride |
int | numVerts |
SoVPCacheFunc * | normalFunc |
const char * | normalPtr |
int | normalStride |
int | numNorms |
SoVPCacheFunc * | colorFunc |
const char * | colorPtr |
int | colorStride |
int | numColors |
SoVPCacheFunc * | texCoordFunc |
const char * | texCoordPtr |
int | texCoordStride |
int | numTexCoords |
bool | generateNormals |
bool | generateTexCoords |
unsigned char | needFromState |
Definition at line 264 of file SoVertexProperty.h.
anonymous enum |
Enumerator | |
---|---|
TEXTURE_FUNCTION_BIT | |
OVERRIDE_FROM_STATE_BIT | |
COORD_FROM_STATE_BIT | |
COLOR_FROM_STATE_BITS | |
NORMAL_FROM_STATE_BITS | |
TEXCOORD_FROM_STATE_BIT | |
ALL_FROM_STATE_BITS |
Definition at line 392 of file SoVertexProperty.h.
anonymous enum |
Non-indexed shapes can get away with just looking at the low 5 bits. The bits are arranged like this: 43210 BITS
00... Overall color 01... Part color 10... Face color 11... Vtx color ..00. Overall/No norm ..01. Part norm ..10. Face norm ..11. Vtx norm ....? Explicit exture coordinates needed
Enumerator | |
---|---|
COLOR_BITS | |
PART_COLOR | |
FACE_COLOR | |
VERTEX_COLOR | |
NORMAL_BITS | |
PART_NORMAL | |
FACE_NORMAL | |
VERTEX_NORMAL | |
TEXCOORD_BIT |
Definition at line 374 of file SoVertexProperty.h.
SoVertexPropertyCache::SoVertexPropertyCache | ( | ) |
|
inline |
Definition at line 310 of file SoVertexProperty.h.
void SoVertexPropertyCache::fillInCache | ( | const SoVertexProperty * | , |
SoState * | ) |
void SoVertexPropertyCache::fillInColorAndTranspAvail | ( | const SoVertexProperty * | , |
SoState * | state ) |
|
inline |
Definition at line 305 of file SoVertexProperty.h.
References colorPtr, and colorStride.
|
inline |
Definition at line 317 of file SoVertexProperty.h.
References colorStride.
|
inline |
Definition at line 323 of file SoVertexProperty.h.
|
inline |
Definition at line 320 of file SoVertexProperty.h.
|
inline |
Definition at line 303 of file SoVertexProperty.h.
References normalPtr, and normalStride.
|
inline |
Definition at line 316 of file SoVertexProperty.h.
References normalStride.
|
inline |
Definition at line 298 of file SoVertexProperty.h.
References numColors.
|
inline |
Definition at line 297 of file SoVertexProperty.h.
References numNorms.
|
inline |
Definition at line 299 of file SoVertexProperty.h.
References numTexCoords.
|
inline |
Definition at line 296 of file SoVertexProperty.h.
References numVerts.
|
inline |
Definition at line 281 of file SoVertexProperty.h.
References SoShapeStyleElement::getRenderCaseMask().
|
inline |
Definition at line 326 of file SoVertexProperty.h.
|
inline |
Definition at line 307 of file SoVertexProperty.h.
References texCoordPtr, and texCoordStride.
|
inline |
Definition at line 318 of file SoVertexProperty.h.
References texCoordStride.
|
inline |
Definition at line 315 of file SoVertexProperty.h.
References vertexStride.
|
inline |
Definition at line 301 of file SoVertexProperty.h.
References vertexPtr, and vertexStride.
|
inline |
Definition at line 284 of file SoVertexProperty.h.
References needFromState, and TEXTURE_FUNCTION_BIT.
|
inline |
Definition at line 329 of file SoVertexProperty.h.
References ALL_FROM_STATE_BITS, and needFromState.
|
inline |
Definition at line 269 of file SoVertexProperty.h.
References SoShapeStyleElement::getRenderCaseMask(), and needFromState.
|
inline |
Definition at line 291 of file SoVertexProperty.h.
void SoVertexPropertyCache::sendColorAtIndex | ( | const int32_t | index | ) |
|
inline |
Definition at line 289 of file SoVertexProperty.h.
void SoVertexPropertyCache::sendNormalAtIndex | ( | const int32_t | index | ) |
|
inline |
Definition at line 293 of file SoVertexProperty.h.
void SoVertexPropertyCache::sendTexCoordAtIndex | ( | const int32_t | index | ) |
|
inline |
Definition at line 287 of file SoVertexProperty.h.
void SoVertexPropertyCache::sendVertexAtIndex | ( | const int32_t | index | ) |
|
inline |
Definition at line 275 of file SoVertexProperty.h.
References generateNormals, and SoShapeStyleElement::needNormals().
|
inline |
Definition at line 278 of file SoVertexProperty.h.
References generateTexCoords, and SoShapeStyleElement::needTexCoords().
|
inline |
Definition at line 313 of file SoVertexProperty.h.
SoVPCacheFunc* SoVertexPropertyCache::colorFunc |
Definition at line 348 of file SoVertexProperty.h.
const char* SoVertexPropertyCache::colorPtr |
Definition at line 349 of file SoVertexProperty.h.
Referenced by getColors().
int SoVertexPropertyCache::colorStride |
Definition at line 350 of file SoVertexProperty.h.
Referenced by getColors(), and getColorStride().
bool SoVertexPropertyCache::generateNormals |
Definition at line 355 of file SoVertexProperty.h.
Referenced by shouldGenerateNormals().
bool SoVertexPropertyCache::generateTexCoords |
Definition at line 356 of file SoVertexProperty.h.
Referenced by shouldGenerateTexCoords().
unsigned char SoVertexPropertyCache::needFromState |
Definition at line 358 of file SoVertexProperty.h.
Referenced by haveTexCoordsInVP(), invalidate(), and mightNeedSomethingFromState().
SoVPCacheFunc* SoVertexPropertyCache::normalFunc |
Definition at line 345 of file SoVertexProperty.h.
const char* SoVertexPropertyCache::normalPtr |
Definition at line 346 of file SoVertexProperty.h.
Referenced by getNormals().
int SoVertexPropertyCache::normalStride |
Definition at line 347 of file SoVertexProperty.h.
Referenced by getNormals(), and getNormalStride().
int SoVertexPropertyCache::numColors |
Definition at line 350 of file SoVertexProperty.h.
Referenced by getNumColors().
int SoVertexPropertyCache::numNorms |
Definition at line 347 of file SoVertexProperty.h.
Referenced by getNumNormals().
int SoVertexPropertyCache::numTexCoords |
Definition at line 353 of file SoVertexProperty.h.
Referenced by getNumTexCoords().
int SoVertexPropertyCache::numVerts |
Definition at line 344 of file SoVertexProperty.h.
Referenced by getNumVertices().
SoVPCacheFunc* SoVertexPropertyCache::texCoordFunc |
Definition at line 351 of file SoVertexProperty.h.
const char* SoVertexPropertyCache::texCoordPtr |
Definition at line 352 of file SoVertexProperty.h.
Referenced by getTexCoords().
int SoVertexPropertyCache::texCoordStride |
Definition at line 353 of file SoVertexProperty.h.
Referenced by getTexCoords(), and getTexCoordStride().
SoVPCacheFunc* SoVertexPropertyCache::vertexFunc |
Definition at line 342 of file SoVertexProperty.h.
const char* SoVertexPropertyCache::vertexPtr |
Definition at line 343 of file SoVertexProperty.h.
Referenced by getVertices().
int SoVertexPropertyCache::vertexStride |
Definition at line 344 of file SoVertexProperty.h.
Referenced by getVertexStride(), and getVertices().