|
Chemical Data Processing Library C++ API - Version 1.1.1
|
Go to the documentation of this file.
29 #ifndef CDPL_VIS_POLYGONPRIMITIVE2D_HPP
30 #define CDPL_VIS_POLYGONPRIMITIVE2D_HPP
102 #endif // CDPL_VIS_POLYGONPRIMITIVE2D_HPP
void render(Renderer2D &renderer) const
Visualizes the graphics primitive by means of the Renderer2D instance renderer.
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
std::shared_ptr< PolygonPrimitive2D > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated PolygonPrimitive2D instances.
Definition: PolygonPrimitive2D.hpp:58
void setBrush(const Brush &brush)
Sets the brush defining the fill color and fill pattern.
Specifies how to draw lines and outlines of shapes.
Definition: Pen.hpp:53
Stores a set of points in 2D space.
Definition: PointArray2D.hpp:48
Definition of the class CDPL::Vis::PointArray2D.
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.
Definition of the class CDPL::Vis::GraphicsPrimitive2D.
PolygonPrimitive2D()
Constructs an undefined polygon primitive.
Definition: PolygonPrimitive2D.hpp:63
void setPen(const Pen &pen)
Sets the pen defining the color, width, line style, cap style and join style of the polygon outline.
A graphics primitive representing a polygon.
Definition: PolygonPrimitive2D.hpp:52
The namespace of the Chemical Data Processing Library.
The abstract base class of all 2D graphics primitives.
Definition: GraphicsPrimitive2D.hpp:57
GraphicsPrimitive2D::SharedPointer clone() const
Creates a dynamically allocated copy of the graphics primitive.
void getBounds(Rectangle2D &bounds, FontMetrics *font_metrics=0) const
Calculates the bounds of the graphics primitive.
Specifies an axis aligned rectangular area in 2D space.
Definition: Rectangle2D.hpp:51
Specifies the fill pattern and fill color of shapes.
Definition: Brush.hpp:50
const Pen & getPen() const
Returns the pen defining the color, width, line style, cap style and join style of the polygon outlin...
Definition of the class CDPL::Vis::Brush.
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.
const Brush & getBrush() const
Returns the brush defining the fill color and fill pattern.