Image Component Library (ICL)
|
quad primitive More...
#include <Primitive.h>
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 Primitive * | copy () 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 |
quad primitive
typedef math::FixedColVector<int,8> icl::geom::QuadPrimitive::super |
super type
Reimplemented from icl::math::FixedColVector< int, 8 >.
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
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
virtual ICLGeom_API void icl::geom::QuadPrimitive::render | ( | const Primitive::RenderContext & | ctx | ) | [virtual] |
render method
Implements icl::geom::Primitive.
Reimplemented in icl::geom::TextPrimitive, icl::geom::SharedTexturePrimitive, and icl::geom::TexturePrimitive.
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