|
Chemical Data Processing Library C++ API - Version 1.1.1
|
Go to the documentation of this file.
29 #ifndef CDPL_VIS_LINEPRIMITIVE2D_HPP
30 #define CDPL_VIS_LINEPRIMITIVE2D_HPP
103 #endif // CDPL_VIS_LINEPRIMITIVE2D_HPP
An interface that provides methods for low level 2D drawing operations.
Definition: Renderer2D.hpp:86
std::shared_ptr< GraphicsPrimitive2D > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated GraphicsPrimitive2D instances.
Definition: GraphicsPrimitive2D.hpp:63
void setPen(const Pen &pen)
Sets the pen defining the color, width, line style and cap style of the line.
void render(Renderer2D &renderer) const
Visualizes the graphics primitive by means of the Renderer2D instance renderer.
LinePrimitive2D(const Math::Vector2D &beg, const Math::Vector2D &end)
Constructs a line primitive with the starting point set to beg and the end point set to end.
Definition: LinePrimitive2D.hpp:69
Specifies how to draw lines and outlines of shapes.
Definition: Pen.hpp:53
A graphics primitive representing a single line.
Definition: LinePrimitive2D.hpp:51
GraphicsPrimitive2D::SharedPointer clone() const
Creates a dynamically allocated copy of the graphics primitive.
Definition of the class CDPL::Vis::Pen.
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
const Pen & getPen() const
Returns the pen defining the color, width, line style and cap style of the line.
Definition of the class CDPL::Vis::GraphicsPrimitive2D.
LinePrimitive2D()
Constructs a line primitive whose starting and end point is set to (0, 0).
Definition: LinePrimitive2D.hpp:62
The namespace of the Chemical Data Processing Library.
The abstract base class of all 2D graphics primitives.
Definition: GraphicsPrimitive2D.hpp:57
std::shared_ptr< LinePrimitive2D > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated LinePrimitive2D instances.
Definition: LinePrimitive2D.hpp:57
Specifies an axis aligned rectangular area in 2D space.
Definition: Rectangle2D.hpp:51
CVector< double, 2 > Vector2D
A bounded 2 element vector holding floating point values of type double.
Definition: Vector.hpp:1632
Definition of the class CDPL::Vis::Line2D.
An interface class with methods that provide information about the metrics of a font.
Definition: FontMetrics.hpp:71
Definition of the preprocessor macro CDPL_VIS_API.
LinePrimitive2D(const Line2D &line)
Constructs a line primitive with the same starting and end point as line.
Definition: LinePrimitive2D.hpp:76
Specifies a line segment in 2D space.
Definition: Line2D.hpp:48
void getBounds(Rectangle2D &bounds, FontMetrics *font_metrics=0) const
Calculates the bounds of the graphics primitive.