RenderWObject class. More...
Public Member Functions | |
RenderWObject (WObject *o, RenderWObjectContainer *container) | |
virtual void | calculateAABB (wVector &minPoint, wVector &maxPoint, const wMatrix tm) |
Returns the min and max points of the Axis-Aligned Bounding Box (AABB) More... | |
virtual void | calculateOBB (wVector &dimension, wVector &minPoint, wVector &maxPoint) |
Returns the dimension of the Oriented Bounding Box (OBB) in the object local frame. More... | |
RenderWObjectContainer * | container () |
return the Container on which this object is, or the OpenGL windows where it is displayed More... | |
void | drawLabel () |
Draws the label of the object if it has to. More... | |
WObject * | object () |
return the WObject that this RenderWObject display on OpenGL More... | |
virtual void | objectAlreadyDestroyed () |
This function is called before the destruction if the WObject we are supposed to draw has already been destroyed. More... | |
virtual void | render (QGLContext *gw)=0 |
virtual void | renderAABB (RenderWorld *gw) |
The function rendering the Axis-Aligned Bounding Box (AABB) More... | |
Protected Attributes | |
RenderWObjectContainer * | contain |
WObject * | obj |
Detailed Description
RenderWObject class.
\
- Motivation
- Abstract class that define the common interface of all delegate objects responsable for representing entities contained into a World in a 3D OpenGL viewport
- Description
- Description
- Warnings
- Warnings
Definition at line 52 of file renderworld.h.
Member Function Documentation
|
inlinevirtual |
Returns the min and max points of the Axis-Aligned Bounding Box (AABB)
- Parameters
-
minPoint the minimum point of the AABB maxPoint the maximum point of the AABB tm the transformation matrix with respect to which the minPoint and maxPoint of AABB have to be calculated
Reimplemented in GraphicalWObjectRenderer, RenderCompoundObject, RenderPhyCone, RenderPhyCylinder, RenderPhyEllipsoid, RenderPhySphere, RenderPhyBox, RenderWMesh, and RenderGenericObject.
Definition at line 75 of file renderworld.h.
References UNUSED_PARAM.
|
inlinevirtual |
Returns the dimension of the Oriented Bounding Box (OBB) in the object local frame.
- Parameters
-
dimension the dimension of the OBB minPoint the minimum point of the OBB maxPoint the maximum point of the OBB
Reimplemented in GraphicalWObjectRenderer, RenderCompoundObject, RenderPhyCone, RenderPhyCylinder, RenderPhyEllipsoid, RenderPhySphere, RenderPhyBox, RenderWMesh, and RenderGenericObject.
Definition at line 89 of file renderworld.h.
References UNUSED_PARAM.
Referenced by RenderWorld::draw().
|
inline |
return the Container on which this object is, or the OpenGL windows where it is displayed
Definition at line 100 of file renderworld.h.
Referenced by CircularGraphicalMarker::render(), PlanarArrowGraphicalMarker::render(), and SingleIRGraphic::render().
void drawLabel | ( | ) |
Draws the label of the object if it has to.
This only draws the label if obj->labelShown() returns true. This method changes the current OpenGL color
Definition at line 58 of file renderworld.cpp.
|
inline |
return the WObject that this RenderWObject display on OpenGL
Definition at line 96 of file renderworld.h.
Referenced by RenderWorld::draw(), and RenderWObjectContainer::setupColorTexture().
|
inlinevirtual |
This function is called before the destruction if the WObject we are supposed to draw has already been destroyed.
An object of this type can be destroyed either because the Container is destroyed (e.g. the RenderWorld widget is closed) or because the WObject we are supposed to draw is destroyed. In the latter case this function is called before our destructor. As the WObject is detroyed before we are, our destructor should not act in any way on it. The default implementation of this function does nothing, reimplement when needed
Definition at line 113 of file renderworld.h.
Referenced by RenderWObjectContainer::removeObject().
|
inlinevirtual |
The function rendering the Axis-Aligned Bounding Box (AABB)
Reimplemented in GraphicalWObjectRenderer, RenderCompoundObject, RenderPhyCone, RenderPhyCylinder, RenderPhyEllipsoid, RenderPhySphere, RenderPhyBox, RenderWMesh, and RenderGenericObject.
Definition at line 63 of file renderworld.h.
References UNUSED_PARAM.
Referenced by RenderWorld::draw().
The documentation for this class was generated from the following files:
- worldsim/include/renderworld.h
- worldsim/src/renderworld.cpp