Cumulia Illustrator Rendering Engine v1.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::TextDecal Class Reference

#include <textdecal.h>

Inheritance diagram for cil::TextDecal:
cil::Decal cil::Node cil::Object

Public Member Functions

 TextDecal (const std::wstring &text, const Vector3f &position)
 
 TextDecal (const std::string &text, const Vector3f &position)
 
virtual ~TextDecal ()
 
int fontSize () const
 
void setFontSize (int size)
 
Color3f fontColor () const
 
void setFontColor (const Color3f &color)
 
std::string fontFamily () const
 
void setFontFamily (const std::string &family)
 
std::wstring text () const
 
void setText (const std::wstring &text)
 
void setText (const std::string &text)
 
int padding () const
 
void setPadding (int padding)
 
Color3f backgroundColor () const
 
void setBackgroundColor (const Color3f &color)
 
Color3f borderColor () const
 
void setBorderColor (const Color3f &color)
 
void generate ()
 
- Public Member Functions inherited from cil::Decal
 Decal (const Vector3f &position)
 
virtual ~Decal ()
 
Vector3f position () const
 
void setPosition (const Vector3f &position)
 
Anchor anchor () const
 
void setAnchor (Anchor anchor)
 
Vector2i offset () const
 
void setOffset (const Vector2i &offset)
 
- Public Member Functions inherited from cil::Object
 Object ()
 
virtual ~Object ()
 

Additional Inherited Members

- Public Types inherited from cil::Decal
enum class  Anchor {
  TopLeft , Top , TopRight , Left ,
  Center , Right , BottomLeft , Bottom ,
  BottomRight
}
 
- Public Attributes inherited from cil::Node
std::string name
 This memeber stores the name of the node.
 
std::shared_ptr< Meshmesh
 This member is a shared pointer to a Mesh object, which means the node has a 3D object with its geometry defined by a mesh.
 
std::shared_ptr< std::vector< std::shared_ptr< Node > > > children
 This member is a dynamic array of shared pointers to the child Node objects. This allows the node to have a tree-like hierarchical structure.
 
std::shared_ptr< Matrix4ftransform
 This member is a shared pointer to a Matrix4f object. This matrix represents the transformation(position, rotation, scale) applied to the current node and its descendants.
 
std::shared_ptr< BoundingBoxboundingBox
 This member is a shared pointer to a BoundingBox.
 
std::shared_ptr< Materialmaterial
 This member is a shared pointer to a Mateiral object, which means the node can have its own material properties defining its appearance(color, texture, etc).
 
std::shared_ptr< Geometrygeometry
 This member is a shared pointer to a Geometry object, which maybe used for specific geometric data relevant to the node, potentially associated with the mesh or for other rendering purposes.
 
std::shared_ptr< Queryquery
 This member is a shared pointer to a Query object, and it is some type of query operation performed on the node or its descendants.
 
- Static Public Attributes inherited from cil::Decal
static std::shared_ptr< MaterialOpaqueImageMaterial
 
static std::shared_ptr< MaterialTransparentImageMaterial
 
static std::shared_ptr< MaterialOpaqueTextMaterial
 
static std::shared_ptr< MaterialTransparentTextMaterial
 
static std::shared_ptr< MaterialOpaqueBackgroundMaterial
 
static std::shared_ptr< MaterialTransparentBackgroundMaterial
 
static std::shared_ptr< GeometryDecalGeometry
 
static std::shared_ptr< GeometryBackgroundGeometry
 
static std::shared_ptr< SamplerDecalSampler
 
- Protected Attributes inherited from cil::Decal
std::shared_ptr< Vector3fm_position
 
Anchor m_anchor
 
std::shared_ptr< Vector2im_offset
 
std::shared_ptr< Vector2im_size
 
std::shared_ptr< Vector2im_globalOffset
 

Constructor & Destructor Documentation

◆ TextDecal() [1/2]

cil::TextDecal::TextDecal ( const std::wstring & text,
const Vector3f & position )

◆ TextDecal() [2/2]

cil::TextDecal::TextDecal ( const std::string & text,
const Vector3f & position )

◆ ~TextDecal()

virtual cil::TextDecal::~TextDecal ( )
virtual

Member Function Documentation

◆ backgroundColor()

Color3f cil::TextDecal::backgroundColor ( ) const

◆ borderColor()

Color3f cil::TextDecal::borderColor ( ) const

◆ fontColor()

Color3f cil::TextDecal::fontColor ( ) const

◆ fontFamily()

std::string cil::TextDecal::fontFamily ( ) const

◆ fontSize()

int cil::TextDecal::fontSize ( ) const

◆ generate()

void cil::TextDecal::generate ( )

◆ padding()

int cil::TextDecal::padding ( ) const

◆ setBackgroundColor()

void cil::TextDecal::setBackgroundColor ( const Color3f & color)

◆ setBorderColor()

void cil::TextDecal::setBorderColor ( const Color3f & color)

◆ setFontColor()

void cil::TextDecal::setFontColor ( const Color3f & color)

◆ setFontFamily()

void cil::TextDecal::setFontFamily ( const std::string & family)

◆ setFontSize()

void cil::TextDecal::setFontSize ( int size)

◆ setPadding()

void cil::TextDecal::setPadding ( int padding)

◆ setText() [1/2]

void cil::TextDecal::setText ( const std::string & text)

◆ setText() [2/2]

void cil::TextDecal::setText ( const std::wstring & text)

◆ text()

std::wstring cil::TextDecal::text ( ) const