#include <SketchGeometryExtension.h>
|
static constexpr std::array< const char *, GeometryMode::NumGeometryMode > | geometrymode2str {{ "Blocked", "Construction" }} |
|
static constexpr std::array< const char *, InternalType::NumInternalGeometryType > | internaltype2str {{ "None", "EllipseMajorDiameter", "EllipseMinorDiameter","EllipseFocus1", "EllipseFocus2", "HyperbolaMajor", "HyperbolaMinor", "HyperbolaFocus", "ParabolaFocus", "BSplineControlPoint", "BSplineKnotPoint" }} |
|
◆ SketchGeometryExtension() [1/2]
SketchGeometryExtension::SketchGeometryExtension |
( |
| ) |
|
◆ SketchGeometryExtension() [2/2]
SketchGeometryExtension::SketchGeometryExtension |
( |
long |
cid | ) |
|
◆ ~SketchGeometryExtension()
virtual Sketcher::SketchGeometryExtension::~SketchGeometryExtension |
( |
| ) |
|
|
overridevirtualdefault |
◆ copy()
◆ copyAttributes()
◆ getGeometryLayerId()
virtual int Sketcher::SketchGeometryExtension::getGeometryLayerId |
( |
| ) |
const |
|
overridevirtual |
◆ getGeometryModeFromName()
◆ getId()
virtual long Sketcher::SketchGeometryExtension::getId |
( |
| ) |
const |
|
overridevirtual |
◆ getInternalType()
◆ getInternalTypeFromName()
◆ getPyObject()
PyObject * SketchGeometryExtension::getPyObject |
( |
void |
| ) |
|
|
overridevirtual |
This method returns the Python wrapper for a C++ object.
It's in the responsibility of the programmer to do the correct reference counting. Basically there are two ways how to implement that: Either always return a new Python object then reference counting is not a matter or return always the same Python object then the reference counter must be incremented by one. However, it's absolutely forbidden to return always the same Python object without incrementing the reference counter.
The default implementation returns 'None'.
Implements Part::GeometryExtension.
References SketchGeometryExtension().
◆ restoreAttributes()
void SketchGeometryExtension::restoreAttributes |
( |
Base::XMLReader & |
reader | ) |
|
|
overrideprotectedvirtual |
◆ saveAttributes()
void SketchGeometryExtension::saveAttributes |
( |
Base::Writer & |
writer | ) |
const |
|
overrideprotectedvirtual |
◆ setGeometryLayerId()
virtual void Sketcher::SketchGeometryExtension::setGeometryLayerId |
( |
int |
geolayer | ) |
|
|
overridevirtual |
◆ setGeometryMode()
virtual void Sketcher::SketchGeometryExtension::setGeometryMode |
( |
int |
flag, |
|
|
bool |
v = true |
|
) |
| |
|
overridevirtual |
◆ setId()
virtual void Sketcher::SketchGeometryExtension::setId |
( |
long |
id | ) |
|
|
overridevirtual |
◆ setInternalType()
◆ testGeometryMode()
virtual bool Sketcher::SketchGeometryExtension::testGeometryMode |
( |
int |
flag | ) |
const |
|
overridevirtual |
◆ geometrymode2str
◆ internaltype2str
constexpr std::array< const char *, InternalType::NumInternalGeometryType > SketchGeometryExtension::internaltype2str {{ "None", "EllipseMajorDiameter", "EllipseMinorDiameter","EllipseFocus1", "EllipseFocus2", "HyperbolaMajor", "HyperbolaMinor", "HyperbolaFocus", "ParabolaFocus", "BSplineControlPoint", "BSplineKnotPoint" }} |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- FreeCAD/src/Mod/Sketcher/App/SketchGeometryExtension.h
- FreeCAD/src/Mod/Sketcher/App/SketchGeometryExtension.cpp