Tulip
5.3.0
Large graphs analysis and drawing
|
#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) | |
void | draw (float lod, Camera *camera) override |
const Color & | getColor () const |
const Coord & | getPosition () const |
void | getXML (std::string &outString) override |
void | setColor (const Color &newColor) |
void | setPosition (const Coord &pos) |
virtual void | setTexture (const std::string &texture) |
void | setWithXML (const std::string &inString, unsigned int ¤tPosition) override |
void | translate (const Coord &mouvement) override |
Public Member Functions inherited from tlp::GlSimpleEntity | |
GlSimpleEntity () | |
~GlSimpleEntity () override | |
virtual BoundingBox | getBoundingBox () |
int | getStencil () |
bool | isVisible () const |
virtual void | setStencil (int stencil) |
virtual void | setVisible (bool visible) |
Additional Inherited Members | |
Protected Attributes inherited from tlp::GlSimpleEntity | |
BoundingBox | boundingBox |
std::vector< GlComposite * > | parents |
int | stencil |
bool | visible |
Class to create a sphere with GlEntity system.
Definition at line 36 of file GlSphere.h.
|
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)
|
overridevirtual |
Draw the sphere.
Implements tlp::GlSimpleEntity.
|
inline |
Get the color.
Definition at line 96 of file GlSphere.h.
|
inline |
Get absolute position.
Definition at line 75 of file GlSphere.h.
|
overridevirtual |
Function to export data in outString (in XML format)
Implements tlp::GlSimpleEntity.
|
inline |
Set the color.
Definition at line 103 of file GlSphere.h.
|
inline |
Set absolute position.
Definition at line 82 of file GlSphere.h.
|
inlinevirtual |
Set the texture name.
Definition at line 89 of file GlSphere.h.
|
overridevirtual |
Function to set data with inString (in XML format)
Implements tlp::GlSimpleEntity.
|
override |
Translate entity.