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

#include <decal.h>

Inheritance diagram for cil::Decals:
cil::Node cil::Object

Public Types

enum class  Anchor {
  TopLeft , Top , TopRight , Left ,
  Center , Right , BottomLeft , Bottom ,
  BottomRight
}
 

Public Member Functions

 Decals (const int fontSize, const std::shared_ptr< Color3f > &fontColor, const std::string &fontFile)
 
virtual ~Decals ()
 
void set (const int fontSize, const std::shared_ptr< Color3f > &fontColor, const std::string &fontFile)
 
std::shared_ptr< Decaladd (const std::shared_ptr< Image2D > &image, const std::shared_ptr< Vector3f > &position, Decals::Anchor anchor=Decals::Anchor::BottomLeft, const std::shared_ptr< Vector2i > &offset=_ivec2(0, 0))
 
std::shared_ptr< Decaladd (const std::string &text, const std::shared_ptr< Vector3f > &position, const std::shared_ptr< Color3f > &backgroundColor=nullptr, const std::shared_ptr< Color3f > &borderColor=nullptr, int padding=6, Decals::Anchor anchor=Decals::Anchor::BottomLeft, const std::shared_ptr< Vector2i > &offset=_ivec2(0, 0))
 
std::shared_ptr< Decaladd (const std::wstring &text, const std::shared_ptr< Vector3f > &position, const std::shared_ptr< Color3f > &backgroundColor=nullptr, const std::shared_ptr< Color3f > &borderColor=nullptr, int padding=6, Decals::Anchor anchor=Decals::Anchor::BottomLeft, const std::shared_ptr< Vector2i > &offset=_ivec2(0, 0))
 
void remove (const std::shared_ptr< Decal > &decal)
 
void removeAll ()
 
std::shared_ptr< Decalhit (int x, int y, const std::shared_ptr< Background > &background, const std::shared_ptr< Camera > &camera, float devicePixelRatio)
 
- Public Member Functions inherited from cil::Object
 Object ()
 
virtual ~Object ()
 

Additional Inherited Members

- 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.
 

Member Enumeration Documentation

◆ Anchor

enum class cil::Decals::Anchor
strong
Enumerator
TopLeft 
Top 
TopRight 
Left 
Center 
Right 
BottomLeft 
Bottom 
BottomRight 

Constructor & Destructor Documentation

◆ Decals()

cil::Decals::Decals ( const int fontSize,
const std::shared_ptr< Color3f > & fontColor,
const std::string & fontFile )

◆ ~Decals()

virtual cil::Decals::~Decals ( )
virtual

Member Function Documentation

◆ add() [1/3]

std::shared_ptr< Decal > cil::Decals::add ( const std::shared_ptr< Image2D > & image,
const std::shared_ptr< Vector3f > & position,
Decals::Anchor anchor = Decals::Anchor::BottomLeft,
const std::shared_ptr< Vector2i > & offset = _ivec2(0, 0) )

◆ add() [2/3]

std::shared_ptr< Decal > cil::Decals::add ( const std::string & text,
const std::shared_ptr< Vector3f > & position,
const std::shared_ptr< Color3f > & backgroundColor = nullptr,
const std::shared_ptr< Color3f > & borderColor = nullptr,
int padding = 6,
Decals::Anchor anchor = Decals::Anchor::BottomLeft,
const std::shared_ptr< Vector2i > & offset = _ivec2(0, 0) )

◆ add() [3/3]

std::shared_ptr< Decal > cil::Decals::add ( const std::wstring & text,
const std::shared_ptr< Vector3f > & position,
const std::shared_ptr< Color3f > & backgroundColor = nullptr,
const std::shared_ptr< Color3f > & borderColor = nullptr,
int padding = 6,
Decals::Anchor anchor = Decals::Anchor::BottomLeft,
const std::shared_ptr< Vector2i > & offset = _ivec2(0, 0) )

◆ hit()

std::shared_ptr< Decal > cil::Decals::hit ( int x,
int y,
const std::shared_ptr< Background > & background,
const std::shared_ptr< Camera > & camera,
float devicePixelRatio )

◆ remove()

void cil::Decals::remove ( const std::shared_ptr< Decal > & decal)

◆ removeAll()

void cil::Decals::removeAll ( )

◆ set()

void cil::Decals::set ( const int fontSize,
const std::shared_ptr< Color3f > & fontColor,
const std::string & fontFile )