PythonConverter: Extend for Hyperbola/Parabola/BSpline

This commit is contained in:
Paddle
2023-11-16 11:58:47 +01:00
committed by abdullahtahiriyo
parent aa901520b5
commit 30e2a109e6
6 changed files with 168 additions and 20 deletions

View File

@@ -43,7 +43,6 @@ class Constraint;
class SketcherExport PythonConverter
{
class SingleGeometry
{
public:
@@ -52,14 +51,22 @@ class SketcherExport PythonConverter
};
public:
enum class Mode
{
CreateInternalGeometry,
OmitInternalGeometry
};
explicit PythonConverter() = delete;
~PythonConverter() = delete;
/// Convert a geometry into the string representing the command creating it
static std::string convert(const Part::Geometry* geo);
static std::string convert(const Part::Geometry* geo, Mode mode = Mode::CreateInternalGeometry);
/// Convert a vector of geometries into the string representing the command creating them
static std::string convert(const std::string& doc, const std::vector<Part::Geometry*>& geos);
static std::string convert(const std::string& doc,
const std::vector<Part::Geometry*>& geos,
Mode mode = Mode::CreateInternalGeometry);
static std::string convert(const Sketcher::Constraint* constraint);