renderworld.h
217 static void drawCylinder( wVector axis, wVector centre, float len, float radius, QColor c = Qt::green );
225 static void drawArrow( const wVector& direction, const wVector& start, float radius, float tipRadius, float tipLength, QColor c = Qt::green );
233 static void drawTorus( real outRad, real innRad, const wMatrix& mat, real angle = 2.0*PI_GRECO, QColor c=Qt::red );
235 static void drawTorus( wVector axis, wVector centre, real outRad, real innRad, real angle = 2.0*PI_GRECO );
316 void drawArrow( const wVector& from, const wVector& to, float radius=-1, int nbSubdivisions=12, QColor c = Qt::red );
WObject * object()
return the WObject that this RenderWObject display on OpenGL
Definition: renderworld.h:96
QImage textureImage(QString texture)
Return the corresponding QImage for the texture name passed.
Definition: renderworld.h:182
bool viewerStateRestoredFromFile() const
Returns true if viewer state has been restored from file.
Definition: renderworld.h:318
#define UNUSED_PARAM(a)
FARSA_UTIL_TEMPLATE const T max(const T &t1, const U &t2)
virtual void objectAlreadyDestroyed()
This function is called before the destruction if the WObject we are supposed to draw has already bee...
Definition: renderworld.h:113
virtual void calculateAABB(wVector &minPoint, wVector &maxPoint, const wMatrix tm)
Returns the min and max points of the Axis-Aligned Bounding Box (AABB)
Definition: renderworld.h:75
virtual void renderAABB(RenderWorld *gw)
The function rendering the Axis-Aligned Bounding Box (AABB)
Definition: renderworld.h:63
Template facility to create WAbstractCreator specialization.
Definition: renderworld.h:148
static void registerRenderWObjectFor(QString classname)
template method for register new RenderWObject classes for new WObject
Definition: renderworld.h:204
float real
const QVector< RenderWObject * > graphics()
return all RenderWObject presents
Definition: renderworld.h:175
RenderWObjectContainer * container()
return the Container on which this object is, or the OpenGL windows where it is displayed ...
Definition: renderworld.h:100
FARSA_UTIL_TEMPLATE const T min(const T &t1, const U &t2)
virtual void calculateOBB(wVector &dimension, wVector &minPoint, wVector &maxPoint)
Returns the dimension of the Oriented Bounding Box (OBB) in the object local frame.
Definition: renderworld.h:89