Part::GeometryMigrationExtension Class Reference

#include <GeometryMigrationExtension.h>

Public Types

enum  MigrationType { }
 

Public Member Functions

virtual std::unique_ptr< Part::GeometryExtensioncopy (void) const override
 
 GeometryMigrationExtension ()
 
virtual bool getConstruction () const
 
virtual PyObjectgetPyObject (void) override
 This method returns the Python wrapper for a C++ object. More...
 
virtual void setConstruction (bool construction)
 
virtual void setMigrationType (int flag, bool v=true)
 
virtual bool testMigrationType (int flag) const
 
virtual ~GeometryMigrationExtension () override=default
 
- Public Member Functions inherited from Part::GeometryExtension
virtual std::unique_ptr< GeometryExtensioncopy (void) const =0
 
PyObjectcopyPyObject () const
 
const std::string & getName () const
 
virtual PyObjectgetPyObject (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 PyObjectgetPyObject ()
 This method returns the Python wrapper for a C++ object. More...
 
virtual Type getTypeId () const
 
bool isDerivedFrom (const Type type) const
 
BaseClassoperator= (const BaseClass &)=default
 
virtual void setPyObject (PyObject *)
 
virtual ~BaseClass ()
 Destruction. More...
 

Protected Member Functions

virtual void copyAttributes (Part::GeometryExtension *cpy) const override
 
- Protected Member Functions inherited from Part::GeometryExtension
virtual void copyAttributes (Part::GeometryExtension *cpy) const
 
 GeometryExtension ()
 
 GeometryExtension (const GeometryExtension &obj)=default
 
GeometryExtensionoperator= (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)
 

Member Enumeration Documentation

◆ MigrationType

Enumerator
Construction 
NumMigrationType 

Constructor & Destructor Documentation

◆ GeometryMigrationExtension()

GeometryMigrationExtension::GeometryMigrationExtension ( )

◆ ~GeometryMigrationExtension()

virtual Part::GeometryMigrationExtension::~GeometryMigrationExtension ( )
overridevirtualdefault

Member Function Documentation

◆ copy()

std::unique_ptr< Part::GeometryExtension > GeometryMigrationExtension::copy ( void  ) const
overridevirtual

◆ copyAttributes()

void GeometryMigrationExtension::copyAttributes ( Part::GeometryExtension cpy) const
overrideprotectedvirtual

Reimplemented from Part::GeometryExtension.

References Part::GeometryExtension::copyAttributes().

Referenced by copy().

◆ getConstruction()

virtual bool Part::GeometryMigrationExtension::getConstruction ( ) const
virtual

◆ getPyObject()

PyObject * GeometryMigrationExtension::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.

◆ setConstruction()

virtual void Part::GeometryMigrationExtension::setConstruction ( bool  construction)
virtual

◆ setMigrationType()

virtual void Part::GeometryMigrationExtension::setMigrationType ( int  flag,
bool  v = true 
)
virtual

◆ testMigrationType()

virtual bool Part::GeometryMigrationExtension::testMigrationType ( int  flag) const
virtual

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