|
Public Member Functions |
|
| Part (const Polygone &shape, double height) |
| | Constructor, builds a shaped part without any texture;.
|
|
| Part (const Polygone &shape, double height, const Textures &textures) |
| | Constructor, builds a shaped part with a textured shape;.
|
|
| Part (double l1, double l2, double height) |
| | Constructor, builds a rectangular part of size l1xl2, with a given height and color, and update radius.
|
|
void | updateRadius (double &radius) |
| | Updates the referenced radius using the shape of this object, in object coordinates.
|
|
double | getHeight () const |
|
const Polygone & | getShape () const |
|
const Polygone & | getTransformedShape () const |
|
const Textures & | getTextures () const |
|
bool | isTextured () const |
Private Member Functions |
|
void | computeTransformedShape (const Matrix22 &rot, const Point &trans) |
| | Compute the shape of this part in world coordinates with respect to object.
|
Private Attributes |
|
double | height |
| | The height of the part, used for interaction with the sensors of other robots.
|
|
Polygone | shape |
| | The shape of the object in object coordinates.
|
|
Polygone | transformedShape |
| | The shape of the object in world coordinates, updated on initLocalInteractions().
|
|
Textures | textures |
| | Texture for several faces of this object.
|
Friends |
|
class | PhysicalObject |