29 #ifndef CDPL_VIS_PATHPRIMITIVE2D_HPP
30 #define CDPL_VIS_PATHPRIMITIVE2D_HPP
Definition of class CDPL::Vis::Brush.
Definition of class CDPL::Vis::GraphicsPrimitive2D.
Definition of class CDPL::Vis::Path2D.
Definition of class CDPL::Vis::Pen.
Definition of the preprocessor macro CDPL_VIS_API.
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Specifies the fill pattern and fill color of shapes.
Definition: Brush.hpp:50
Interface providing methods for querying information about the metrics of a font.
Definition: FontMetrics.hpp:71
The abstract base class of all 2D graphics primitives.
Definition: GraphicsPrimitive2D.hpp:57
std::shared_ptr< GraphicsPrimitive2D > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated GraphicsPrimitive2D instances.
Definition: GraphicsPrimitive2D.hpp:63
Provides a container for painting operations, enabling arbitrary graphical shapes to be constructed a...
Definition: Path2D.hpp:78
2D graphics primitive representing an arbitrary path in 2D space.
Definition: PathPrimitive2D.hpp:53
const Brush & getBrush() const
Returns the brush defining the fill color and fill pattern.
void setBrush(const Brush &brush)
Sets the brush defining the fill color and fill pattern.
const Pen & getPen() const
Returns the pen defining the color, width, line style, cap style and join style of the path outline.
void getBounds(Rectangle2D &bounds, FontMetrics *font_metrics=0) const
Computes the axis-aligned bounding rectangle of the path.
void setPen(const Pen &pen)
Sets the pen defining the color, width, line style, cap style and join style of the path outline.
void render(Renderer2D &renderer) const
Renders the path via renderer using the configured pen and brush.
GraphicsPrimitive2D::SharedPointer clone() const
Creates a dynamically allocated copy of this primitive.
PathPrimitive2D()
Constructs an undefined path primitive.
Definition: PathPrimitive2D.hpp:64
std::shared_ptr< PathPrimitive2D > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated PathPrimitive2D instances.
Definition: PathPrimitive2D.hpp:59
Specifies how to draw lines and outlines of shapes.
Definition: Pen.hpp:53
Specifies an axis aligned rectangular area in 2D space.
Definition: Rectangle2D.hpp:51
Interface providing methods for low level 2D drawing operations.
Definition: Renderer2D.hpp:86
The namespace of the Chemical Data Processing Library.