Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_CYLINDERREPRESENTATION_H
17 #define SURGSIM_GRAPHICS_CYLINDERREPRESENTATION_H
60 virtual void setSize(
double radius,
double height) = 0;
64 virtual void getSize(
double* radius,
double* height) = 0;
78 #endif // SURGSIM_GRAPHICS_CYLINDERREPRESENTATION_H
Definitions of small fixed-size vector types.
virtual void setRadius(double radius)=0
Sets the radius of the cylinder.
virtual void setSize(const SurgSim::Math::Vector2d &size)=0
Sets the size of the cylinder.
virtual double getRadius() const =0
Returns the radius of the cylinder.
CylinderRepresentation(const std::string &name)
Constructor.
Definition: CylinderRepresentation.h:37
#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
Definition: CompoundShapeToGraphics.cpp:30
virtual void getSize(double *radius, double *height)=0
Gets the size of the cylinder.
virtual double getHeight() const =0
Returns the height of the cylinder.
Eigen::Matrix< double, 2, 1 > Vector2d
A 2D vector of doubles.
Definition: Vector.h:53
Base graphics cylinder representation class, which defines the basic interface for a cylinder that ca...
Definition: CylinderRepresentation.h:32
virtual void setSize(double radius, double height)=0
Sets the size of the cylinder.
virtual SurgSim::Math::Vector2d getSize() const =0
Returns the size of the cylinder.
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:40
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
virtual void setHeight(double height)=0
Sets the height of the cylinder.