class grPrimitive: public grNode, public virtual vector

Abstract base class for all primitive nodes

Inheritance:


Inherited from grNode:

Public Methods

ochar* Name() const
ovoid Render( grStatus & status )
ovoid Select( grStatus & status )
ogrNode* FindByName( const GLuint name )


Documentation

Abstract base class for all primitive nodes. This is the abstract base class from wich all primitive node classes are derived, The primitive are: points, lines, line strips, lineloop, triangles, triangle strips, triangle fans, quads, quad strips, poligons. Note that all the primitive nodes are derived from vector: each int represents a vertex index on the current vertex set. If a primitive node is empty, all the current node vertex set are used to generate a set of primitives. On the complex sets, the value -1 are used as end-set mark, i.e. on triangle strip node, a value of -1 marks the end of a strip.

Direct child classes:
grTriangles
grTriangleStrip
grTriangleFan
grQuads
grQuadStrip
grPolygons
grPoints
grLines
grLineStrip
grLineLoop
See Also:
grVertex, opengl.

Alphabetic index HTML hierarchy of classes or Java


GCR, Graphics Library, VCG, IEI-CNR.