ReTo
0.3.7
|
Class to manage clipping planes. More...
#include <ClippingSystem.h>
Public Member Functions | |
ClippingSystem (void) | |
ClippingSystem constructor. | |
ClippingSystem (const std::string &vertexCode) | |
ClippingSystem constructor passing vertex shader code. | |
~ClippingSystem (void) | |
ClippingSystem destructor. | |
reto::ClippingPlane * | get (const std::string &alias) const |
Method to get a clipping plane from ClippingSystem. More... | |
void | set (const std::string &alias, reto::ClippingPlane *plane) |
Method to set a new clipping plane to ClippingSystem. More... | |
void | remove (const std::string &alias) |
Method to remove a clipping plane from ClippingSystem. More... | |
void | activatePlanes (void) const |
Method to activate clipping planes. | |
void | deactivatePlanes (void) const |
Method to deactivate clipping planes. | |
void | draw (void) const |
Method to draw objects using clipping system. | |
void | addObject (reto::Pickable *object) |
Method to add a pickable object. More... | |
void | removeObject (reto::Pickable *object) |
Method to remove a pickable object. More... | |
reto::ShaderProgram *const & | program (void) const |
Method to get program handler. More... | |
void | clear (void) |
Method to clear clipping planes. | |
Class to manage clipping planes.
Definition at line 187 of file ClippingSystem.h.
void reto::ClippingSystem::addObject | ( | reto::Pickable * | object | ) |
Method to add a pickable object.
object | Pickable object |
reto::ClippingPlane* reto::ClippingSystem::get | ( | const std::string & | alias | ) | const |
Method to get a clipping plane from ClippingSystem.
alias | ClippingPlane alias |
reto::ShaderProgram* const& reto::ClippingSystem::program | ( | void | ) | const |
Method to get program handler.
void reto::ClippingSystem::remove | ( | const std::string & | alias | ) |
Method to remove a clipping plane from ClippingSystem.
alias | ClippingPlane alias |
void reto::ClippingSystem::removeObject | ( | reto::Pickable * | object | ) |
Method to remove a pickable object.
object | Pickable object |
void reto::ClippingSystem::set | ( | const std::string & | alias, |
reto::ClippingPlane * | plane | ||
) |
Method to set a new clipping plane to ClippingSystem.
alias | ClippingPlane alias |
tex | ClippingPlane pointer |