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

#include <legend.h>

Inheritance diagram for cil::Legend:
cil::Pass cil::Object

Public Member Functions

 Legend (const std::shared_ptr< Renderer > &renderer, const std::shared_ptr< Vector2i > &backgroundSize, const std::shared_ptr< Vector2i > &windowSize, const std::string &fontFile)
 
virtual ~Legend ()
 
std::shared_ptr< LegendNodeadd (const std::string &title, const std::shared_ptr< Image2D > &image)
 
void remove (const std::shared_ptr< LegendNode > &node)
 
void clear ()
 
void resize ()
 
std::shared_ptr< LegendNodehit (int x, int y)
 
- 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 ()
 

Additional Inherited Members

- Public Types inherited from cil::Pass
enum class  UpdateMode {
  None = 0 , Asset = 1 , Batch = 2 , Trans = 4 ,
  All = Asset | Batch | Trans
}
 
- 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.
 
std::shared_ptr< Backgroundbackground
 This member holds a shared pointer to a Background object which defines the scene background.
 
std::shared_ptr< Cameracamera
 This member holds a shared pointer to a Camera object which the current pass uses for rendering.
 
std::shared_ptr< Nodenode
 This member holds a shared pointer to a Node object which represents the rendering objects of the current pass.
 
std::shared_ptr< Targettarget
 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
 

Constructor & Destructor Documentation

◆ Legend()

cil::Legend::Legend ( const std::shared_ptr< Renderer > & renderer,
const std::shared_ptr< Vector2i > & backgroundSize,
const std::shared_ptr< Vector2i > & windowSize,
const std::string & fontFile )

◆ ~Legend()

virtual cil::Legend::~Legend ( )
virtual

Member Function Documentation

◆ add()

std::shared_ptr< LegendNode > cil::Legend::add ( const std::string & title,
const std::shared_ptr< Image2D > & image )

◆ clear()

void cil::Legend::clear ( )

◆ hit()

std::shared_ptr< LegendNode > cil::Legend::hit ( int x,
int y )

◆ remove()

void cil::Legend::remove ( const std::shared_ptr< LegendNode > & node)

◆ resize()

void cil::Legend::resize ( )