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

Text Texture. More...

#include <Primitive.h>

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

List of all members.

Public Member Functions

ICLGeom_API TextPrimitive (int a, int b, int c, int d, const std::string &text, int textSize=20, const GeomColor &textColor=GeomColor(255, 255, 255, 255), int na=-1, int nb=-1, int nc=-1, int nd=-1, float billboardHeight=0, core::scalemode sm=core::interpolateLIN)
 constructor
ICLGeom_API ~TextPrimitive ()
virtual ICLGeom_API void render (const Primitive::RenderContext &ctx)
 render method
virtual Primitivecopy () const
 deep copy method
void updateText (const std::string &newText)
 sets new text

Static Public Member Functions

static ICLGeom_API core::Img8u create_texture (const std::string &text, const GeomColor &color, int textSize)
 utility method to creat a text texture

Public Attributes

int textSize
 internal memory for the text size
GeomColor textColor
 internal memory for the text color
float billboardHeight
 used for billboard text

Detailed Description

Text Texture.

The text texture is implemented by a static common texture


Constructor & Destructor Documentation

ICLGeom_API icl::geom::TextPrimitive::TextPrimitive ( int  a,
int  b,
int  c,
int  d,
const std::string &  text,
int  textSize = 20,
const GeomColor textColor = GeomColor(255, 255, 255, 255),
int  na = -1,
int  nb = -1,
int  nc = -1,
int  nd = -1,
float  billboardHeight = 0,
core::scalemode  sm = core::interpolateLIN 
)

constructor


Member Function Documentation

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

deep copy method

Reimplemented from icl::geom::TexturePrimitive.

static ICLGeom_API core::Img8u icl::geom::TextPrimitive::create_texture ( const std::string &  text,
const GeomColor color,
int  textSize 
) [static]

utility method to creat a text texture

render method

Reimplemented from icl::geom::TexturePrimitive.

void icl::geom::TextPrimitive::updateText ( const std::string &  newText) [inline]

sets new text


Member Data Documentation

used for billboard text

if the value is > 0, the text-texture will always be oriented towards the camera. the billboardHeight value is used as text-height (in scene units)

internal memory for the text color

internal memory for the text size


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