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

#include <decal.h>

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

Public Types

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

Public Member Functions

 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 ()
 

Static Public Attributes

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

std::shared_ptr< Vector3fm_position
 
Anchor m_anchor
 
std::shared_ptr< Vector2im_offset
 
std::shared_ptr< Vector2im_size
 
std::shared_ptr< Vector2im_globalOffset
 

Friends

class Decals
 

Additional Inherited Members

- Public Attributes inherited from cil::Node
std::string name
 This memeber stores the name of the node.
 
MeshPtr mesh
 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< NodePtr > > 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.
 
Matrix4fPtr transform
 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.
 
BoundingBoxPtr boundingBox
 This member is a shared pointer to a BoundingBox.
 
MaterialPtr material
 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).
 
GeometryPtr geometry
 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.
 
QueryPtr query
 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::Decal::Anchor
strong
Enumerator
TopLeft 
Top 
TopRight 
Left 
Center 
Right 
BottomLeft 
Bottom 
BottomRight 

Constructor & Destructor Documentation

◆ Decal()

cil::Decal::Decal ( const Vector3f & position)

◆ ~Decal()

virtual cil::Decal::~Decal ( )
virtual

Member Function Documentation

◆ anchor()

Anchor cil::Decal::anchor ( ) const

◆ offset()

Vector2i cil::Decal::offset ( ) const

◆ position()

Vector3f cil::Decal::position ( ) const

◆ setAnchor()

void cil::Decal::setAnchor ( Anchor anchor)

◆ setOffset()

void cil::Decal::setOffset ( const Vector2i & offset)

◆ setPosition()

void cil::Decal::setPosition ( const Vector3f & position)

Friends And Related Symbol Documentation

◆ Decals

friend class Decals
friend

Member Data Documentation

◆ BackgroundGeometry

std::shared_ptr<Geometry> cil::Decal::BackgroundGeometry
static

◆ DecalGeometry

std::shared_ptr<Geometry> cil::Decal::DecalGeometry
static

◆ DecalSampler

std::shared_ptr<Sampler> cil::Decal::DecalSampler
static

◆ m_anchor

Anchor cil::Decal::m_anchor
protected

◆ m_globalOffset

std::shared_ptr<Vector2i> cil::Decal::m_globalOffset
protected

◆ m_offset

std::shared_ptr<Vector2i> cil::Decal::m_offset
protected

◆ m_position

std::shared_ptr<Vector3f> cil::Decal::m_position
protected

◆ m_size

std::shared_ptr<Vector2i> cil::Decal::m_size
protected

◆ OpaqueBackgroundMaterial

std::shared_ptr<Material> cil::Decal::OpaqueBackgroundMaterial
static

◆ OpaqueImageMaterial

std::shared_ptr<Material> cil::Decal::OpaqueImageMaterial
static

◆ OpaqueTextMaterial

std::shared_ptr<Material> cil::Decal::OpaqueTextMaterial
static

◆ TransparentBackgroundMaterial

std::shared_ptr<Material> cil::Decal::TransparentBackgroundMaterial
static

◆ TransparentImageMaterial

std::shared_ptr<Material> cil::Decal::TransparentImageMaterial
static

◆ TransparentTextMaterial

std::shared_ptr<Material> cil::Decal::TransparentTextMaterial
static