Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Attributes
jafar::premodeler::Shaper Class Reference

Class Shaper This class is in charge of geometrical shaping of points cloud. More...


Detailed Description

Class Shaper This class is in charge of geometrical shaping of points cloud.

Definition at line 20 of file shaper.hpp.

#include <shaper.hpp>

List of all members.

Public Member Functions

 Shaper ()
 Default constructor.
 Shaper (const std::list< geom::Point3D > &_pointsList)
 Constructor with parameters IN: _points map of 3D points and their respective ids.
void setPoints (const std::list< geom::Point3D > &_pointsList)
 setter for points IN: _points list of 3D points
void setPoints (const std::map< int, geom::Point3D > &_pointsMap)
 setter for points IN: _points map of 3D points and their respective ids
void computeBoundingBox ()
 computes bounding box around the points cloud
void computeInertiaMatrix ()
 computes inertia matrix of the points cloud
void computeBarycenter ()
 computes barycenter of the points cloud
void computeReference ()
 computes reference attached to the points cloud
geom::BoundingBox3D boundingBox ()
 [computes then] returns the bounding box
jblas::mat33 inertiaMatrix ()
 [computes then] returns the inertia matrix
jblas::vec3 barycenter ()
 [computes then] returns the barycenter
geom::Repere< 3 > * reference ()
 [computes then] returns the 3D reference
std::list< geom::Point3DpointsList ()
 returns points

Static Public Member Functions

static void fillPointsList (std::map< int, geom::Point3D > _pointsMap, std::list< geom::Point3D > &_pointsList)
 fills a Point3D list with a Point3D map entries map's keys become points ids

Private Attributes

std::list< geom::Point3Dpoints
geom::BoundingBox3D m_box
jblas::mat33 m_inertia
jblas::vec3 m_barycenter
jblas::vec3 xAxis
jblas::vec3 yAxis
jblas::vec3 zAxis
geom::Repere< 3 > * m_local
const geom::Repere< 3 > * m_global
double m_size
bool isInertiaMatrixComputed
bool isBarycenterComputed
bool isBoundingBoxComputed
bool isReferenceComputed

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1
LAAS-CNRS