|
Chemical Data Processing Library C++ API - Version 1.1.1
|
Go to the documentation of this file.
29 #ifndef CDPL_VIS_ELLIPSEPRIMITIVE2D_HPP
30 #define CDPL_VIS_ELLIPSEPRIMITIVE2D_HPP
63 width(0.0), height(0.0) {}
69 position(pos), width(width), height(height) {}
147 #endif // CDPL_VIS_ELLIPSEPRIMITIVE2D_HPP
void getBounds(Rectangle2D &bounds, FontMetrics *font_metrics=0) const
Calculates the bounds of the graphics primitive.
An interface that provides methods for low level 2D drawing operations.
Definition: Renderer2D.hpp:86
GraphicsPrimitive2D::SharedPointer clone() const
Creates a dynamically allocated copy of the graphics primitive.
std::shared_ptr< GraphicsPrimitive2D > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated GraphicsPrimitive2D instances.
Definition: GraphicsPrimitive2D.hpp:63
Specifies how to draw lines and outlines of shapes.
Definition: Pen.hpp:53
void setBrush(const Brush &brush)
Sets the brush defining the fill color and fill pattern.
const Math::Vector2D & getPosition() const
Returns the position of the ellipse center.
EllipsePrimitive2D(const Math::Vector2D &pos, double width, double height)
Constructs an undefined ellipse primitive.
Definition: EllipsePrimitive2D.hpp:68
const Brush & getBrush() const
Returns the brush defining the fill color and fill pattern.
double getHeight() const
Returns the diameter of the ellipse in y-direction.
double getWidth() const
Returns the diameter of the ellipse in x-direction.
void render(Renderer2D &renderer) const
Visualizes the graphics primitive by means of the Renderer2D instance renderer.
EllipsePrimitive2D()
Constructs an undefined ellipse primitive.
Definition: EllipsePrimitive2D.hpp:62
A graphics primitive representing a ellipse.
Definition: EllipsePrimitive2D.hpp:51
Definition of the class CDPL::Vis::Pen.
const Pen & getPen() const
Returns the pen defining the color, width, line style, cap style and join style of the ellipse outlin...
void setHeight(double height)
Sets the diameter of the ellipse in y-direction.
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
void setWidth(double width)
Sets the diameter of the ellipse in x-direction.
Definition of the class CDPL::Vis::GraphicsPrimitive2D.
The namespace of the Chemical Data Processing Library.
The abstract base class of all 2D graphics primitives.
Definition: GraphicsPrimitive2D.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
std::shared_ptr< EllipsePrimitive2D > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated EllipsePrimitive2D instances.
Definition: EllipsePrimitive2D.hpp:57
void setPosition(const Math::Vector2D &pos)
Sets the position of the ellipse center.
Specifies the fill pattern and fill color of shapes.
Definition: Brush.hpp:50
void setPen(const Pen &pen)
Sets the pen defining the color, width, line style, cap style and join style of the ellipse outline.
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.
Definition of vector data types.