graphicalwobject.cpp
43 void GraphicalWObject::attachToObject(WObject* object, bool makeOwner, const wMatrix& displacement)
74 void GraphicalWObject::updateAndCalculateAABB(wVector& minPoint, wVector& maxPoint, const wMatrix tm)
81 void GraphicalWObject::updateAndCalculateOBB(wVector& dimension, wVector& minPoint, wVector& maxPoint)
void updateAndRender(RenderWObject *renderer, QGLContext *gw)
Performs the actual drawing.
Definition: graphicalwobject.cpp:60
void attachToObject(WObject *object, bool makeOwner=false, const wMatrix &displacement=wMatrix::identity())
Attaches this object to another WObject.
Definition: graphicalwobject.cpp:43
virtual void renderAABB(RenderWObject *renderer, RenderWorld *gw)
The function rendering the Axis-Aligned Bounding Box (AABB)
Definition: graphicalwobject.cpp:88
const wMatrix & matrix() const
return a reference to the transformation matrix
Definition: wobject.cpp:47
void updateMatrixFromAttachedObject()
Updates the transformation matrix from the object to which we are attached (if there is one) ...
Definition: graphicalwobject.cpp:108
void setOwner(Ownable *owner, bool destroy=true)
Sets the owner of this object.
Definition: ownable.cpp:47
void updateAndCalculateOBB(wVector &dimension, wVector &minPoint, wVector &maxPoint)
Returns the dimension of the Oriented Bounding Box (OBB) in the object local frame.
Definition: graphicalwobject.cpp:81
virtual void render(RenderWObject *renderer, QGLContext *gw)=0
Performs the actual drawing.
void updateAndRenderAABB(RenderWObject *renderer, RenderWorld *gw)
The function rendering the Axis-Aligned Bounding Box (AABB)
Definition: graphicalwobject.cpp:67
void setDisplacement(const wMatrix &displacement)
Sets the displacement matrix relative to the object to which we are attached.
Definition: graphicalwobject.cpp:55
virtual void calculateOBB(wVector &dimension, wVector &minPoint, wVector &maxPoint)
Returns the dimension of the Oriented Bounding Box (OBB) in the object local frame If there is no mea...
Definition: graphicalwobject.cpp:100
virtual void calculateAABB(wVector &minPoint, wVector &maxPoint, const wMatrix tm)
Returns the min and max points of the Axis-Aligned Bounding Box (AABB)
Definition: graphicalwobject.cpp:93
void updateAndCalculateAABB(wVector &minPoint, wVector &maxPoint, const wMatrix tm)
Returns the min and max points of the Axis-Aligned Bounding Box (AABB)
Definition: graphicalwobject.cpp:74
GraphicalWObject(World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity())
Constructor.
Definition: graphicalwobject.cpp:28