#include <ExternalGeometryExtension.h>
Public Types | |
enum | Flag { Defining = 0 , Frozen = 1 , Detached = 2 , Missing = 3 , Sync = 4 , NumFlags } |
Public Member Functions | |
virtual std::unique_ptr< Part::GeometryExtension > | copy (void) const override |
ExternalGeometryExtension ()=default | |
virtual size_t | flagSize () const override |
virtual PyObject * | getPyObject (void) override |
This method returns the Python wrapper for a C++ object. More... | |
virtual const std::string & | getRef () const override |
virtual bool | isClear () const override |
virtual void | setFlag (int flag, bool v=true) override |
virtual void | setRef (const std::string &ref) override |
virtual bool | testFlag (int flag) const override |
virtual | ~ExternalGeometryExtension () override=default |
Public Member Functions inherited from Part::GeometryPersistenceExtension | |
void | Restore (Base::XMLReader &) |
void | Save (Base::Writer &) const |
virtual | ~GeometryPersistenceExtension ()=default |
Public Member Functions inherited from Part::GeometryExtension | |
virtual std::unique_ptr< GeometryExtension > | copy (void) const =0 |
PyObject * | copyPyObject () const |
const std::string & | getName () const |
virtual PyObject * | getPyObject (void)=0 |
This method returns the Python wrapper for a C++ object. More... | |
virtual void | notifyAttachment (Part::Geometry *) |
void | setName (const std::string &str) |
virtual | ~GeometryExtension ()=default |
Public Member Functions inherited from Base::BaseClass | |
BaseClass () | |
Construction. More... | |
BaseClass (const BaseClass &)=default | |
virtual PyObject * | getPyObject () |
This method returns the Python wrapper for a C++ object. More... | |
virtual Type | getTypeId () const |
bool | isDerivedFrom (const Type type) const |
BaseClass & | operator= (const BaseClass &)=default |
virtual void | setPyObject (PyObject *) |
virtual | ~BaseClass () |
Destruction. More... | |
Static Public Member Functions | |
static bool | getFlagsFromName (std::string str, ExternalGeometryExtension::Flag &flag) |
Static Public Member Functions inherited from Base::BaseClass | |
static void * | create () |
static Type | getClassTypeId () |
static void | init () |
Static Public Attributes | |
static constexpr std::array< const char *, NumFlags > | flag2str {{ "Defining", "Frozen", "Detached","Missing", "Sync" }} |
Protected Member Functions | |
virtual void | copyAttributes (Part::GeometryExtension *cpy) const override |
virtual void | restoreAttributes (Base::XMLReader &reader) override |
virtual void | saveAttributes (Base::Writer &writer) const override |
virtual void | restoreAttributes (Base::XMLReader &) |
virtual void | saveAttributes (Base::Writer &writer) const |
Protected Member Functions inherited from Part::GeometryExtension | |
virtual void | copyAttributes (Part::GeometryExtension *cpy) const |
GeometryExtension () | |
GeometryExtension (const GeometryExtension &obj)=default | |
GeometryExtension & | operator= (const GeometryExtension &obj)=default |
Additional Inherited Members | |
Static Protected Member Functions inherited from Base::BaseClass | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
|
default |
Referenced by getPyObject().
|
overridevirtualdefault |
|
overridevirtual |
Implements Part::GeometryExtension.
References copyAttributes(), and draftfunctions.move::move().
|
overrideprotectedvirtual |
Reimplemented from Part::GeometryExtension.
References Part::GeometryExtension::copyAttributes().
Referenced by copy().
|
overridevirtual |
Implements Sketcher::ISketchExternalGeometryExtension.
|
static |
References flag2str.
|
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 ExternalGeometryExtension().
|
overridevirtual |
Implements Sketcher::ISketchExternalGeometryExtension.
|
overridevirtual |
Implements Sketcher::ISketchExternalGeometryExtension.
|
overrideprotectedvirtual |
Reimplemented from Part::GeometryPersistenceExtension.
References Base::XMLReader::getAttribute(), and Part::GeometryPersistenceExtension::restoreAttributes().
|
overrideprotectedvirtual |
Reimplemented from Part::GeometryPersistenceExtension.
References Part::GeometryPersistenceExtension::saveAttributes(), and Base::Writer::Stream().
|
overridevirtual |
Implements Sketcher::ISketchExternalGeometryExtension.
|
overridevirtual |
Implements Sketcher::ISketchExternalGeometryExtension.
Implements Sketcher::ISketchExternalGeometryExtension.
|
staticconstexpr |
Referenced by getFlagsFromName().