Drake
Box Class Referencefinal

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

Public Member Functions

 Box (const Eigen::Vector3d &size)
 
virtual ~Box ()
 
Boxclone () const override
 
void getPoints (Eigen::Matrix3Xd &points) const override
 
bool hasFaces () const override
 
void getFaces (TrianglesVector *faces) const override
 Returns the faces making up this geometry as a vector of triangles. More...
 
void getBoundingBoxPoints (Eigen::Matrix3Xd &points) const override
 
void getTerrainContactPoints (Eigen::Matrix3Xd &points) const override
 
- Public Member Functions inherited from Geometry
 Geometry ()
 
virtual ~Geometry ()
 
Shape getShape () const
 

Public Attributes

Eigen::Vector3d size
 

Friends

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

Additional Inherited Members

- Protected Member Functions inherited from Geometry
 Geometry (Shape shape)
 
 Geometry (const Geometry &)=default
 
void operator= (const Geometry &)=delete
 
void getBoundingBoxPoints (double x_half_width, double y_half_width, double z_half_width, Eigen::Matrix3Xd &points) const
 
- Protected Attributes inherited from Geometry
Shape shape
 
- Static Protected Attributes inherited from Geometry
static const int NUM_BBOX_POINTS = 8
 

Constructor & Destructor Documentation

◆ Box()

Box ( const Eigen::Vector3d &  size)
explicit

◆ ~Box()

virtual ~Box ( )
inlinevirtual

Member Function Documentation

◆ clone()

Box * clone ( ) const
overridevirtual

Reimplemented from Geometry.

◆ getBoundingBoxPoints()

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

Reimplemented from Geometry.

◆ getFaces()

void getFaces ( TrianglesVector faces) const
overridevirtual

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 from Geometry.

◆ getPoints()

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

Reimplemented from Geometry.

◆ getTerrainContactPoints()

void getTerrainContactPoints ( Eigen::Matrix3Xd &  points) const
overridevirtual

Reimplemented from Geometry.

◆ hasFaces()

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

Reimplemented from Geometry.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const Box bb 
)
friend

A toString method for this class.

Member Data Documentation

◆ size

Eigen::Vector3d size

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