Sketcher::PythonConverter Class Reference

Class for generating python code. More...

#include <PythonConverter.h>

Public Member Functions

 PythonConverter ()=delete
 
 ~PythonConverter ()=delete
 

Static Public Member Functions

static std::string convert (const Part::Geometry *geo)
 Convert a geometry into the string representing the command creating it. More...
 
static std::string convert (const Sketcher::Constraint *constraint)
 
static std::string convert (const std::string &doc, const std::vector< Part::Geometry * > &geos)
 Convert a vector of geometries into the string representing the command creating them. More...
 
static std::string convert (const std::string &doc, const std::vector< Sketcher::Constraint * > &constraints)
 

Detailed Description

Class for generating python code.

Given C++ structures, it generates the python code that should be written in the console to create such objects.

Constructor & Destructor Documentation

◆ PythonConverter()

Sketcher::PythonConverter::PythonConverter ( )
explicitdelete

◆ ~PythonConverter()

Sketcher::PythonConverter::~PythonConverter ( )
delete

Member Function Documentation

◆ convert() [1/4]

std::string PythonConverter::convert ( const Part::Geometry geo)
static

Convert a geometry into the string representing the command creating it.

Referenced by convert().

◆ convert() [2/4]

std::string PythonConverter::convert ( const Sketcher::Constraint constraint)
static

◆ convert() [3/4]

std::string PythonConverter::convert ( const std::string &  doc,
const std::vector< Part::Geometry * > &  geos 
)
static

Convert a vector of geometries into the string representing the command creating them.

References draftfunctions.move::move().

◆ convert() [4/4]

std::string PythonConverter::convert ( const std::string &  doc,
const std::vector< Sketcher::Constraint * > &  constraints 
)
static

References convert().


The documentation for this class was generated from the following files: