Drake
Drake C++ Documentation
ShapeName Class Referencefinal

#include <drake/geometry/shape_specification.h>

Public Member Functions

 ShapeName ()=default
 
 ShapeName (const Shape &shape)
 Constructs a ShapeName from the given shape such that string() already contains the string representation of shape. More...
 
 ~ShapeName () final
 
std::string name () const
 Returns the name of the last shape reified. More...
 
- Public Member Functions inherited from ShapeReifier
virtual ~ShapeReifier ()
 
virtual void ImplementGeometry (const Box &box, void *user_data)
 
virtual void ImplementGeometry (const Capsule &capsule, void *user_data)
 
virtual void ImplementGeometry (const Convex &convex, void *user_data)
 
virtual void ImplementGeometry (const Cylinder &cylinder, void *user_data)
 
virtual void ImplementGeometry (const Ellipsoid &ellipsoid, void *user_data)
 
virtual void ImplementGeometry (const HalfSpace &half_space, void *user_data)
 
virtual void ImplementGeometry (const Mesh &mesh, void *user_data)
 
virtual void ImplementGeometry (const MeshcatCone &cone, void *user_data)
 
virtual void ImplementGeometry (const Sphere &sphere, void *user_data)
 

Additional Inherited Members

- Protected Member Functions inherited from ShapeReifier
 ShapeReifier ()=default
 
virtual void ThrowUnsupportedGeometry (const std::string &shape_name)
 Derived ShapeReifiers can replace the default message for unsupported geometries by overriding this method. More...
 
 ShapeReifier (const ShapeReifier &)=default
 
ShapeReifieroperator= (const ShapeReifier &)=default
 
 ShapeReifier (ShapeReifier &&)=default
 
ShapeReifieroperator= (ShapeReifier &&)=default
 

Constructor & Destructor Documentation

◆ ShapeName() [1/2]

ShapeName ( )
default

◆ ShapeName() [2/2]

ShapeName ( const Shape shape)
explicit

Constructs a ShapeName from the given shape such that string() already contains the string representation of shape.

◆ ~ShapeName()

~ShapeName ( )
final

Member Function Documentation

◆ name()

std::string name ( ) const

Returns the name of the last shape reified.

Empty if no shape has been reified yet.


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