#include <GeometryFacade.h>

Public Member Functions

Part::Geometryclone (void) const
 
Part::Geometrycopy (void) const
 
void deleteExtension (Base::Type type)
 
void deleteExtension (std::string name)
 
bool getBlocked () const
 
bool getConstruction (void) const
 
std::weak_ptr< const Part::GeometryExtensiongetExtension (Base::Type type) const
 
std::weak_ptr< const Part::GeometryExtensiongetExtension (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 PyObjectgetPyObject (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)
 
- Public Member Functions inherited from Base::BaseClass
 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 GeometryFacadegetFacade (const Part::Geometry *geometry)
 
static std::unique_ptr< GeometryFacadegetFacade (Part::Geometry *geometry)
 
static bool isInternalType (const Part::Geometry *geometry, InternalType::InternalType type)
 
static void setConstruction (Part::Geometry *geometry, bool construction)
 
- Static Public Member Functions inherited from Base::BaseClass
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 Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr)
 

Constructor & Destructor Documentation

◆ GeometryFacade() [1/2]

GeometryFacade::GeometryFacade ( const Part::Geometry geometry)
protected

◆ GeometryFacade() [2/2]

GeometryFacade::GeometryFacade ( )
protected

Referenced by getFacade(), and getPyObject().

Member Function Documentation

◆ clone()

◆ copy()

Part::Geometry* Sketcher::GeometryFacade::copy ( void  ) const

◆ copyId()

void GeometryFacade::copyId ( const Part::Geometry src,
Part::Geometry dst 
)
static

References getFacade().

◆ deleteExtension() [1/2]

void Sketcher::GeometryFacade::deleteExtension ( Base::Type  type)

◆ deleteExtension() [2/2]

void Sketcher::GeometryFacade::deleteExtension ( std::string  name)

◆ ensureSketchGeometryExtension()

void GeometryFacade::ensureSketchGeometryExtension ( Part::Geometry geometry)
static

◆ getBlocked() [1/2]

bool Sketcher::GeometryFacade::getBlocked ( ) const

◆ getBlocked() [2/2]

bool GeometryFacade::getBlocked ( const Part::Geometry geometry)
static

References getFacade().

◆ getConstruction() [1/2]

bool GeometryFacade::getConstruction ( const Part::Geometry geometry)
static

References getFacade().

◆ getConstruction() [2/2]

◆ 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

◆ getFacade() [1/2]

std::unique_ptr< const GeometryFacade > GeometryFacade::getFacade ( const Part::Geometry geometry)
static

References GeometryFacade().

◆ getFacade() [2/2]

◆ getGeometry() [1/2]

template<typename GeometryT = Part::Geometry, typename = typename std::enable_if< std::is_base_of<Part::Geometry, typename std::decay<GeometryT>::type>::value >::type>
GeometryT* Sketcher::GeometryFacade::getGeometry ( )

◆ getGeometry() [2/2]

template<typename GeometryT = Part::Geometry, typename = typename std::enable_if< std::is_base_of<Part::Geometry, typename std::decay<GeometryT>::type>::value >::type>
GeometryT* Sketcher::GeometryFacade::getGeometry ( ) const

◆ getId()

virtual long Sketcher::GeometryFacade::getId ( ) const
overridevirtual

◆ getInternalType()

virtual InternalType::InternalType Sketcher::GeometryFacade::getInternalType ( ) const
overridevirtual

◆ getPyObject()

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

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()

bool GeometryFacade::isInternalType ( const Part::Geometry geometry,
InternalType::InternalType  type 
)
static

References getFacade().

◆ mirror() [1/2]

void Sketcher::GeometryFacade::mirror ( Base::Vector3d  point)

◆ mirror() [2/2]

void Sketcher::GeometryFacade::mirror ( Base::Vector3d  point,
Base::Vector3d  dir 
)

◆ rotate()

◆ scale()

◆ setBlocked()

void Sketcher::GeometryFacade::setBlocked ( bool  status = true)

◆ setConstruction() [1/2]

void Sketcher::GeometryFacade::setConstruction ( bool  construction)

◆ setConstruction() [2/2]

◆ setExtension()

void Sketcher::GeometryFacade::setExtension ( std::unique_ptr< Part::GeometryExtension > &&  geo)

◆ setGeometry()

void GeometryFacade::setGeometry ( Part::Geometry geometry)

◆ setGeometryMode()

virtual void Sketcher::GeometryFacade::setGeometryMode ( int  flag,
bool  v = true 
)
overridevirtual

◆ setId()

virtual void Sketcher::GeometryFacade::setId ( long  id)
overridevirtual

◆ setInternalType()

virtual void Sketcher::GeometryFacade::setInternalType ( InternalType::InternalType  type)
overridevirtual

◆ testGeometryMode()

virtual bool Sketcher::GeometryFacade::testGeometryMode ( int  flag) const
overridevirtual

◆ toShape()

TopoDS_Shape Sketcher::GeometryFacade::toShape ( ) const

◆ transform()

◆ translate()

void Sketcher::GeometryFacade::translate ( Base::Vector3d  vec)

Friends And Related Function Documentation

◆ GeometryFacadePy

friend class 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