Geometrize  1.0
C++ library for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
rotatedellipse.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 #include <memory>
5 
6 #include "shape.h"
7 
8 namespace geometrize
9 {
10 
15 class RotatedEllipse : public Shape
16 {
17 public:
18  RotatedEllipse() = default;
19  RotatedEllipse(float x, float y, float rx, float ry, float angle);
20 
21  virtual std::shared_ptr<geometrize::Shape> clone() const override;
22  virtual geometrize::ShapeTypes getType() const override;
23 
24  float m_x;
25  float m_y;
26  float m_rx;
27  float m_ry;
28  float m_angle;
29 };
30 
31 }
The RotatedEllipse class represents a rotated ellipse.
Definition: rotatedellipse.h:15
ShapeTypes
The ShapeTypes enum specifies the types of shapes that can be used. These can be combined to produce ...
Definition: shapetypes.h:16
float m_y
y-coordinate.
Definition: rotatedellipse.h:25
float m_angle
Rotation angle.
Definition: rotatedellipse.h:28
virtual geometrize::ShapeTypes getType() const override
getType Gets the ShapeType of the shape.
Definition: rotatedellipse.cpp:34
float m_ry
y-radius.
Definition: rotatedellipse.h:27
virtual std::shared_ptr< geometrize::Shape > clone() const override
clone Clones the shape, a virtual copy constructor.
Definition: rotatedellipse.cpp:20
float m_x
x-coordinate.
Definition: rotatedellipse.h:24
float m_rx
x-radius.
Definition: rotatedellipse.h:26
Definition: shape.h:17