ReTo  0.3.7
reto::SelectionSystem::Lasso Class Reference

Class to manage lasso selection. More...

#include <SelectionSystem.h>

+ Collaboration diagram for reto::SelectionSystem::Lasso:

Public Member Functions

 Lasso (const unsigned int &width, const unsigned int &height)
 Lasso constructor. More...
 
 ~Lasso (void)
 Lasso destructor.
 
void setColor (const Eigen::Vector4f &color)
 Method to set the selection color. More...
 
void setLineWidth (const float &width)
 Method to set the width of the border line of the selection. More...
 
void resize (const unsigned int &width, const unsigned int &height)
 Method used on resize callback to change width and height for calculating points. More...
 
void draw (void)
 Method to draw lasso.
 
void mouseDown (const Point &point)
 Method used on mouse down callback to get a point. More...
 
void mouseMove (const Point &point)
 Method used on mouse move callback to get the a point. More...
 
void mouseUp (const Point &point, float *viewProj)
 Method used on mouse up callback to get the a point, call to transform feedback and clear points. More...
 
reto::ShaderProgram *const & programLine (void) const
 Method to get program handler for line. More...
 
reto::ShaderProgram *const & programFilling (void) const
 Method to get program handler for filling. More...
 
void addObject (reto::Pickable *object)
 Method to add a pickable object. More...
 
void removeObject (reto::Pickable *object)
 Method to remove a pickable object. More...
 

Detailed Description

Class to manage lasso selection.

Definition at line 267 of file SelectionSystem.h.

Constructor & Destructor Documentation

reto::SelectionSystem::Lasso::Lasso ( const unsigned int &  width,
const unsigned int &  height 
)

Lasso constructor.

Parameters
widthscreen width
heightscreen height

Member Function Documentation

void reto::SelectionSystem::Lasso::addObject ( reto::Pickable object)

Method to add a pickable object.

Parameters
objectPickable object
void reto::SelectionSystem::Lasso::mouseDown ( const Point &  point)

Method used on mouse down callback to get a point.

Parameters
pointfirst point of the selection
void reto::SelectionSystem::Lasso::mouseMove ( const Point &  point)

Method used on mouse move callback to get the a point.

Parameters
pointnext point of the selection
void reto::SelectionSystem::Lasso::mouseUp ( const Point &  point,
float *  viewProj 
)

Method used on mouse up callback to get the a point, call to transform feedback and clear points.

Parameters
pointlast point of the selection
viewProjview projection matrix
reto::ShaderProgram* const& reto::SelectionSystem::Lasso::programFilling ( void  ) const

Method to get program handler for filling.

Returns
program handler.
reto::ShaderProgram* const& reto::SelectionSystem::Lasso::programLine ( void  ) const

Method to get program handler for line.

Returns
program handler.
void reto::SelectionSystem::Lasso::removeObject ( reto::Pickable object)

Method to remove a pickable object.

Parameters
objectPickable object
void reto::SelectionSystem::Lasso::resize ( const unsigned int &  width,
const unsigned int &  height 
)

Method used on resize callback to change width and height for calculating points.

Parameters
widthscreen width
heightscreen height
void reto::SelectionSystem::Lasso::setColor ( const Eigen::Vector4f &  color)

Method to set the selection color.

Parameters
colorselection color
void reto::SelectionSystem::Lasso::setLineWidth ( const float &  width)

Method to set the width of the border line of the selection.

Parameters
widthline size

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