27 lines
542 B
C++
27 lines
542 B
C++
#ifndef SKETCHRECTANGLE_H
|
|
#define SKETCHRECTANGLE_H
|
|
|
|
#include "SketchObject.h"
|
|
#include <gp_Pnt.hxx>
|
|
|
|
class SketchRectangle : public SketchObject
|
|
{
|
|
public:
|
|
SketchRectangle();
|
|
SketchRectangle(const gp_Pnt& corner1, const gp_Pnt& corner2);
|
|
|
|
ObjectType type() const override;
|
|
|
|
void read(const QJsonObject& json) override;
|
|
void write(QJsonObject& json) const override;
|
|
|
|
const gp_Pnt& corner1() const;
|
|
const gp_Pnt& corner2() const;
|
|
|
|
private:
|
|
gp_Pnt m_corner1;
|
|
gp_Pnt m_corner2;
|
|
};
|
|
|
|
#endif // SKETCHRECTANGLE_H
|