16 #ifndef SURGSIM_PHYSICS_CONSTRAINTIMPLEMENTATIONFACTORY_H 17 #define SURGSIM_PHYSICS_CONSTRAINTIMPLEMENTATIONFACTORY_H 22 #include <unordered_map> 24 #include "SurgSim/Physics/ConstraintType.h" 25 #include "SurgSim/Physics/Representation.h" 32 class ConstraintImplementation;
54 std::type_index representationType,
55 ConstraintType constraintType);
60 void addImplementation(std::type_index typeIndex, std::shared_ptr<ConstraintImplementation> implementation);
65 std::unordered_map<std::type_index,
66 std::array<std::shared_ptr<ConstraintImplementation>, NUM_CONSTRAINT_TYPES>>
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
~ConstraintImplementationFactory()
Destructor.
Definition: ConstraintImplementationFactory.cpp:87
void addImplementation(std::type_index typeIndex, std::shared_ptr< ConstraintImplementation > implementation)
Add an implementation to the internal directory.
Definition: ConstraintImplementationFactory.cpp:105
std::shared_ptr< ConstraintImplementation > getImplementation(std::type_index representationType, ConstraintType constraintType)
Get the instance of a ConstraintImplementation for a specific representation and constraint type...
Definition: ConstraintImplementationFactory.cpp:91
ConstraintImplementationFactory()
Constructor.
Definition: ConstraintImplementationFactory.cpp:47
This class manages ConstraintImplementations, and can be used to look up the correct implementation b...
Definition: ConstraintImplementationFactory.h:38