#include <GeometryExtension.h>
Public Member Functions | |
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... | |
Protected Member Functions | |
virtual void | copyAttributes (Part::GeometryExtension *cpy) const |
GeometryExtension () | |
GeometryExtension (const GeometryExtension &obj)=default | |
GeometryExtension & | operator= (const GeometryExtension &obj)=default |
Additional Inherited Members | |
Static Public Member Functions inherited from Base::BaseClass | |
static void * | create () |
static Type | getClassTypeId () |
static void | init () |
Static Protected Member Functions inherited from Base::BaseClass | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
|
virtualdefault |
|
protected |
|
protecteddefault |
|
pure virtual |
|
protectedvirtual |
Reimplemented in Part::GeometryDefaultExtension< T >, Part::GeometryMigrationExtension, Sketcher::ExternalGeometryExtension, Sketcher::SketchGeometryExtension, Sketcher::SolverGeometryExtension, and SketcherGui::ViewProviderSketchGeometryExtension.
References getName(), and setName().
Referenced by Part::GeometryDefaultExtension< T >::copyAttributes(), Part::GeometryMigrationExtension::copyAttributes(), Sketcher::ExternalGeometryExtension::copyAttributes(), Sketcher::SketchGeometryExtension::copyAttributes(), Sketcher::SolverGeometryExtension::copyAttributes(), and SketcherGui::ViewProviderSketchGeometryExtension::copyAttributes().
PyObject * GeometryExtension::copyPyObject | ( | ) | const |
References copy(), and getPyObject().
const std::string & Part::GeometryExtension::getName | ( | void | ) | const |
Referenced by copyAttributes(), and Part::GeometryPersistenceExtension::saveAttributes().
|
pure virtual |
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'.
Reimplemented from Base::BaseClass.
Implemented in Part::GeometryDefaultExtension< T >, Part::GeometryDefaultExtension< T >, Part::GeometryDefaultExtension< T >, Part::GeometryDefaultExtension< T >, Part::GeometryDefaultExtension< T >, Part::GeometryMigrationExtension, Sketcher::ExternalGeometryExtension, Sketcher::SketchGeometryExtension, Sketcher::SolverGeometryExtension, and SketcherGui::ViewProviderSketchGeometryExtension.
Referenced by copyPyObject().
|
virtual |
Reimplemented in Sketcher::SolverGeometryExtension.
|
protecteddefault |
void Part::GeometryExtension::setName | ( | const std::string & | str | ) |
Referenced by copyAttributes(), and Part::GeometryDefaultExtension< T >::GeometryDefaultExtension().