#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 ¶m=Base::Vector3d(0, 0, 0)) const |
void | clear () |
Base::Vector3d | delta () const |
virtual unsigned int | getMemSize (void) const |
virtual PyObject * | getPyObject (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()
double Measurement::angle | ( | const Base::Vector3d & | param = Base::Vector3d(0,0,0) | ) | const |
References Base::Console(), Measure::Edges, Base::ConsoleSingleton::Error(), and Measure::Invalid.
Referenced by PathScripts.PathDressupDogbone.Bone::adaptiveLength(), Measure::MeasurementPy::angle(), PathScripts.PathDressupDogbone.Bone::corner(), PathScripts.PathDressupDogbone.Bone::distance(), and TechDraw::DrawViewDimension::getDimValue().
◆ clear()
void Measurement::clear | ( | ) |
◆ delta()
Base::Vector3d Measurement::delta | ( | ) | const |
◆ getMemSize()
|
virtual |
◆ getPyObject()
|
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()
|
protected |
References Part::Feature::getShape().
◆ getType()
MeasureType Measurement::getType | ( | ) |
◆ has3DReferences()
bool Measurement::has3DReferences | ( | ) |
Referenced by TechDraw::DrawViewDimension::getDimValue(), and TechDraw::DrawViewDimension::onChanged().
◆ length()
double Measurement::length | ( | ) | const |
◆ massCenter()
Base::Vector3d Measurement::massCenter | ( | ) | const |
References Base::Console(), Base::ConsoleSingleton::Error(), Measure::Invalid, and Measure::Volumes.
◆ radius()
double Measurement::radius | ( | ) | const |
References Base::Console(), Measure::Edges, and Base::ConsoleSingleton::Error().
Referenced by TechDraw::DrawViewDimension::getDimValue(), and Measure::MeasurementPy::radius().
Member Data Documentation
◆ measureType
|
protected |
◆ 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