27 lines
504 B
C++
27 lines
504 B
C++
#ifndef SKETCHCIRCLE_H
|
|
#define SKETCHCIRCLE_H
|
|
|
|
#include "SketchObject.h"
|
|
#include <gp_Pnt.hxx>
|
|
|
|
class SketchCircle : public SketchObject
|
|
{
|
|
public:
|
|
SketchCircle();
|
|
SketchCircle(const gp_Pnt& center, double radius);
|
|
|
|
ObjectType type() const override;
|
|
|
|
void read(const QJsonObject& json) override;
|
|
void write(QJsonObject& json) const override;
|
|
|
|
const gp_Pnt& center() const;
|
|
double radius() const;
|
|
|
|
private:
|
|
gp_Pnt m_center;
|
|
double m_radius;
|
|
};
|
|
|
|
#endif // SKETCHCIRCLE_H
|