|
| WMesh (World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity()) |
| Create a WMesh. More...
|
|
virtual | ~WMesh () |
| Destroy this object. More...
|
|
WObject * | attachedTo () |
| Return the attached WObject (NULL is there isn't) More...
|
|
void | attachTo (WObject *obj) |
| Attach to the WObject specified,. More...
|
|
bool | loadMS3DModel (QString filename) |
| Load the mesh from a MS3D file (MilkShape-3D) More...
|
|
Material * | materials () |
| Return Materials (for now are ignored during rendering) More...
|
|
int | materialsCount () |
| Number of materials. More...
|
|
Mesh * | meshes () |
| Return Meshes. More...
|
|
int | meshesCount () |
| Number of meshes. More...
|
|
Triangle * | triangles () |
| Return Triangles composing the mesh. More...
|
|
int | trianglesCount () |
| Number of triangles. More...
|
|
Vertex * | vertices () |
| Return Vertices composing the triangles of the mesh. More...
|
|
int | verticesCount () |
| Number of vertices. More...
|
|
| WObject (World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity(), bool addToWorld=true) |
| create the object and automatically put this into the world More...
|
|
virtual | ~WObject () |
| destroy the Object and drop it from the world More...
|
|
QColor | color () const |
| return the color of this object More...
|
|
void | drawLocalAxes (bool d) |
| Sets whether the object local frame of reference should be drawn or not. More...
|
|
bool | isInvisible () const |
| return if it is invisible More...
|
|
const QString & | label () const |
| Returns the text label to render along with the object. More...
|
|
const QColor & | labelColor () const |
| Returns the color of the label. More...
|
|
const wVector & | labelPosition () const |
| Returns the label position relative to this object. More...
|
|
bool | labelShown () const |
| Returns whether the label is shown or not. More...
|
|
bool | localAxesDrawn () const |
| Returns true if the local frame of refecence of the object should be drawn. More...
|
|
const wMatrix & | matrix () const |
| return a reference to the transformation matrix More...
|
|
QString | name () const |
| Return the name of this object. More...
|
|
virtual void | postUpdate () |
| postUpdate the WObject this method is called at each step of the world just after the physic update More...
|
|
virtual void | preUpdate () |
| preUpdate the WObject this method is called at each step of the world just before the physic update More...
|
|
void | setAlpha (int alpha) |
| set the value of alpha channel (the transparency) More...
|
|
void | setColor (QColor c) |
| Set the color to use on rendering. More...
|
|
void | setInvisible (bool b) |
| set invisibility More...
|
|
void | setLabel (QString label) |
| Sets a text label to render along with the object. More...
|
|
void | setLabel (QString label, wVector pos) |
| Sets a text label to render along with the object and its position. More...
|
|
void | setLabel (QString label, wVector pos, QColor color) |
| Sets a text label to render along with the object and its position and color. More...
|
|
void | setLabelColor (const QColor &color) |
| Sets the color of the label. More...
|
|
void | setLabelPosition (const wVector &pos) |
| Sets the label position relative to this object. More...
|
|
void | setMatrix (const wMatrix &newm) |
| set a new matrix More...
|
|
void | setPosition (const wVector &newpos) |
| set the position specified in global coordinate frame More...
|
|
void | setPosition (real x, real y, real z) |
| set the position specified in global coordinate frame More...
|
|
void | setTexture (QString textureName) |
| Set the texture to use for this WObject when rendered. More...
|
|
void | setUseColorTextureOfOwner (bool b) |
| set if the object will be rendered with the color and texture of our owner (if we have one) More...
|
|
void | showLabel (bool show) |
| Sets whether to show the label or not. More...
|
|
QString | texture () const |
| Return the texture name. More...
|
|
bool | useColorTextureOfOwner () const |
| if true, we will use color and texture of our owner (if we have one) More...
|
|
World * | world () |
| Return the world. More...
|
|
const World * | world () const |
| Return the world (const version) More...
|
|
| Ownable () |
| Constructor. More...
|
|
virtual | ~Ownable () |
| Destructor. More...
|
|
const QList< Owned > & | owned () const |
| Returns the list of objects owned by this one. More...
|
|
Ownable * | owner () const |
| Returns the owner of this object. More...
|
|
void | setOwner (Ownable *owner, bool destroy=true) |
| Sets the owner of this object. More...
|
|
WMesh class.
\
- Motivation
- WMesh represent a 3D shape using a triangle mesh. It is just for graphic purpose, but it is subclass of WObject and it is contained into a World for share it amongs WCameras and for attach it to other object (like iCub's cover)
- Description
- Warnings
- Warnings
Definition at line 41 of file wmesh.h.