16 #ifndef SURGSIM_GRAPHICS_CURVEREPRESENTATION_H 17 #define SURGSIM_GRAPHICS_CURVEREPRESENTATION_H 19 #include "SurgSim/DataStructures/Vertices.h" 20 #include "SurgSim/Framework/LockedContainer.h" 21 #include "SurgSim/Graphics/Representation.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...
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
CurveRepresentation(const std::string &name)
Constructor.
Definition: CurveRepresentation.cpp:27
Eigen::Matrix< double, 4, 1 > Vector4d
A 4D vector of doubles.
Definition: Vector.h:61
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:40
virtual size_t getSubdivisions() const =0
virtual double getWidth() const =0
Framework::LockedContainer< DataStructures::VerticesPlain > m_locker
Container control points, threadsafe access when updating.
Definition: CurveRepresentation.h:92
virtual Math::Vector4d getColor() const =0
Base class for mesh structures, handling basic vertex functionality.
Definition: Vertices.h:51
virtual bool isAntiAliasing() const =0