34 lines
669 B
C++
34 lines
669 B
C++
// Unnamed CAD Software
|
|
//
|
|
// License: GPLv3, see LICENSE.txt
|
|
// Language: C++17
|
|
// Notes:
|
|
// - use a right-handed, Z-up coordinate system to match OpenCASCADE
|
|
|
|
#ifndef SKETCHLINE_H
|
|
#define SKETCHLINE_H
|
|
|
|
#include "SketchObject.h"
|
|
#include <gp_Pnt.hxx>
|
|
|
|
class SketchLine : public SketchObject
|
|
{
|
|
public:
|
|
SketchLine();
|
|
SketchLine(const gp_Pnt& start, const gp_Pnt& end);
|
|
|
|
ObjectType type() const override;
|
|
|
|
void read(const QJsonObject& json) override;
|
|
void write(QJsonObject& json) const override;
|
|
|
|
const gp_Pnt& startPoint() const;
|
|
const gp_Pnt& endPoint() const;
|
|
|
|
private:
|
|
gp_Pnt m_start;
|
|
gp_Pnt m_end;
|
|
};
|
|
|
|
#endif // SKETCHLINE_H
|