|
| | WMesh (World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity()) |
| | Create a WMesh.
|
| |
| virtual | ~WMesh () |
| | Destroy this object.
|
| |
| WObject * | attachedTo () |
| | Return the attached WObject (NULL is there isn't)
|
| |
| void | attachTo (WObject *obj) |
| | Attach to the WObject specified,.
|
| |
| bool | loadMS3DModel (QString filename) |
| | Load the mesh from a MS3D file (MilkShape-3D)
|
| |
| Material * | materials () |
| | Return Materials (for now are ignored during rendering)
|
| |
| int | materialsCount () |
| | Number of materials.
|
| |
| Mesh * | meshes () |
| | Return Meshes.
|
| |
| int | meshesCount () |
| | Number of meshes.
|
| |
| Triangle * | triangles () |
| | Return Triangles composing the mesh.
|
| |
| int | trianglesCount () |
| | Number of triangles.
|
| |
| Vertex * | vertices () |
| | Return Vertices composing the triangles of the mesh.
|
| |
| int | verticesCount () |
| | Number of vertices.
|
| |
| | WObject (World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity(), bool addToWorld=true) |
| | create the object and automatically put this into the world
|
| |
| virtual | ~WObject () |
| | destroy the Object and drop it from the world
|
| |
| QColor | color () const |
| | return the color of this object
|
| |
| bool | isInvisible () |
| | return if it is invisible
|
| |
| const wMatrix & | matrix () const |
| | return a reference to the transformation matrix
|
| |
| QString | name () const |
| | Return the name of this object.
|
| |
| virtual void | postUpdate () |
| | postUpdate the WObject this method is called at each step of the world just after the physic update
|
| |
| virtual void | preUpdate () |
| | preUpdate the WObject this method is called at each step of the world just before the physic update
|
| |
| void | setAlpha (int alpha) |
| | set the value of alpha channel (the transparency)
|
| |
| void | setColor (QColor c) |
| | Set the color to use on rendering.
|
| |
| void | setInvisible (bool b) |
| | set invisibility
|
| |
| void | setMatrix (const wMatrix &newm) |
| | set a new matrix
|
| |
| void | setPosition (const wVector &newpos) |
| | set the position specified in global coordinate frame
|
| |
| void | setPosition (real x, real y, real z) |
| | set the position specified in global coordinate frame
|
| |
| void | setTexture (QString textureName) |
| | Set the texture to use for this WObject when rendered.
|
| |
| void | setUseColorTextureOfOwner (bool b) |
| | set if the object will be rendered with the color and texture of our owner (if we have one)
|
| |
| QString | texture () const |
| | Return the texture name.
|
| |
| bool | useColorTextureOfOwner () const |
| | if true, we will use color and texture of our owner (if we have one)
|
| |
| World * | world () |
| | Return the world.
|
| |
| const World * | world () const |
| | Return the world (const version)
|
| |
| | Ownable () |
| | Constructor.
|
| |
| virtual | ~Ownable () |
| | Destructor.
|
| |
| const QList< Owned > & | owned () const |
| | Returns the list of objects owned by this one.
|
| |
| Ownable * | owner () const |
| | Returns the owner of this object.
|
| |
| void | setOwner (Ownable *owner, bool destroy=true) |
| | Sets the owner of this object.
|
| |
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.