#include <legend.h>
Public Member Functions | |
| LegendPass (const std::shared_ptr< Vector2i > &backgroundSize) | |
| virtual | ~LegendPass () |
| int | width () const |
| void | setWidth (int width) |
| int | height () const |
| void | setHeight (int height) |
| int | spacing () const |
| void | setSpacing (int spacing) |
| int | barWidth () const |
| void | setBarWidth (int width) |
| int | titleFontSize () const |
| void | setTitleFontSize (int size) |
| std::string | titleFontFamily () |
| void | setTitleFontFamily (const std::string &family) |
| Color3f | titleFontColor () const |
| void | setTitleFontColor (const Color3f &color) |
| int | labelFontSize () const |
| void | setLabelFontSize (int size) |
| std::string | labelFontFamily () |
| void | setLabelFontFamily (const std::string &family) |
| Color3f | labelFontColor () const |
| void | setLabelFontColor (const Color3f &color) |
| std::shared_ptr< Legend > | add (const std::string &title, const std::shared_ptr< Image2D > &image) |
| void | remove (const std::shared_ptr< Legend > &legend) |
| void | clear () |
| std::shared_ptr< Legend > | hit (const Vector2i &coord, float devicePixelRatio) |
| void | generate () |
| void | resize () |
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< Background > | background |
| This member holds a shared pointer to a Background object which defines the scene background. | |
| std::shared_ptr< Camera > | camera |
| This member holds a shared pointer to a Camera object which the current pass uses for rendering. | |
| std::shared_ptr< Node > | node |
| This member holds a shared pointer to a Node object which represents the rendering objects of the current pass. | |
| std::shared_ptr< Target > | 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 |
| cil::LegendPass::LegendPass | ( | const std::shared_ptr< Vector2i > & | backgroundSize | ) |
|
virtual |
| std::shared_ptr< Legend > cil::LegendPass::add | ( | const std::string & | title, |
| const std::shared_ptr< Image2D > & | image ) |
| int cil::LegendPass::barWidth | ( | ) | const |
| void cil::LegendPass::clear | ( | ) |
| void cil::LegendPass::generate | ( | ) |
| int cil::LegendPass::height | ( | ) | const |
| Color3f cil::LegendPass::labelFontColor | ( | ) | const |
| std::string cil::LegendPass::labelFontFamily | ( | ) |
| int cil::LegendPass::labelFontSize | ( | ) | const |
| void cil::LegendPass::remove | ( | const std::shared_ptr< Legend > & | legend | ) |
| void cil::LegendPass::resize | ( | ) |
| void cil::LegendPass::setBarWidth | ( | int | width | ) |
| void cil::LegendPass::setHeight | ( | int | height | ) |
| void cil::LegendPass::setLabelFontColor | ( | const Color3f & | color | ) |
| void cil::LegendPass::setLabelFontFamily | ( | const std::string & | family | ) |
| void cil::LegendPass::setLabelFontSize | ( | int | size | ) |
| void cil::LegendPass::setSpacing | ( | int | spacing | ) |
| void cil::LegendPass::setTitleFontColor | ( | const Color3f & | color | ) |
| void cil::LegendPass::setTitleFontFamily | ( | const std::string & | family | ) |
| void cil::LegendPass::setTitleFontSize | ( | int | size | ) |
| void cil::LegendPass::setWidth | ( | int | width | ) |
| int cil::LegendPass::spacing | ( | ) | const |
| Color3f cil::LegendPass::titleFontColor | ( | ) | const |
| std::string cil::LegendPass::titleFontFamily | ( | ) |
| int cil::LegendPass::titleFontSize | ( | ) | const |
| int cil::LegendPass::width | ( | ) | const |