Drake
ShapeReifier Class Referenceabstract

The interface for converting shape descriptions to real shapes. More...

#include <drake/geometry/shape_specification.h>

Public Member Functions

virtual ~ShapeReifier ()
 
virtual void ImplementGeometry (const Sphere &sphere)=0
 
virtual void ImplementGeometry (const Cylinder &cylinder)=0
 
virtual void ImplementGeometry (const HalfSpace &half_space)=0
 

Detailed Description

The interface for converting shape descriptions to real shapes.

Any entity that consumes shape descriptions must implement this interface.

This class explicitly enumerates all concrete shapes in its methods. The addition of a new concrete shape class requires the addition of a new corresponding method. There should never be a method that accepts the Shape base class as an argument; it should only operate on concrete derived classes.

Constructor & Destructor Documentation

virtual ~ShapeReifier ( )
inlinevirtual

Member Function Documentation

virtual void ImplementGeometry ( const Sphere sphere)
pure virtual
virtual void ImplementGeometry ( const Cylinder cylinder)
pure virtual
virtual void ImplementGeometry ( const HalfSpace half_space)
pure virtual

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