Drake
Geometry Class Reference

#include <drake/multibody/shapes/geometry.h>

Inheritance diagram for Geometry:
[legend]
Collaboration diagram for Geometry:
[legend]

Public Member Functions

 Geometry ()
 
 Geometry (const Geometry &other)
 
virtual ~Geometry ()
 
virtual Geometryclone () const
 
Shape getShape () const
 
virtual void getPoints (Eigen::Matrix3Xd &points) const
 
virtual bool hasFaces () const
 
virtual void getFaces (TrianglesVector *faces) const
 Returns the faces making up this geometry as a vector of triangles. More...
 
virtual void getBoundingBoxPoints (Eigen::Matrix3Xd &points) const
 
virtual void getTerrainContactPoints (Eigen::Matrix3Xd &points) const
 

Protected Member Functions

 Geometry (Shape shape)
 
void getBoundingBoxPoints (double x_half_width, double y_half_width, double z_half_width, Eigen::Matrix3Xd &points) const
 

Protected Attributes

Shape shape
 

Static Protected Attributes

static const int NUM_BBOX_POINTS = 8
 

Friends

std::ostream & operator<< (std::ostream &, const Geometry &)
 A toString method for this class. More...
 

Constructor & Destructor Documentation

Geometry ( )

Here is the caller graph for this function:

Geometry ( const Geometry other)

Here is the call graph for this function:

virtual ~Geometry ( )
inlinevirtual

Here is the call graph for this function:

Geometry ( Shape  shape)
explicitprotected

Member Function Documentation

Geometry * clone ( ) const
virtual

Reimplemented in MeshPoints, Mesh, Capsule, Cylinder, Box, and Sphere.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void getBoundingBoxPoints ( Eigen::Matrix3Xd &  points) const
virtual

Reimplemented in MeshPoints, Mesh, Capsule, Cylinder, Box, and Sphere.

Here is the caller graph for this function:

void getBoundingBoxPoints ( double  x_half_width,
double  y_half_width,
double  z_half_width,
Eigen::Matrix3Xd &  points 
) const
protected
virtual void getFaces ( TrianglesVector faces) const
inlinevirtual

Returns the faces making up this geometry as a vector of triangles.

Each triangle contains three indices into the vertex list returned by the Geometry getPoints() method.

Parameters
[out]facesReturns a vector of triangles describing this geometry.

Reimplemented in Mesh, and Box.

Here is the call graph for this function:

Here is the caller graph for this function:

void getPoints ( Eigen::Matrix3Xd &  points) const
virtual

Reimplemented in MeshPoints, Mesh, Capsule, Cylinder, Box, and Sphere.

Here is the call graph for this function:

Here is the caller graph for this function:

Shape getShape ( ) const

Here is the caller graph for this function:

virtual void getTerrainContactPoints ( Eigen::Matrix3Xd &  points) const
inlinevirtual

Reimplemented in Box, and Sphere.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool hasFaces ( ) const
inlinevirtual
Returns
true if this geometry can return faces.

Reimplemented in Mesh, and Box.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Geometry gg 
)
friend

A toString method for this class.

Member Data Documentation

const int NUM_BBOX_POINTS = 8
staticprotected
Shape shape
protected

The documentation for this class was generated from the following files: