Enki::PhysicalObject::Part Class Reference

#include <PhysicalEngine.h>

List of all members.


Detailed Description

A part is one of the convex geometrical element that composes the physical object.


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 PolygonegetShape () const
const PolygonegetTransformedShape () const
const TexturesgetTextures () 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


The documentation for this class was generated from the following files:
Generated on Sun Mar 1 03:10:09 2009 for Enki by  doxygen 1.5.1