16 #ifndef SURGSIM_GRAPHICS_CURVEREPRESENTATION_H 17 #define SURGSIM_GRAPHICS_CURVEREPRESENTATION_H 64 virtual void setWidth(
double width) = 0;
virtual void setTension(double tension)=0
Sets the tension (tau) parameter of the Catmull Rom interpolation, needs to be between 0...
Definition: CompoundShapeToGraphics.cpp:29
CurveRepresentation(const std::string &name)
Constructor.
Definition: CurveRepresentation.cpp:27
This implements a graphical object to draw an interpolated curve, it accepts a series of control poin...
Definition: CurveRepresentation.h:34
virtual void setSubdivisions(size_t num)=0
Sets the number of intermediate points the get generated between each two control points...
virtual void setColor(const SurgSim::Math::Vector4d &color)=0
Sets the color for the curve.
void updateControlPoints(const DataStructures::VerticesPlain &vertices)
Updates the control points for this class, this will cause a new curve to be generated on the next up...
Definition: CurveRepresentation.cpp:44
virtual void setWidth(double width)=0
Sets the line width to be used for drawing this curve.
virtual void setAntiAliasing(bool val)=0
Sets up whether to use anti aliasing on the curve or not.
virtual double getTension() const =0
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:39
virtual size_t getSubdivisions() const =0
virtual double getWidth() const =0
A simple thread-safe data container that can support multiple writers and readers.
Definition: LockedContainer.h:54
Framework::LockedContainer< DataStructures::VerticesPlain > m_locker
Container control points, threadsafe access when updating.
Definition: CurveRepresentation.h:92
virtual Math::Vector4d getColor() const =0
Eigen::Matrix< double, 4, 1 > Vector4d
A 4D vector of doubles.
Definition: Vector.h:61
Base class for mesh structures, handling basic vertex functionality.
Definition: Vertices.h:51
virtual bool isAntiAliasing() const =0