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::Scale Class Reference

#include <scale.h>

Inheritance diagram for cil::Scale:
cil::Pass cil::Object

Public Member Functions

 Scale (const std::shared_ptr< Camera > &camera, const std::shared_ptr< Background > &background)
 
virtual ~Scale ()
 
int fontSize () const
 
void setFontSize (int size)
 
std::string fontFamily () const
 
void setFontFamily (const std::string &family)
 
Color3f lineColor () const
 
void setLineColor (const Color3f &color)
 
Color3f textColor () const
 
void setTextColor (const Color3f &color)
 
void generate ()
 
- Public Member Functions inherited from cil::Pass
 Pass ()
 
void update (UpdateMode mode=UpdateMode::All)
 
void updateAsset ()
 
void updateBatch ()
 
void updateTrans ()
 
- Public Member Functions inherited from cil::Object
 Object ()
 
virtual ~Object ()
 

Public Attributes

std::function< std::string(float)> toString
 
- Public Attributes inherited from cil::Pass
std::string name
 This memeber stores the name of the pass.
 
bool enabled
 This member indicates whether the pass is currently enabled. Disabled passes are skipped during rendering.
 
BackgroundPtr background
 This member holds a shared pointer to a Background object which defines the scene background.
 
CameraPtr camera
 This member holds a shared pointer to a Camera object which the current pass uses for rendering.
 
NodePtr node
 This member holds a shared pointer to a Node object which represents the rendering objects of the current pass.
 
TargetPtr target
 This member holds a shared pointer to a Target object which stores the rendering results, such as a buffer or texture.
 
int assetVersion
 
int batchVersion
 
int transVersion
 

Additional Inherited Members

- Public Types inherited from cil::Pass
enum class  UpdateMode {
  None = 0 , Asset = 1 , Batch = 2 , Trans = 4 ,
  All = Asset | Batch | Trans
}
 

Constructor & Destructor Documentation

◆ Scale()

cil::Scale::Scale ( const std::shared_ptr< Camera > & camera,
const std::shared_ptr< Background > & background )

◆ ~Scale()

virtual cil::Scale::~Scale ( )
virtual

Member Function Documentation

◆ fontFamily()

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

◆ fontSize()

int cil::Scale::fontSize ( ) const

◆ generate()

void cil::Scale::generate ( )

◆ lineColor()

Color3f cil::Scale::lineColor ( ) const

◆ setFontFamily()

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

◆ setFontSize()

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

◆ setLineColor()

void cil::Scale::setLineColor ( const Color3f & color)

◆ setTextColor()

void cil::Scale::setTextColor ( const Color3f & color)

◆ textColor()

Color3f cil::Scale::textColor ( ) const

Member Data Documentation

◆ toString

std::function<std::string(float)> cil::Scale::toString