16 #ifndef SURGSIM_GRAPHICS_SKELETONREPRESENTATION_H 17 #define SURGSIM_GRAPHICS_SKELETONREPRESENTATION_H 21 #include "SurgSim/Framework/FrameworkConvert.h" 22 #include "SurgSim/Graphics/Model.h" 23 #include "SurgSim/Graphics/Representation.h" 50 std::bind(&YAML::Node::as<std::string>, std::placeholders::_1));
55 std::bind(SurgSim::Framework::convert<std::string>, std::placeholders::_1));
59 typedef std::map<std::string, SurgSim::Math::RigidTransform3d> PoseMap;
67 virtual void loadModel(
const std::string& fileName) = 0;
71 virtual void setModel(std::shared_ptr<SurgSim::Framework::Asset> model) = 0;
74 virtual std::shared_ptr<Model>
getModel()
const = 0;
99 virtual void setNeutralBonePoses(
const std::map<std::string, SurgSim::Math::RigidTransform3d>& poses) = 0;
103 virtual std::map<std::string, SurgSim::Math::RigidTransform3d>
getNeutralBonePoses()
const = 0;
109 #endif // SURGSIM_GRAPHICS_SKELETONREPRESENTATION_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
virtual std::map< std::string, SurgSim::Math::RigidTransform3d > getNeutralBonePoses() const =0
Get all the neutral poses.
virtual void setBonePose(const std::string &name, const SurgSim::Math::RigidTransform3d &pose)=0
Set the pose for a given bone.
SkeletonRepresentation(const std::string &name)
Constructor.
Definition: SkeletonRepresentation.h:42
This contains a series of functions to encode and decode Eigen data structures to and from YAML nodes...
Skeleton representation is used to move a mesh based on the movements of pre-selected control points ...
Definition: SkeletonRepresentation.h:36
virtual void setModel(std::shared_ptr< SurgSim::Framework::Asset > model)=0
Set the current model to the model passed.
virtual std::shared_ptr< Model > getModel() const =0
void setSetter(const std::string &name, SetterType func)
Sets a setter for a given property.
Definition: Accessible.cpp:80
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:40
virtual void loadModel(const std::string &fileName)=0
Convenience function to trigger the load of the model with the given filename, if successful...
virtual SurgSim::Math::RigidTransform3d getBonePose(const std::string &name) const =0
Get the pose for a given bone.
void setDecoder(const std::string &name, DecoderType decoder)
Sets the functions used to convert data from a YAML::Node.
Definition: Accessible.cpp:125
virtual void setNeutralBonePoses(const std::map< std::string, SurgSim::Math::RigidTransform3d > &poses)=0
Set neutral poses for a set of bones.
virtual void setNeutralBonePose(const std::string &name, const SurgSim::Math::RigidTransform3d &pose)=0
Set the neutral pose for a given bone.
virtual SurgSim::Math::RigidTransform3d getNeutralBonePose(const std::string &name) const =0
Get the neutral pose for a given bone.