.TH "SoPrimitiveVertexCache" 3 "Tue Dec 26 2023 17:59:22" "Version 4.0.2" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoPrimitiveVertexCache \- This cache contains an organized version of the geometry in vertex array form\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoCache\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBArrays\fP { \fBNORMAL\fP = 0x01, \fBTEXCOORD\fP = 0x02, \fBCOLOR\fP = 0x04, \fBALL\fP = (NORMAL|TEXCOORD|COLOR) }" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSoPrimitiveVertexCache\fP (\fBSoState\fP *state)" .br .ti -1c .RI "\fBvirtual\fP \fB~SoPrimitiveVertexCache\fP ()" .br .ti -1c .RI "\fBvirtual\fP SbBool \fBisValid\fP (\fBconst\fP \fBSoState\fP *state) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBclose\fP (\fBSoState\fP *state)" .br .ti -1c .RI "\fBvoid\fP \fBrenderTriangles\fP (\fBSoState\fP *state, \fBconst\fP int \fBarrays\fP=ALL) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBrenderLines\fP (\fBSoState\fP *state, \fBconst\fP int \fBarrays\fP=ALL) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBrenderPoints\fP (\fBSoState\fP *state, \fBconst\fP int array=ALL) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBaddTriangle\fP (\fBconst\fP \fBSoPrimitiveVertex\fP *\fBv0\fP, \fBconst\fP \fBSoPrimitiveVertex\fP *\fBv1\fP, \fBconst\fP \fBSoPrimitiveVertex\fP *\fBv2\fP, \fBconst\fP int *\fBpointdetailidx\fP=\fBNULL\fP)" .br .ti -1c .RI "\fBvoid\fP \fBaddLine\fP (\fBconst\fP \fBSoPrimitiveVertex\fP *\fBv0\fP, \fBconst\fP \fBSoPrimitiveVertex\fP *\fBv1\fP)" .br .ti -1c .RI "\fBvoid\fP \fBaddPoint\fP (\fBconst\fP \fBSoPrimitiveVertex\fP *v)" .br .ti -1c .RI "int \fBgetNumVertices\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbVec3f\fP * \fBgetVertexArray\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbVec3f\fP * \fBgetNormalArray\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbVec4f\fP * \fBgetTexCoordArray\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbVec2f\fP * \fBgetBumpCoordArray\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP uint8_t * \fBgetColorArray\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "int \fBgetNumTriangleIndices\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBGLint\fP * \fBgetTriangleIndices\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "int32_t \fBgetTriangleIndex\fP (\fBconst\fP int idx) \fBconst\fP" .br .ti -1c .RI "SbBool \fBcolorPerVertex\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbVec4f\fP * \fBgetMultiTextureCoordinateArray\fP (\fBconst\fP int unit) \fBconst\fP" .br .ti -1c .RI "int \fBgetNumLineIndices\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBGLint\fP * \fBgetLineIndices\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "int \fBgetNumPointIndices\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBGLint\fP * \fBgetPointIndices\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBfit\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvoid\fP \fBdepthSortTriangles\fP (\fBSoState\fP *state)" .br .in -1c Public Member Functions inherited from \fBSoCache\fP .in +1c .ti -1c .RI "\fBSoCache\fP (\fBSoState\fP *\fBconst\fP state)" .br .ti -1c .RI "\fBvoid\fP \fBref\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvoid\fP \fBunref\fP (\fBSoState\fP *state=\fBNULL\fP)" .br .ti -1c .RI "\fBvoid\fP \fBaddElement\fP (\fBconst\fP \fBSoElement\fP *\fBconst\fP elem)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBaddCacheDependency\fP (\fBconst\fP \fBSoState\fP *state, \fBSoCache\fP *cache)" .br .ti -1c .RI "\fBconst\fP \fBSoElement\fP * \fBgetInvalidElement\fP (\fBconst\fP \fBSoState\fP *\fBconst\fP state) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBinvalidate\fP (\fBvoid\fP)" .br .in -1c .SS "Additional Inherited Members" Protected Member Functions inherited from \fBSoCache\fP .in +1c .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBdestroy\fP (\fBSoState\fP *state)" .br .ti -1c .RI "\fBvirtual\fP \fB~SoCache\fP ()" .br .in -1c .SH "Detailed Description" .PP This cache contains an organized version of the geometry in vertex array form\&. The SoPrimitiveVertexClass is used to cache generated triangles\&. .PP \fBSince\fP .RS 4 Coin \fB3\&.0\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoPrimitiveVertexCache::SoPrimitiveVertexCache (\fBSoState\fP * state)" Constructor\&. .SS "SoPrimitiveVertexCache::~SoPrimitiveVertexCache ()\fC [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "SbBool SoPrimitiveVertexCache::isValid (\fBconst\fP \fBSoState\fP * state) const\fC [virtual]\fP" Return \fITRUE\fP if this cache is valid, \fIFALSE\fP otherwise\&. .PP Reimplemented from \fBSoCache\fP\&. .SS "\fBvoid\fP SoPrimitiveVertexCache::close (\fBSoState\fP * state)" Closes the cache after it is created\&. Takes care of \fBSoGLLazyElement\fP synchronization\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.