#include <GeometryFacade.h>
Public Member Functions | |
Part::Geometry * | clone (void) const |
Part::Geometry * | copy (void) const |
void | deleteExtension (Base::Type type) |
void | deleteExtension (std::string name) |
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 (std::string name) const |
const std::string & | getExtensionName () const |
std::vector< std::weak_ptr< const Part::GeometryExtension > > | getExtensions () 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 long | getId () const override |
virtual InternalType::InternalType | getInternalType () const override |
virtual PyObject * | getPyObject (void) override |
This method returns the Python wrapper for a C++ object. More... | |
boost::uuids::uuid | getTag () const |
const | Handle (Geom_Geometry) &handle() const |
bool | hasExtension (Base::Type type) const |
bool | hasExtension (std::string name) const |
bool | isGeoType (const Base::Type &type) const |
bool | isInternalAligned () const |
void | mirror (Base::Vector3d point) |
void | mirror (Base::Vector3d point, Base::Vector3d dir) |
void | rotate (Base::Placement plm) |
void | scale (Base::Vector3d vec, double scale) |
void | setBlocked (bool status=true) |
void | setConstruction (bool construction) |
void | setExtension (std::unique_ptr< Part::GeometryExtension > &&geo) |
void | setGeometry (Part::Geometry *geometry) |
virtual void | setGeometryMode (int flag, bool v=true) override |
virtual void | setId (long id) override |
virtual void | setInternalType (InternalType::InternalType type) override |
virtual bool | testGeometryMode (int flag) const override |
TopoDS_Shape | toShape () const |
void | transform (Base::Matrix4D mat) |
void | translate (Base::Vector3d vec) |
![]() | |
BaseClass () | |
Construction. More... | |
virtual Type | getTypeId (void) const |
bool | isDerivedFrom (const Type type) const |
virtual void | setPyObject (PyObject *) |
virtual | ~BaseClass () |
Destruction. More... | |
Static Public Member Functions | |
static void | copyId (const Part::Geometry *src, Part::Geometry *dst) |
static void | ensureSketchGeometryExtension (Part::Geometry *geometry) |
static bool | getBlocked (const Part::Geometry *geometry) |
static bool | getConstruction (const Part::Geometry *geometry) |
static std::unique_ptr< const GeometryFacade > | getFacade (const Part::Geometry *geometry) |
static std::unique_ptr< GeometryFacade > | getFacade (Part::Geometry *geometry) |
static bool | isInternalType (const Part::Geometry *geometry, InternalType::InternalType type) |
static void | setConstruction (Part::Geometry *geometry, bool construction) |
![]() | |
static void * | create (void) |
static Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions | |
GeometryFacade () | |
GeometryFacade (const Part::Geometry *geometry) | |
Friends | |
class | GeometryFacadePy |
Additional Inherited Members | |
![]() | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
Constructor & Destructor Documentation
◆ GeometryFacade() [1/2]
|
protected |
◆ GeometryFacade() [2/2]
|
protected |
Referenced by getFacade(), and getPyObject().
Member Function Documentation
◆ clone()
Part::Geometry* Sketcher::GeometryFacade::clone | ( | void | ) | const |
References Part::Geometry::clone().
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchComponent.Component::execute(), ArchCurtainWall.CurtainWall::execute(), ArchTruss.Truss::execute(), Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction::integrated(), and PathTests.TestPathHelix.TestPathHelix::test04().
◆ copy()
Part::Geometry* Sketcher::GeometryFacade::copy | ( | void | ) | const |
References Part::Geometry::copy().
◆ copyId()
|
static |
References getFacade().
◆ deleteExtension() [1/2]
void Sketcher::GeometryFacade::deleteExtension | ( | Base::Type | type | ) |
◆ deleteExtension() [2/2]
void Sketcher::GeometryFacade::deleteExtension | ( | std::string | name | ) |
◆ ensureSketchGeometryExtension()
|
static |
References Base::BaseClass::getClassTypeId().
◆ getBlocked() [1/2]
bool Sketcher::GeometryFacade::getBlocked | ( | ) | const |
References Sketcher::GeometryMode::Blocked.
Referenced by Sketcher::SketchObject::fillet().
◆ getBlocked() [2/2]
|
static |
References getFacade().
◆ getConstruction() [1/2]
|
static |
References getFacade().
◆ getConstruction() [2/2]
bool Sketcher::GeometryFacade::getConstruction | ( | void | ) | const |
◆ getExtension() [1/2]
std::weak_ptr<const Part::GeometryExtension> Sketcher::GeometryFacade::getExtension | ( | Base::Type | type | ) | const |
◆ getExtension() [2/2]
std::weak_ptr<const Part::GeometryExtension> Sketcher::GeometryFacade::getExtension | ( | std::string | name | ) | const |
◆ getExtensionName()
const std::string& Sketcher::GeometryFacade::getExtensionName | ( | ) | const |
◆ getExtensions()
std::vector<std::weak_ptr<const Part::GeometryExtension> > Sketcher::GeometryFacade::getExtensions | ( | ) | const |
Referenced by Sketcher::GeometryFacadePy::getExtensions().
◆ getFacade() [1/2]
|
static |
References GeometryFacade().
◆ getFacade() [2/2]
|
static |
References GeometryFacade().
Referenced by Sketcher::SketchObject::addCopy(), Sketcher::Sketch::addGeometry(), Sketcher::SketchObject::addSymmetric(), copyId(), Sketcher::SketchAnalysis::detectDegeneratedGeometries(), Sketcher::SketchAnalysis::detectMissingPointOnPointConstraints(), Sketcher::Sketch::extractGeometry(), getBlocked(), getConstruction(), Sketcher::SketchObject::getGeometryFacade(), Sketcher::SketchObjectPy::getGeometryFacadeList(), Sketcher::SketchObject::getGeometryId(), isInternalType(), Sketcher::SketchObject::migrateSketch(), Sketcher::SketchAnalysis::removeDegeneratedGeometries(), setConstruction(), Sketcher::SketchObject::setGeometryId(), Sketcher::SketchObject::synchroniseGeometryState(), Sketcher::SketchObject::toggleConstruction(), Sketcher::Sketch::toShape(), and SketcherGui::ViewProviderSketch::updateColor().
◆ getGeometry() [1/2]
GeometryT* Sketcher::GeometryFacade::getGeometry | ( | ) |
Referenced by Sketcher::SketchObjectPy::setGeometryFacadeList().
◆ getGeometry() [2/2]
GeometryT* Sketcher::GeometryFacade::getGeometry | ( | ) | const |
◆ getId()
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
Referenced by Sketcher::GeometryFacadePy::representation().
◆ getInternalType()
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
Referenced by Sketcher::GeometryFacadePy::getInternalType().
◆ getPyObject()
|
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 GeometryFacade(), and GeometryFacadePy.
◆ getTag()
boost::uuids::uuid Sketcher::GeometryFacade::getTag | ( | void | ) | const |
◆ Handle()
const Sketcher::GeometryFacade::Handle | ( | Geom_Geometry | ) | const & |
◆ hasExtension() [1/2]
bool Sketcher::GeometryFacade::hasExtension | ( | Base::Type | type | ) | const |
◆ hasExtension() [2/2]
bool Sketcher::GeometryFacade::hasExtension | ( | std::string | name | ) | const |
◆ isGeoType()
bool Sketcher::GeometryFacade::isGeoType | ( | const Base::Type & | type | ) | const |
◆ isInternalAligned()
bool Sketcher::GeometryFacade::isInternalAligned | ( | ) | const |
◆ isInternalType()
|
static |
References getFacade().
◆ mirror() [1/2]
void Sketcher::GeometryFacade::mirror | ( | Base::Vector3d | point | ) |
Referenced by Sketcher::GeometryFacadePy::mirror().
◆ mirror() [2/2]
void Sketcher::GeometryFacade::mirror | ( | Base::Vector3d | point, |
Base::Vector3d | dir | ||
) |
◆ rotate()
void Sketcher::GeometryFacade::rotate | ( | Base::Placement | plm | ) |
Referenced by PathScripts.PathDressupLeadInOut.ObjectDressup::getLeadEnd(), PathScripts.PathDressupLeadInOut.ObjectDressup::getLeadStart(), draftguitools.gui_rotate.Rotate::numericRadius(), Sketcher::GeometryFacadePy::rotate(), ArchSectionPlane.SectionPlaneTaskPanel::rotateX(), ArchSectionPlane.SectionPlaneTaskPanel::rotateY(), and ArchSectionPlane.SectionPlaneTaskPanel::rotateZ().
◆ scale()
void Sketcher::GeometryFacade::scale | ( | Base::Vector3d | vec, |
double | scale | ||
) |
References draftgeoutils.general::vec().
Referenced by Sketcher::GeometryFacadePy::scale(), automotive_design.cartesian_transformation_operator::scl(), config_control_design.cartesian_transformation_operator::scl(), ifc2x3.ifccartesiantransformationoperator::scl(), and ifc4.ifccartesiantransformationoperator::scl().
◆ setBlocked()
void Sketcher::GeometryFacade::setBlocked | ( | bool | status = true | ) |
References Sketcher::GeometryMode::Blocked.
Referenced by Sketcher::GeometryFacadePy::setBlocked().
◆ setConstruction() [1/2]
void Sketcher::GeometryFacade::setConstruction | ( | bool | construction | ) |
References Sketcher::GeometryMode::Construction.
◆ setConstruction() [2/2]
|
static |
References getFacade().
Referenced by Sketcher::SketchObject::addCopy(), Sketcher::SketchObject::addGeometry(), Sketcher::SketchObject::carbonCopy(), Sketcher::SketchObject::exposeInternalGeometry(), Sketcher::SketchObject::migrateSketch(), Sketcher::SketchObject::rebuildExternalGeometry(), Sketcher::SketchObject::setConstruction(), and Sketcher::GeometryFacadePy::setConstruction().
◆ setExtension()
void Sketcher::GeometryFacade::setExtension | ( | std::unique_ptr< Part::GeometryExtension > && | geo | ) |
References draftfunctions.move::move().
Referenced by Sketcher::GeometryFacadePy::setExtension().
◆ setGeometry()
void GeometryFacade::setGeometry | ( | Part::Geometry * | geometry | ) |
Referenced by Sketcher::GeometryFacadePy::PyInit(), and Sketcher::GeometryFacadePy::setGeometry().
◆ setGeometryMode()
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
Referenced by Sketcher::GeometryFacadePy::setGeometryMode().
◆ setId()
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
Referenced by Sketcher::GeometryFacadePy::setId().
◆ setInternalType()
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
Referenced by Sketcher::GeometryFacadePy::setInternalType().
◆ testGeometryMode()
|
overridevirtual |
Implements Sketcher::ISketchGeometryExtension.
◆ toShape()
TopoDS_Shape Sketcher::GeometryFacade::toShape | ( | ) | const |
◆ transform()
void Sketcher::GeometryFacade::transform | ( | Base::Matrix4D | mat | ) |
◆ translate()
void Sketcher::GeometryFacade::translate | ( | Base::Vector3d | vec | ) |
References draftgeoutils.general::vec().
Referenced by Sketcher::GeometryFacadePy::translate().
Friends And Related Function Documentation
◆ GeometryFacadePy
|
friend |
Referenced by getPyObject().
The documentation for this class was generated from the following files:
- Sources/FreeCAD/src/Mod/Sketcher/App/GeometryFacade.h
- Sources/FreeCAD/src/Mod/Sketcher/App/GeometryFacade.cpp