29 lines
No EOL
524 B
C++
29 lines
No EOL
524 B
C++
#pragma once
|
|
|
|
#include "AbstractGeometricItem.h"
|
|
#include "Point.h"
|
|
|
|
class Circle : public AbstractGeometricItem
|
|
{
|
|
public:
|
|
Circle(const Point& centre, double radius = 0.5);
|
|
|
|
const Point& getLocation() const override;
|
|
|
|
double getRadius() const;
|
|
|
|
double getMinorRadius() const;
|
|
|
|
void setMinorRadius(double radius);
|
|
|
|
void sample(Grid<unsigned char>* grid) const override;
|
|
|
|
Bounds getSize() const override;
|
|
|
|
Type getType() const override;
|
|
|
|
private:
|
|
double mMinorRadius{ 0.5 };
|
|
double mRadius{ 0.5 };
|
|
Point mCentre;
|
|
}; |