16 #ifndef SURGSIM_GRAPHICS_CAPSULEREPRESENTATION_H
17 #define SURGSIM_GRAPHICS_CAPSULEREPRESENTATION_H
44 virtual void setRadius(
double radius) = 0;
51 virtual void setHeight(
double height) = 0;
59 virtual void setSize(
double radius,
double height) = 0;
63 virtual void getSize(
double* radius,
double* height) = 0;
77 #endif // SURGSIM_GRAPHICS_CAPSULEREPRESENTATION_H
Definition: DriveElementFromInputBehavior.cpp:27
virtual double getHeight() const =0
Returns the height of the capsule.
virtual void setRadius(double radius)=0
Sets the radius of the capsule.
virtual void setHeight(double height)=0
Sets the height of the capsulei.
virtual SurgSim::Math::Vector2d getSize() const =0
Returns the radius of the capsule.
#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:211
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:39
Eigen::Matrix< double, 2, 1 > Vector2d
A 2D vector of doubles.
Definition: Vector.h:52
Base graphics capsule representation class, which defines the basic interface for a capsule that can ...
Definition: CapsuleRepresentation.h:30
Definitions of small fixed-size vector types.
virtual void setSize(double radius, double height)=0
Sets the size of the capsule.
virtual double getRadius() const =0
Returns the radius of the capsule.
CapsuleRepresentation(const std::string &name)
Constructor.
Definition: CapsuleRepresentation.h:36