#include <ExternalGeometryFacade.h>
Public Member Functions | |
Part::Geometry * | clone (void) const |
Part::Geometry * | copy (void) const |
void | deleteExtension (Base::Type type) |
void | deleteExtension (const std::string &name) |
virtual size_t | flagSize () const override |
bool | getBlocked () const |
bool | getConstruction (void) const |
std::weak_ptr< const Part::GeometryExtension > | getExtension (Base::Type type) const |
std::weak_ptr< const Part::GeometryExtension > | getExtension (const std::string &name) const |
std::vector< std::weak_ptr< const Part::GeometryExtension > > | getExtensions () const |
const std::string & | getExternalExtensionName () const |
template<typename GeometryT = Part::Geometry, typename = typename std::enable_if< std::is_base_of<Part::Geometry, typename std::decay<GeometryT>::type>::value >::type> | |
GeometryT * | getGeometry () |
template<typename GeometryT = Part::Geometry, typename = typename std::enable_if< std::is_base_of<Part::Geometry, typename std::decay<GeometryT>::type>::value >::type> | |
GeometryT * | getGeometry () const |
virtual int | getGeometryLayerId () const override |
virtual long | getId () const override |
GeometryExtension Interface. More... | |
virtual InternalType::InternalType | getInternalType () 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 |
const std::string & | getSketchExtensionName () const |
boost::uuids::uuid | getTag () const |
const | Handle (Geom_Geometry) &handle() const |
bool | hasExtension (Base::Type type) const |
bool | hasExtension (const std::string &name) const |
virtual bool | isClear () const override |
void | mirror (const Base::Vector3d &point) |
void | mirror (const Base::Vector3d &point, Base::Vector3d dir) |
void | rotate (const Base::Placement &plm) |
void | scale (const Base::Vector3d &vec, double scale) |
void | setBlocked (bool status=true) |
void | setConstruction (bool construction) |
void | setExtension (std::unique_ptr< Part::GeometryExtension > &&geo) |
virtual void | setFlag (int flag, bool v=true) override |
void | setGeometry (Part::Geometry *geometry) |
virtual void | setGeometryLayerId (int geolayer) override |
virtual void | setGeometryMode (int flag, bool v=true) override |
virtual void | setId (long id) override |
virtual void | setInternalType (InternalType::InternalType type) override |
virtual void | setRef (const std::string &ref) override |
virtual bool | testFlag (int flag) const override |
External GeometryExtension Interface. More... | |
virtual bool | testGeometryMode (int flag) const override |
TopoDS_Shape | toShape () const |
Geometry Interface. More... | |
void | transform (const Base::Matrix4D &mat) |
void | translate (const Base::Vector3d &vec) |
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 void | copyId (const Part::Geometry *src, Part::Geometry *dst) |
static void | ensureSketchGeometryExtensions (Part::Geometry *geometry) |
static std::unique_ptr< const ExternalGeometryFacade > | getFacade (const Part::Geometry *geometry) |
static std::unique_ptr< ExternalGeometryFacade > | getFacade (Part::Geometry *geometry) |
Static Public Member Functions inherited from Base::BaseClass | |
static void * | create () |
static Type | getClassTypeId () |
static void | init () |
Friends | |
class | ExternalGeometryFacadePy |
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) |
Part::Geometry * Sketcher::ExternalGeometryFacade::clone | ( | void | ) | const |
References Part::Geometry::clone().
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchStructure.CommandStructuralSystem::Activated(), ArchComponent.Component::execute(), ArchCurtainWall.CurtainWall::execute(), ArchTruss.Truss::execute(), Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction::integrated(), and PathTests.TestPathHelix.TestPathHelix::test04().
Part::Geometry * Sketcher::ExternalGeometryFacade::copy | ( | void | ) | const |
References Part::Geometry::copy().
|
static |
References getFacade().
void Sketcher::ExternalGeometryFacade::deleteExtension | ( | Base::Type | type | ) |
void Sketcher::ExternalGeometryFacade::deleteExtension | ( | const std::string & | name | ) |
|
static |
References Base::BaseClass::getClassTypeId().
|
overridevirtual |
Implements Sketcher::ISketchExternalGeometryExtension.
bool Sketcher::ExternalGeometryFacade::getBlocked | ( | ) | const |
References Sketcher::GeometryMode::Blocked.
bool Sketcher::ExternalGeometryFacade::getConstruction | ( | void | ) | const |
References Sketcher::GeometryMode::Construction.
std::weak_ptr< const Part::GeometryExtension > Sketcher::ExternalGeometryFacade::getExtension | ( | Base::Type | type | ) | const |
std::weak_ptr< const Part::GeometryExtension > Sketcher::ExternalGeometryFacade::getExtension | ( | const std::string & | name | ) | const |
std::vector< std::weak_ptr< const Part::GeometryExtension > > Sketcher::ExternalGeometryFacade::getExtensions | ( | ) | const |
const std::string & Sketcher::ExternalGeometryFacade::getExternalExtensionName | ( | ) | const |
|
static |
|
static |
Referenced by copyId().
GeometryT * Sketcher::ExternalGeometryFacade::getGeometry | ( | ) |
GeometryT * Sketcher::ExternalGeometryFacade::getGeometry | ( | ) | const |
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
|
overridevirtual |
GeometryExtension Interface.
Implements Sketcher::ISketchGeometryExtension.
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
|
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'.
Reimplemented from Base::BaseClass.
References ExternalGeometryFacadePy.
|
overridevirtual |
Implements Sketcher::ISketchExternalGeometryExtension.
const std::string & Sketcher::ExternalGeometryFacade::getSketchExtensionName | ( | ) | const |
boost::uuids::uuid Sketcher::ExternalGeometryFacade::getTag | ( | ) | const |
const Sketcher::ExternalGeometryFacade::Handle | ( | Geom_Geometry | ) | const & |
bool Sketcher::ExternalGeometryFacade::hasExtension | ( | Base::Type | type | ) | const |
bool Sketcher::ExternalGeometryFacade::hasExtension | ( | const std::string & | name | ) | const |
|
overridevirtual |
Implements Sketcher::ISketchExternalGeometryExtension.
void Sketcher::ExternalGeometryFacade::mirror | ( | const Base::Vector3d & | point | ) |
void Sketcher::ExternalGeometryFacade::mirror | ( | const Base::Vector3d & | point, |
Base::Vector3d | dir | ||
) |
void Sketcher::ExternalGeometryFacade::rotate | ( | const Base::Placement & | plm | ) |
Referenced by PathScripts.PathDressupLeadInOut.ObjectDressup::getLeadEnd(), PathScripts.PathDressupLeadInOut.ObjectDressup::getLeadStart(), draftguitools.gui_rotate.Rotate::numericRadius(), ArchSectionPlane.SectionPlaneTaskPanel::rotateX(), ArchSectionPlane.SectionPlaneTaskPanel::rotateY(), and ArchSectionPlane.SectionPlaneTaskPanel::rotateZ().
void Sketcher::ExternalGeometryFacade::scale | ( | const Base::Vector3d & | vec, |
double | scale | ||
) |
void Sketcher::ExternalGeometryFacade::setBlocked | ( | bool | status = true | ) |
References Sketcher::GeometryMode::Blocked.
void Sketcher::ExternalGeometryFacade::setConstruction | ( | bool | construction | ) |
References Sketcher::GeometryMode::Construction.
void Sketcher::ExternalGeometryFacade::setExtension | ( | std::unique_ptr< Part::GeometryExtension > && | geo | ) |
References draftfunctions.move::move().
Implements Sketcher::ISketchExternalGeometryExtension.
void ExternalGeometryFacade::setGeometry | ( | Part::Geometry * | geometry | ) |
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
|
overridevirtual |
Implements Sketcher::ISketchExternalGeometryExtension.
External GeometryExtension Interface.
Implements Sketcher::ISketchExternalGeometryExtension.
Implements Sketcher::ISketchGeometryExtension.
TopoDS_Shape Sketcher::ExternalGeometryFacade::toShape | ( | ) | const |
Geometry Interface.
void Sketcher::ExternalGeometryFacade::transform | ( | const Base::Matrix4D & | mat | ) |
void Sketcher::ExternalGeometryFacade::translate | ( | const Base::Vector3d & | vec | ) |
References draftgeoutils.general::vec().
|
friend |
Referenced by getPyObject().