Integrade OpenCASCADE
This commit is contained in:
@@ -20,6 +20,11 @@ SketchFeature::SketchPlane SketchFeature::plane() const
|
||||
return m_plane;
|
||||
}
|
||||
|
||||
const TopoDS_Shape& SketchFeature::shape() const
|
||||
{
|
||||
return m_shape;
|
||||
}
|
||||
|
||||
void SketchFeature::read(const QJsonObject& json)
|
||||
{
|
||||
Feature::read(json);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef SKETCHFEATURE_H
|
||||
#define SKETCHFEATURE_H
|
||||
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include "Feature.h"
|
||||
|
||||
class SketchFeature : public Feature
|
||||
@@ -19,11 +20,14 @@ public:
|
||||
void setPlane(SketchPlane plane);
|
||||
SketchPlane plane() const;
|
||||
|
||||
const TopoDS_Shape& shape() const;
|
||||
|
||||
void read(const QJsonObject &json) override;
|
||||
void write(QJsonObject &json) const override;
|
||||
|
||||
private:
|
||||
SketchPlane m_plane;
|
||||
TopoDS_Shape m_shape;
|
||||
};
|
||||
|
||||
#endif // SKETCHFEATURE_H
|
||||
|
||||
Reference in New Issue
Block a user