tlp::GlConvexHull Class Reference
#include <GlConvexHull.h>
List of all members.
Detailed Description
Class used to represent ConvexHull.
Class used to represent ConvexHull. GlHierarchyConvexHull class use this to create all convexHull of the graph
Public Member Functions
- GlConvexHull (const std::vector< Coord > &points, const std::vector< Color > &fillColors, const std::vector< Color > &outlineColors, const bool filled, const bool outlined, const std::string &name, bool computeHull=true)
- virtual ~GlConvexHull ()
- std::string getName ()
- virtual void draw (float lod, Camera *camera)
- virtual void translate (const Coord &mouvement)
- void getXML (xmlNodePtr rootNode)
- void setWithXML (xmlNodePtr rootNode)
Static Public Member Functions
- static std::vector
< GlConvexHull * > buildConvexHullsFromHierarchy (Graph *graph, std::vector< Color > fColors, std::vector< Color > oColors, bool deduceFromChilds=true, Graph *root=0, unsigned int depth=0)
Protected Attributes
Constructor & Destructor Documentation
| tlp::GlConvexHull::GlConvexHull |
( |
const std::vector< Coord > & |
points, |
|
|
const std::vector< Color > & |
fillColors, |
|
|
const std::vector< Color > & |
outlineColors, |
|
|
const bool |
filled, |
|
|
const bool |
outlined, |
|
|
const std::string & |
name, |
|
|
bool |
computeHull = true | |
|
) |
| | |
Build a Polygon with the convex hull of points
| virtual tlp::GlConvexHull::~GlConvexHull |
( |
|
) |
[inline, virtual] |
Member Function Documentation
| std::string tlp::GlConvexHull::getName |
( |
|
) |
[inline] |
Retrun the name of this convex hull
| virtual void tlp::GlConvexHull::draw |
( |
float |
lod, |
|
|
Camera * |
camera | |
|
) |
| | [virtual] |
| static std::vector<GlConvexHull *> tlp::GlConvexHull::buildConvexHullsFromHierarchy |
( |
Graph * |
graph, |
|
|
std::vector< Color > |
fColors, |
|
|
std::vector< Color > |
oColors, |
|
|
bool |
deduceFromChilds = true, |
|
|
Graph * |
root = 0, |
|
|
unsigned int |
depth = 0 | |
|
) |
| | [static] |
Static function who build a hierarchy of convexHull with the given graph
| virtual void tlp::GlConvexHull::translate |
( |
const Coord & |
mouvement |
) |
[virtual] |
| void tlp::GlConvexHull::getXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
| void tlp::GlConvexHull::setWithXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
Member Data Documentation