Coin  4.0.3
Coin3D core library
Loading...
Searching...
No Matches
SoPrimitiveVertexCache Class Reference

This cache contains an organized version of the geometry in vertex array form. More...

#include <Inventor/caches/SoPrimitiveVertexCache.h>

Inheritance diagram for SoPrimitiveVertexCache:
SoCache

Public Types

enum  Arrays { NORMAL = 0x01 , TEXCOORD = 0x02 , COLOR = 0x04 , ALL = (NORMAL|TEXCOORD|COLOR) }
 

Public Member Functions

 SoPrimitiveVertexCache (SoState *state)
 
virtual ~SoPrimitiveVertexCache ()
 
void addLine (const SoPrimitiveVertex *v0, const SoPrimitiveVertex *v1)
 
void addPoint (const SoPrimitiveVertex *v)
 
void addTriangle (const SoPrimitiveVertex *v0, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, const int *pointdetailidx=NULL)
 
void close (SoState *state)
 
SbBool colorPerVertex (void) const
 
void depthSortTriangles (SoState *state)
 
void fit (void)
 
const SbVec2fgetBumpCoordArray (void) const
 
const uint8_t * getColorArray (void) const
 
const GLintgetLineIndices (void) const
 
const SbVec4fgetMultiTextureCoordinateArray (const int unit) const
 
const SbVec3fgetNormalArray (void) const
 
int getNumLineIndices (void) const
 
int getNumPointIndices (void) const
 
int getNumTriangleIndices (void) const
 
int getNumVertices (void) const
 
const GLintgetPointIndices (void) const
 
const SbVec4fgetTexCoordArray (void) const
 
int32_t getTriangleIndex (const int idx) const
 
const GLintgetTriangleIndices (void) const
 
const SbVec3fgetVertexArray (void) const
 
virtual SbBool isValid (const SoState *state) const
 
void renderLines (SoState *state, const int arrays=ALL) const
 
void renderPoints (SoState *state, const int array=ALL) const
 
void renderTriangles (SoState *state, const int arrays=ALL) const
 
- Public Member Functions inherited from SoCache
 SoCache (SoState *const state)
 
virtual void addCacheDependency (const SoState *state, SoCache *cache)
 
void addElement (const SoElement *const elem)
 
const SoElementgetInvalidElement (const SoState *const state) const
 
void invalidate (void)
 
void ref (void)
 
void unref (SoState *state=NULL)
 

Additional Inherited Members

- Protected Member Functions inherited from SoCache
virtual ~SoCache ()
 
virtual void destroy (SoState *state)
 

Detailed Description

This cache contains an organized version of the geometry in vertex array form.

The SoPrimitiveVertexClass is used to cache generated triangles.

Since
Coin 3.0

Constructor & Destructor Documentation

◆ SoPrimitiveVertexCache()

SoPrimitiveVertexCache::SoPrimitiveVertexCache ( SoState * state)

Constructor.

◆ ~SoPrimitiveVertexCache()

SoPrimitiveVertexCache::~SoPrimitiveVertexCache ( )
virtual

Destructor.

Member Function Documentation

◆ close()

void SoPrimitiveVertexCache::close ( SoState * state)

Closes the cache after it is created. Takes care of SoGLLazyElement synchronization.

◆ isValid()

SbBool SoPrimitiveVertexCache::isValid ( const SoState * state) const
virtual

Return TRUE if this cache is valid, FALSE otherwise.

Reimplemented from SoCache.


The documentation for this class was generated from the following files: