Public Member Functions |
| 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
|
void | drawLocalAxes (bool d) |
| Sets whether the object local frame of reference should be drawn or not.
|
bool | isInvisible () const |
| return if it is invisible
|
const QString & | label () const |
| Returns the text label to render along with the object.
|
const QColor & | labelColor () const |
| Returns the color of the label.
|
const wVector & | labelPosition () const |
| Returns the label position relative to this object.
|
bool | labelShown () const |
| Returns whether the label is shown or not.
|
bool | localAxesDrawn () const |
| Returns true if the local frame of refecence of the object should be drawn.
|
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 | setLabel (QString label) |
| Sets a text label to render along with the object.
|
void | setLabel (QString label, wVector pos) |
| Sets a text label to render along with the object and its position.
|
void | setLabel (QString label, wVector pos, QColor color) |
| Sets a text label to render along with the object and its position and color.
|
void | setLabelColor (const QColor &color) |
| Sets the color of the label.
|
void | setLabelPosition (const wVector &pos) |
| Sets the label position relative to this object.
|
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)
|
void | showLabel (bool show) |
| Sets whether to show the label or not.
|
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.