wobject.cpp
virtual void changedMatrix()
virtual function called when the transformation matrix change
Definition: wobject.cpp:178
wVector labelpos
The position of the label in the object frame of reference.
Definition: wobject.h:209
void setUseColorTextureOfOwner(bool b)
set if the object will be rendered with the color and texture of our owner (if we have one) ...
Definition: wobject.cpp:97
const QString & label() const
Returns the text label to render along with the object.
Definition: wobject.cpp:143
WObject(World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity(), bool addToWorld=true)
create the object and automatically put this into the world
Definition: wobject.cpp:25
void drawLocalAxes(bool d)
Sets whether the object local frame of reference should be drawn or not.
Definition: wobject.cpp:122
void setTexture(QString textureName)
Set the texture to use for this WObject when rendered.
Definition: wobject.cpp:73
virtual void preUpdate()
preUpdate the WObject this method is called at each step of the world just before the physic update ...
Definition: wobject.cpp:101
const wVector & labelPosition() const
Returns the label position relative to this object.
Definition: wobject.cpp:153
const wMatrix & matrix() const
return a reference to the transformation matrix
Definition: wobject.cpp:47
void setAlpha(int alpha)
set the value of alpha channel (the transparency)
Definition: wobject.cpp:85
void setLabelPosition(const wVector &pos)
Sets the label position relative to this object.
Definition: wobject.cpp:148
void setPosition(const wVector &newpos)
set the position specified in global coordinate frame
Definition: wobject.cpp:51
bool useColorTextureOfOwner() const
if true, we will use color and texture of our owner (if we have one)
Definition: wobject.cpp:93
float real
bool usecolortextureofowner
if true, we will use color and texture of our owner (if we have one).
Definition: wobject.h:203
bool localAxesDrawn() const
Returns true if the local frame of refecence of the object should be drawn.
Definition: wobject.cpp:126
bool localFrameOfReferenceDrawn
If true, the local frame of reference of the object is drawn.
Definition: wobject.h:205
void setLabel(QString label)
Sets a text label to render along with the object.
Definition: wobject.cpp:131
virtual void postUpdate()
postUpdate the WObject this method is called at each step of the world just after the physic update ...
Definition: wobject.cpp:105