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

quad primitive More...

#include <Primitive.h>

Inheritance diagram for icl::geom::QuadPrimitive:
icl::math::FixedColVector< int, 8 > icl::geom::Primitive icl::math::FixedMatrix< int, 1, DIM > icl::utils::FixedArray< int, COLS *ROWS > icl::math::FixedMatrixBase icl::geom::SharedTexturePrimitive icl::geom::TexturePrimitive icl::geom::TextPrimitive

List of all members.

Public Types

typedef math::FixedColVector
< int, 8 > 
super
 super type

Public Member Functions

 QuadPrimitive (int a, int b, int c, int d, const GeomColor &color, int na=-1, int nb=-1, int nc=-1, int nd=-1, bool trySurfaceOptimization=false, int tesselationResolution=1)
 constructor
virtual ICLGeom_API void render (const Primitive::RenderContext &ctx)
 render method
int i (int idx) const
 direct access to the i-th vertex/normal index
virtual Primitivecopy () const
 deep copy implementation (trivial)
ICLGeom_API Vec computeNormal (const std::vector< Vec > &vertices) const
 computes the normal for this quad

Public Attributes

bool trySurfaceOptimization
 visualization optimization flag
int tesselationResolution
 number of sub-quads to render for better lighting

Detailed Description

quad primitive


Member Typedef Documentation

super type

Reimplemented from icl::math::FixedColVector< int, 8 >.


Constructor & Destructor Documentation

icl::geom::QuadPrimitive::QuadPrimitive ( int  a,
int  b,
int  c,
int  d,
const GeomColor color,
int  na = -1,
int  nb = -1,
int  nc = -1,
int  nd = -1,
bool  trySurfaceOptimization = false,
int  tesselationResolution = 1 
) [inline]

constructor


Member Function Documentation

ICLGeom_API Vec icl::geom::QuadPrimitive::computeNormal ( const std::vector< Vec > &  vertices) const

computes the normal for this quad

Given the parent SceneObject's vertex vector

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

deep copy implementation (trivial)

Implements icl::geom::Primitive.

Reimplemented in icl::geom::TextPrimitive, icl::geom::SharedTexturePrimitive, and icl::geom::TexturePrimitive.

int icl::geom::QuadPrimitive::i ( int  idx) const [inline]

direct access to the i-th vertex/normal index


Member Data Documentation

number of sub-quads to render for better lighting

for non-texture quads only. Interferes with quadColorsFromVertices. If both is activated, quadColorsFromVertices is not used!

visualization optimization flag


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