Image Component Library (ICL)
|
Texture Primitive for rendering textures with arbitrary texture coordinates. More...
#include <Primitive.h>
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 Primitive * | copy () const |
deep copy method | |
Public Attributes | |
utils::SmartPtr< qt::GLImg > | texture |
const core::ImgBase * | image |
std::vector< Vec > | ps |
std::vector< utils::Point32f > | texCoords |
std::vector< Vec > | normals |
std::vector< int > | vertexIndices |
if these are given (size > 0), ps and normals are not used! | |
std::vector< int > | normalIndices |
Texture Primitive for rendering textures with arbitrary texture coordinates.
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
virtual Primitive* icl::geom::GenericTexturePrimitive::copy | ( | ) | const [inline, virtual] |
deep copy method
Implements icl::geom::Primitive.
virtual ICLGeom_API void icl::geom::GenericTexturePrimitive::render | ( | const Primitive::RenderContext & | ctx | ) | [virtual] |
virtual render method, which is called by the parent scene object
Implements icl::geom::Primitive.
std::vector<int> icl::geom::GenericTexturePrimitive::normalIndices |
std::vector<Vec> icl::geom::GenericTexturePrimitive::normals |
std::vector<Vec> icl::geom::GenericTexturePrimitive::ps |
Reimplemented from icl::geom::Primitive.
std::vector<int> icl::geom::GenericTexturePrimitive::vertexIndices |
if these are given (size > 0), ps and normals are not used!