Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
icl::geom::PolygonPrimitive Struct Reference

polygon primitive More...

#include <Primitive.h>

Inheritance diagram for icl::geom::PolygonPrimitive:
icl::geom::Primitive

List of all members.

Public Member Functions

 PolygonPrimitive (int n, const int *vidx, const GeomColor &color, const int *nidx=0)
 constructor
virtual ICLGeom_API void render (const Primitive::RenderContext &ctx)
 render method
virtual Primitivecopy () const
 deep copy method
int getNumPoints () const
 direct access to number of vertices
int getVertexIndex (int i) const
 direct access to i-th vertex index
int getNormalIndex (int i) const
 direct access to i-th normal index
bool hasNormals () const
 utility method to ask whether normal indices are available

Public Attributes

utils::Array2D< int > idx
 vertex and texture primitives

Detailed Description

polygon primitive

The Array2D's first row contains the


Constructor & Destructor Documentation

icl::geom::PolygonPrimitive::PolygonPrimitive ( int  n,
const int *  vidx,
const GeomColor color,
const int *  nidx = 0 
) [inline]

constructor


Member Function Documentation

virtual Primitive* icl::geom::PolygonPrimitive::copy ( ) const [inline, virtual]

deep copy method

Implements icl::geom::Primitive.

int icl::geom::PolygonPrimitive::getNormalIndex ( int  i) const [inline]

direct access to i-th normal index

This will crash, if there are no normals

direct access to number of vertices

int icl::geom::PolygonPrimitive::getVertexIndex ( int  i) const [inline]

direct access to i-th vertex index

bool icl::geom::PolygonPrimitive::hasNormals ( ) const [inline]

utility method to ask whether normal indices are available

render method

Implements icl::geom::Primitive.


Member Data Documentation

vertex and texture primitives

Layout:

  • first row: column i -> vertex index i
  • 2nd row: (optional) column i -> normal index i

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines