#include <GlSphere.h>
Public Member Functions |
| | GlSphere () |
| | GlSphere (const Coord &position, float radius, const Color &color=Color(0, 0, 0, 255), float rotX=0, float rotY=0, float rotZ=0) |
| | GlSphere (const Coord &position, float radius, const std::string &textureFile, int alpha=255, float rotX=0, float rotY=0, float rotZ=0) |
| virtual void | draw (float lod, Camera *camera) |
| virtual void | translate (const Coord &mouvement) |
| const Coord & | getPosition () const |
| void | setPosition (const Coord &pos) |
| virtual void | setTexture (const std::string &texture) |
| const Color & | getColor () const |
| void | setColor (const Color &newColor) |
| virtual void | getXML (xmlNodePtr rootNode) |
| virtual void | setWithXML (xmlNodePtr rootNode) |
| | GlSimpleEntity () |
| virtual | ~GlSimpleEntity () |
| virtual void | acceptVisitor (GlSceneVisitor *visitor) |
| virtual void | setVisible (bool visible) |
| bool | isVisible () |
| virtual void | setStencil (int stencil) |
| int | getStencil () |
| void | setCheckByBoundingBoxVisitor (bool check) |
| bool | isCheckByBoundingBoxVisitor () |
| virtual BoundingBox | getBoundingBox () |
| virtual void | addLayerParent (GlLayer *) |
| virtual void | removeLayerParent (GlLayer *) |
| void | addParent (GlComposite *composite) |
| void | removeParent (GlComposite *composite) |
| virtual | ~GlEntity () |
Detailed Description
Class to create a sphere with GlEntity system
Constructor & Destructor Documentation
| tlp::GlSphere::GlSphere |
( |
| ) |
|
|
inline |
| tlp::GlSphere::GlSphere |
( |
const Coord & |
position, |
|
|
float |
radius, |
|
|
const Color & |
color = Color(0, 0, 0, 255), |
|
|
float |
rotX = 0, |
|
|
float |
rotY = 0, |
|
|
float |
rotZ = 0 |
|
) |
| |
Create a sphere with a position, a radius a fill color and multiple rotation (if you want)
| tlp::GlSphere::GlSphere |
( |
const Coord & |
position, |
|
|
float |
radius, |
|
|
const std::string & |
textureFile, |
|
|
int |
alpha = 255, |
|
|
float |
rotX = 0, |
|
|
float |
rotY = 0, |
|
|
float |
rotZ = 0 |
|
) |
| |
Create a sphere with a position, a radius, a texture, an alphe and multiple rotation (if you want)
Member Function Documentation
| virtual void tlp::GlSphere::draw |
( |
float |
lod, |
|
|
Camera * |
camera |
|
) |
| |
|
virtual |
| const Color& tlp::GlSphere::getColor |
( |
| ) |
const |
|
inline |
| const Coord& tlp::GlSphere::getPosition |
( |
| ) |
const |
|
inline |
| virtual void tlp::GlSphere::getXML |
( |
xmlNodePtr |
rootNode | ) |
|
|
virtual |
| void tlp::GlSphere::setColor |
( |
const Color & |
newColor | ) |
|
|
inline |
| void tlp::GlSphere::setPosition |
( |
const Coord & |
pos | ) |
|
|
inline |
| virtual void tlp::GlSphere::setTexture |
( |
const std::string & |
texture | ) |
|
|
inlinevirtual |
| virtual void tlp::GlSphere::setWithXML |
( |
xmlNodePtr |
rootNode | ) |
|
|
virtual |
| virtual void tlp::GlSphere::translate |
( |
const Coord & |
mouvement | ) |
|
|
virtual |
|