RenderWObject Class Referenceabstract

RenderWObject class. More...

Inheritance diagram for RenderWObject:

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.
 
RenderWObjectContainercontainer ()
 return the Container on which this object is, or the OpenGL windows where it is displayed
 
WObjectobject ()
 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

RenderWObjectContainercontain
 
WObjectobj
 

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

virtual void calculateAABB ( wVector minPoint,
wVector maxPoint,
const wMatrix  tm 
)
inlinevirtual

Returns the min and max points of the Axis-Aligned Bounding Box (AABB)

Parameters
minPointthe minimum point of the AABB
maxPointthe maximum point of the AABB
tmthe 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.

virtual void calculateOBB ( wVector dimension,
wVector minPoint,
wVector maxPoint 
)
inlinevirtual

Returns the dimension of the Oriented Bounding Box (OBB) in the object local frame.

Parameters
dimensionthe dimension of the OBB
minPointthe minimum point of the OBB
maxPointthe 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().

RenderWObjectContainer* container ( )
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().

WObject* object ( )
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().

virtual void objectAlreadyDestroyed ( )
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().

virtual void renderAABB ( RenderWorld gw)
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: