#include <Measurement.h>

Public Member Functions

int addReference3D (App::DocumentObject *obj, const char *subName)
 add a 3D reference (obj+sub) to end of list More...
 
int addReference3D (App::DocumentObject *obj, const std::string &subName)
 Add a reference. More...
 
double angle (const Base::Vector3d &param=Base::Vector3d(0, 0, 0)) const
 
void clear ()
 
Base::Vector3d delta () const
 
virtual unsigned int getMemSize (void) const
 
virtual PyObjectgetPyObject (void)
 This method returns the Python wrapper for a C++ object. More...
 
MeasureType getType ()
 
bool has3DReferences ()
 
double length () const
 
Base::Vector3d massCenter () const
 
 Measurement ()
 
double radius () const
 
 ~Measurement ()
 
- 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...
 

Public Attributes

App::PropertyLinkSubList References3D
 

Protected Member Functions

TopoDS_Shape getShape (App::DocumentObject *obj, const char *subName) const
 

Protected Attributes

MeasureType measureType
 
Py::Object PythonObject
 

Additional Inherited Members

- Static Public Member Functions inherited from Base::BaseClass
static void * create (void)
 
static Type getClassTypeId (void)
 
static void init (void)
 
- 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

◆ Measurement()

Measurement::Measurement ( )

References App::Global, and Measure::Invalid.

◆ ~Measurement()

Measurement::~Measurement ( )

Member Function Documentation

◆ addReference3D() [1/2]

int Measurement::addReference3D ( App::DocumentObject obj,
const char *  subName 
)

add a 3D reference (obj+sub) to end of list

◆ addReference3D() [2/2]

int Measurement::addReference3D ( App::DocumentObject obj,
const std::string &  subName 
)

Add a reference.

Referenced by TechDraw::DrawViewDimension::setAll3DMeasurement().

◆ angle()

◆ clear()

◆ delta()

◆ getMemSize()

unsigned int Measurement::getMemSize ( void  ) const
virtual

◆ getPyObject()

PyObject * Measurement::getPyObject ( void  )
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.

◆ getShape()

TopoDS_Shape Measurement::getShape ( App::DocumentObject obj,
const char *  subName 
) const
protected

◆ getType()

◆ has3DReferences()

◆ length()

◆ massCenter()

◆ radius()

Member Data Documentation

◆ measureType

MeasureType Measure::Measurement::measureType
protected

◆ PythonObject

Py::Object Measure::Measurement::PythonObject
protected

◆ References3D

App::PropertyLinkSubList Measure::Measurement::References3D

The documentation for this class was generated from the following files:
  • src/Mod/Measure/App/Measurement.h
  • src/Mod/Measure/App/Measurement.cpp