Image Component Library (ICL)
Public Member Functions | Private Attributes | List of all members
icl::geom::TwoSidedTextureGridPrimitive Class Reference

#include <Primitive.h>

Inheritance diagram for icl::geom::TwoSidedTextureGridPrimitive:
icl::geom::TextureGridPrimitive icl::geom::Primitive icl::geom::AlphaFuncProperty

Public Member Functions

 TwoSidedTextureGridPrimitive (int w, int h, const core::ImgBase *front, const core::ImgBase *back, const icl32f *px, const icl32f *py, const icl32f *pz, const icl32f *pnx=0, const icl32f *pny=0, const icl32f *pnz=0, int stride=1, bool createFrontOnce=true, bool createBackOnce=true, core::scalemode sm=core::interpolateLIN)
 
virtual ICLGeom_API void render (const Primitive::RenderContext &ctx)
 virtual render method, which is called by the parent scene object More...
 
ICLGeom_API void setTextures (const core::ImgBase *front, const core::ImgBase *back)
 sets new textures More...
 
- Public Member Functions inherited from icl::geom::TextureGridPrimitive
 TextureGridPrimitive (int w, int h, const core::ImgBase *image, const icl32f *px, const icl32f *py, const icl32f *pz, const icl32f *pnx=0, const icl32f *pny=0, const icl32f *pnz=0, int stride=1, bool createTextureOnce=true, core::scalemode sm=core::interpolateLIN)
 
virtual Primitivecopy () const
 must be implemented in order to obtain a deep and independent copy More...
 
ICLGeom_API void getAABB (utils::Range32f aabb[3])
 
Vec getPos (int x, int y) const
 
- Public Member Functions inherited from icl::geom::Primitive
 Primitive (Type type=nothing, const GeomColor &color=GeomColor(255, 255, 255, 255))
 Default constructor. More...
 
virtual ~Primitive ()
 virtual, but empty destructor More...
 
- Public Member Functions inherited from icl::geom::AlphaFuncProperty
ICLGeom_API AlphaFuncProperty ()
 base constructor setting up to GL_GREATER 0.1 More...
 
 AlphaFuncProperty (int alphaFunc, float alphaValue)
 
void setAlphaFunc (int func, float value)
 used for setting up the alpha func, that is used to render this texture primitive More...
 
ICLGeom_API void restoreAlphaDefaults ()
 

Private Attributes

qt::GLImg back
 
const core::ImgBaseiback
 

Additional Inherited Members

- Public Types inherited from icl::geom::Primitive
enum  Type {
  vertex = 1<<0, line = 1<<1, triangle = 1<<2, quad = 1<<3,
  polygon = 1<<4, texture = 1<<5, text = 1<<6, nothing = 1<<7,
  custom = 1<<20, PRIMITIVE_TYPE_COUNT = 8, all = (1<<PRIMITIVE_TYPE_COUNT)-1, faces = triangle | quad | polygon | texture | text
}
 primitive type for dynamic handling of different primitives More...
 
- Public Attributes inherited from icl::geom::Primitive
Type type
 the primitive type More...
 
GeomColor color
 the color of this primitive More...
 
- Public Attributes inherited from icl::geom::AlphaFuncProperty
int alphaFunc
 < used for glAlphaFunc call glAlphaFunc((GLenum)alphaFunc,alphaValue) More...
 
float alphaValue
 < used for glAlphaFunc call glAlphaFunc((GLenum)alphaFunc,alphaValue) More...
 
- Protected Attributes inherited from icl::geom::TextureGridPrimitive
int w
 
int h
 
qt::GLImg texture
 
const icl32fpx
 
const icl32fpy
 
const icl32fpz
 
const icl32fpnx
 
const icl32fpny
 
const icl32fpnz
 
int stride
 
const core::ImgBaseimage
 

Constructor & Destructor Documentation

◆ TwoSidedTextureGridPrimitive()

icl::geom::TwoSidedTextureGridPrimitive::TwoSidedTextureGridPrimitive ( int  w,
int  h,
const core::ImgBase front,
const core::ImgBase back,
const icl32f px,
const icl32f py,
const icl32f pz,
const icl32f pnx = 0,
const icl32f pny = 0,
const icl32f pnz = 0,
int  stride = 1,
bool  createFrontOnce = true,
bool  createBackOnce = true,
core::scalemode  sm = core::interpolateLIN 
)
inline

Member Function Documentation

◆ render()

virtual ICLGeom_API void icl::geom::TwoSidedTextureGridPrimitive::render ( const Primitive::RenderContext ctx)
virtual

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

Reimplemented from icl::geom::TextureGridPrimitive.

◆ setTextures()

ICLGeom_API void icl::geom::TwoSidedTextureGridPrimitive::setTextures ( const core::ImgBase front,
const core::ImgBase back 
)

sets new textures

Member Data Documentation

◆ back

qt::GLImg icl::geom::TwoSidedTextureGridPrimitive::back
private

◆ iback

const core::ImgBase* icl::geom::TwoSidedTextureGridPrimitive::iback
private

The documentation for this class was generated from the following file: