Tulip
4.4.0
Better Visualization Through Research
|
#include <GlSimpleEntity.h>
Inherits GlEntity.
Inherited by tlp::GlAbstractPolygon, tlp::GlBox, tlp::GlComplexPolygon, tlp::GlComposite, tlp::GlGrid, tlp::GlLabel, and tlp::GlSphere.
Public Member Functions | |
GlSimpleEntity () | |
virtual | ~GlSimpleEntity () |
virtual void | draw (float lod, Camera *camera)=0 |
virtual BoundingBox | getBoundingBox () |
int | getStencil () |
virtual void | getXML (std::string &outString)=0 |
bool | isVisible () const |
virtual void | setStencil (int stencil) |
virtual void | setVisible (bool visible) |
virtual void | setWithXML (const std::string &inString, unsigned int ¤tPosition)=0 |
Protected Attributes | |
BoundingBox | boundingBox |
std::vector< GlComposite * > | parents |
int | stencil |
bool | visible |
Base class for all Tulip OpenGL entities.
Other Tulip entities inherit for this class.
You don't have to create a GlSimpleEntity, you have to use GlLine, GlRect or GlSphere for example
To GlSimpleEntity manipulation :
Definition at line 65 of file GlSimpleEntity.h.
|
inline |
Constructor.
Definition at line 72 of file GlSimpleEntity.h.
|
virtual |
Destructor.
|
pure virtual |
Draw function.
Implemented in tlp::GlLabel, tlp::GlComplexPolygon, tlp::GlRect, tlp::Gl2DRect, tlp::GlBox, tlp::GlGrid, and tlp::GlSphere.
|
inlinevirtual |
Return the entity boundingbox.
Reimplemented in tlp::GlLabel, and tlp::Gl2DRect.
Definition at line 121 of file GlSimpleEntity.h.
|
inline |
Return stencil number of entity.
Definition at line 105 of file GlSimpleEntity.h.
|
pure virtual |
Save the entity in outString (in XML format)
Implemented in tlp::GlComplexPolygon, tlp::GlLabel, tlp::GlGraphComposite, tlp::GlBox, tlp::GlComposite, tlp::GlSphere, tlp::Gl2DRect, tlp::GlGrid, and tlp::GlCircle.
|
inline |
Return if entity is visible.
Definition at line 86 of file GlSimpleEntity.h.
|
inlinevirtual |
Set stencil number of the entity.
Stencil is an OpenGl system to ensure that other entity can't be displayed above this entity; it's a "guaranted visibility" system. A small number causes a guaranted visibility Default value in Tulip is 0xFFFF (greater integer) And when we have stencil on entity value is 0x2
Reimplemented in tlp::GlComposite.
Definition at line 97 of file GlSimpleEntity.h.
|
virtual |
Set if entity is visible.
|
pure virtual |
Load entity with inString (in XML format)
Implemented in tlp::GlComplexPolygon, tlp::GlLabel, tlp::GlGraphComposite, tlp::GlBox, tlp::GlComposite, tlp::GlSphere, tlp::Gl2DRect, and tlp::GlGrid.