ReTo  0.3.7
reto::ClippingSystem Class Reference

Class to manage clipping planes. More...

#include <ClippingSystem.h>

+ Collaboration diagram for reto::ClippingSystem:

Public Member Functions

 ClippingSystem (void)
 ClippingSystem constructor.
 
 ClippingSystem (const std::string &vertexCode)
 ClippingSystem constructor passing vertex shader code.
 
 ~ClippingSystem (void)
 ClippingSystem destructor.
 
reto::ClippingPlaneget (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.
 

Detailed Description

Class to manage clipping planes.

Definition at line 187 of file ClippingSystem.h.

Member Function Documentation

void reto::ClippingSystem::addObject ( reto::Pickable object)

Method to add a pickable object.

Parameters
objectPickable object
reto::ClippingPlane* reto::ClippingSystem::get ( const std::string &  alias) const

Method to get a clipping plane from ClippingSystem.

Parameters
aliasClippingPlane alias
Returns
ClippingPlane pointer
reto::ShaderProgram* const& reto::ClippingSystem::program ( void  ) const

Method to get program handler.

Returns
program handler.
void reto::ClippingSystem::remove ( const std::string &  alias)

Method to remove a clipping plane from ClippingSystem.

Parameters
aliasClippingPlane alias
void reto::ClippingSystem::removeObject ( reto::Pickable object)

Method to remove a pickable object.

Parameters
objectPickable object
void reto::ClippingSystem::set ( const std::string &  alias,
reto::ClippingPlane plane 
)

Method to set a new clipping plane to ClippingSystem.

Parameters
aliasClippingPlane alias
texClippingPlane pointer

The documentation for this class was generated from the following file: