#include <MeasureDistance.h>
Public Member Functions | |
virtual DocumentObjectExecReturn * | execute (void) |
recalculate the object | |
const char * | getViewProviderName (void) const |
returns the type name of the ViewProvider | |
MeasureDistance (void) | |
Constructor. | |
virtual | ~MeasureDistance () |
Public Attributes | |
App::PropertyDistance | Distance |
App::PropertyVector | P1 |
App::PropertyVector | P2 |
Protected Member Functions | |
virtual void | onChanged (const Property *prop) |
get called by the container when a property was changed |
Definition at line 35 of file MeasureDistance.h.
MeasureDistance::MeasureDistance | ( | void | ) |
Constructor.
Definition at line 36 of file MeasureDistance.cpp.
References ADD_PROPERTY_TYPE, Sketcher::Distance, SketcherExample::f, App::Prop_None, App::Prop_Output, and App::Prop_ReadOnly.
MeasureDistance::~MeasureDistance | ( | ) | [virtual] |
Definition at line 45 of file MeasureDistance.cpp.
DocumentObjectExecReturn * MeasureDistance::execute | ( | void | ) | [virtual] |
recalculate the object
Reimplemented from App::DocumentObject.
Definition at line 49 of file MeasureDistance.cpp.
References Base::Distance(), Distance, App::PropertyVector::getValue(), P1, P2, App::PropertyFloat::setValue(), and App::DocumentObject::StdReturn.
const char* App::MeasureDistance::getViewProviderName | ( | void | ) | const [inline, virtual] |
returns the type name of the ViewProvider
Reimplemented from App::DocumentObject.
Definition at line 52 of file MeasureDistance.h.
void MeasureDistance::onChanged | ( | const Property * | prop | ) | [protected, virtual] |
get called by the container when a property was changed
Reimplemented from App::DocumentObject.
Definition at line 55 of file MeasureDistance.cpp.
References App::DocumentObject::isRestoring(), P1, P2, and App::DocumentObject::recompute().
Definition at line 46 of file MeasureDistance.h.
Referenced by Gui::PointMarker::customEvent(), and execute().
Definition at line 44 of file MeasureDistance.h.
Referenced by Gui::PointMarker::customEvent(), execute(), and onChanged().
Definition at line 45 of file MeasureDistance.h.
Referenced by Gui::PointMarker::customEvent(), execute(), and onChanged().