Go to the documentation of this file.
16 #ifndef SURGSIM_SERIALIZE_SHAPESFACTORY_H
17 #define SURGSIM_SERIALIZE_SHAPESFACTORY_H
20 #include <boost/function.hpp>
21 #include <boost/functional/factory.hpp>
41 template <
class Derived>
64 #endif // SURGSIM_SERIALIZE_SHAPESFACTORY_H
ShapesFactory()
Constructor.
Definition: ShapesFactory.cpp:24
virtual ~ShapesFactory()
Destructor.
Definition: ShapesFactory.cpp:29
A factory implementation for shapes.
Definition: ShapesFactory.h:29
Definition: CompoundShapeToGraphics.cpp:29
void registerShape(const std::string &className)
Template version to register a shape into the internal directory.
Definition: ShapesFactory-inl.h:27
boost::function< std::shared_ptr< SurgSim::Math::Shape >)> ShapesFactoryFunction
A wrapper of function object.
Definition: ShapesFactory.h:51
std::map< std::string, ShapesFactoryFunction > m_registerDirectory
Look up table for shapes factory.
Definition: ShapesFactory.h:54
std::shared_ptr< SurgSim::Math::Shape > createShape(const std::string &className)
Create an instance of derived rigid shape based on the specific class name.
Definition: ShapesFactory.cpp:34
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38