16 #ifndef SURGSIM_GRAPHICS_MESHREPRESENTATION_H 17 #define SURGSIM_GRAPHICS_MESHREPRESENTATION_H 64 virtual std::shared_ptr<Mesh>
getMesh() = 0;
68 virtual void setMesh(std::shared_ptr<SurgSim::Framework::Asset> mesh) = 0;
72 virtual void loadMesh(
const std::string& fileName) = 0;
77 virtual void setShape(std::shared_ptr<SurgSim::Math::Shape> shape) = 0;
95 #endif // SURGSIM_GRAPHICS_MESHREPRESENTATION_H Definition: CompoundShapeToGraphics.cpp:29
Graphics representation of a mesh, can be initialized from a Mesh structure.
Definition: MeshRepresentation.h:34
Definition: MeshRepresentation.h:41
virtual void loadMesh(const std::string &fileName)=0
Convenience function to trigger the load of the mesh with the given filename.
Definition: MeshRepresentation.h:43
virtual ~MeshRepresentation()
Destructor.
Definition: MeshRepresentation.h:60
Definition: MeshRepresentation.h:42
Definition: MeshRepresentation.h:45
This contains a series of functions to encode and decode Eigen data structures to and from YAML nodes...
virtual int getUpdateOptions() const =0
Gets update options for this mesh.
virtual void setUpdateOptions(int val)=0
Sets the structures that are expected to change during the lifetime of the mesh, these will be update...
virtual void setMesh(std::shared_ptr< SurgSim::Framework::Asset > mesh)=0
Sets the mesh.
#define SURGSIM_ADD_SETTER(class, type, property, setter)
A macro to register a setter that can be used from YAML, and as a writeable property use this to prov...
Definition: Accessible.h:236
#define SURGSIM_ADD_SERIALIZABLE_PROPERTY(class, type, property, getter, setter)
A macro to register a serializable property, this needs to support reading, writing and all the conve...
Definition: Accessible.h:225
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:39
Definition: MeshRepresentation.h:40
virtual std::shared_ptr< Mesh > getMesh()=0
Gets the mesh.
virtual void updateMesh(const Mesh &mesh)=0
MeshRepresentation(const std::string &name)
Constructor.
Definition: MeshRepresentation.h:51
UpdateOption
Definition: MeshRepresentation.h:38
Definition: MeshRepresentation.h:44
virtual void setShape(std::shared_ptr< SurgSim::Math::Shape > shape)=0
Sets the shape of the representation param shape the shape of this representation.