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

Texture Primitive for rendering textures with arbitrary texture coordinates. More...

#include <Primitive.h>

Inheritance diagram for icl::geom::GenericTexturePrimitive:
icl::geom::Primitive icl::geom::AlphaFuncProperty

List of all members.

Public Member Functions

ICLGeom_API GenericTexturePrimitive (const core::ImgBase *image, int numPoints, const float *xs, const float *ys, const float *zs, int xyzStride, const utils::Point32f *texCoords, const float *nxs=0, const float *nys=0, const float *nzs=0, int nxyzStride=1, bool createTextureOnce=true)
 Generic version, where the given values are copied deeply into the internal buffers for rendering.
ICLGeom_API GenericTexturePrimitive (const core::ImgBase *image, int numPoints, const int *vertexIndices, const utils::Point32f *texCoords, const int *normalIndices=0, bool createTextureOnce=true)
 less generic Constructor, that uses index-pointers for referencing vertices and normals of the parent SceneObject
virtual ICLGeom_API void render (const Primitive::RenderContext &ctx)
 virtual render method, which is called by the parent scene object
virtual Primitivecopy () const
 deep copy method

Public Attributes

utils::SmartPtr< qt::GLImgtexture
const core::ImgBaseimage
std::vector< Vecps
std::vector< utils::Point32ftexCoords
std::vector< Vecnormals
std::vector< int > vertexIndices
 if these are given (size > 0), ps and normals are not used!
std::vector< int > normalIndices

Detailed Description

Texture Primitive for rendering textures with arbitrary texture coordinates.


Constructor & Destructor Documentation

ICLGeom_API icl::geom::GenericTexturePrimitive::GenericTexturePrimitive ( const core::ImgBase image,
int  numPoints,
const float *  xs,
const float *  ys,
const float *  zs,
int  xyzStride,
const utils::Point32f texCoords,
const float *  nxs = 0,
const float *  nys = 0,
const float *  nzs = 0,
int  nxyzStride = 1,
bool  createTextureOnce = true 
)

Generic version, where the given values are copied deeply into the internal buffers for rendering.

ICLGeom_API icl::geom::GenericTexturePrimitive::GenericTexturePrimitive ( const core::ImgBase image,
int  numPoints,
const int *  vertexIndices,
const utils::Point32f texCoords,
const int *  normalIndices = 0,
bool  createTextureOnce = true 
)

less generic Constructor, that uses index-pointers for referencing vertices and normals of the parent SceneObject


Member Function Documentation

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

deep copy method

Implements icl::geom::Primitive.

virtual render method, which is called by the parent scene object

Implements icl::geom::Primitive.


Member Data Documentation

Reimplemented from icl::geom::Primitive.

if these are given (size > 0), ps and normals are not used!


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