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) | |
virtual void | calculateOBB (wVector &dimension, wVector &minPoint, wVector &maxPoint) |
Returns the dimension of the Oriented Bounding Box (OBB) in the object local frame. | |
RenderWObjectContainer * | container () |
return the Container on which this object is, or the OpenGL windows where it is displayed | |
WObject * | object () |
return the WObject that this RenderWObject display on OpenGL | |
virtual void | objectAlreadyDestroyed () |
This function is called before the destruction if the WObject we are supposed to draw has already been destroyed. | |
virtual void | render (QGLContext *gw)=0 |
virtual void | renderAABB (RenderWorld *gw) |
The function rendering the Axis-Aligned Bounding Box (AABB) | |
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, RenderWCamera, RenderCompoundObject, RenderPhyCone, RenderPhyCylinder, RenderPhySphere, RenderPhyBox, RenderWMesh, and RenderGenericObject.
Definition at line 75 of file renderworld.h.
|
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, RenderWCamera, RenderCompoundObject, RenderPhyCone, RenderPhyCylinder, RenderPhySphere, RenderPhyBox, RenderWMesh, and RenderGenericObject.
Definition at line 89 of file renderworld.h.
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().
|
inline |
return the WObject that this RenderWObject display on OpenGL
Definition at line 96 of file renderworld.h.
Referenced by RenderWorld::draw(), RenderCamera::paintGL(), 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, RenderWCamera, RenderCompoundObject, RenderPhyCone, RenderPhyCylinder, RenderPhySphere, RenderPhyBox, RenderWMesh, and RenderGenericObject.
Definition at line 63 of file renderworld.h.
Referenced by RenderWorld::draw().
The documentation for this class was generated from the following file:
- worldsim/include/renderworld.h