#include <ViewProviderMeasureDistance.h>
Public Member Functions | |
void | addPoint (const SbVec3f &) |
int | countPoints () const |
PointMarker (View3DInventorViewer *view) | |
~PointMarker () | |
Protected Member Functions | |
void | customEvent (QEvent *e) |
Definition at line 44 of file ViewProviderMeasureDistance.h.
PointMarker::PointMarker | ( | View3DInventorViewer * | view | ) |
Definition at line 248 of file ViewProviderMeasureDistance.cpp.
References Gui::View3DInventorViewer::addViewProvider().
PointMarker::~PointMarker | ( | ) |
Definition at line 254 of file ViewProviderMeasureDistance.cpp.
References Gui::View3DInventorViewer::removeViewProvider().
void PointMarker::addPoint | ( | const SbVec3f & | pt | ) |
Definition at line 260 of file ViewProviderMeasureDistance.cpp.
References countPoints(), Gui::ViewProviderPointMarker::pCoords, and Gui::ViewProviderPointMarker::pMarker.
Referenced by Gui::ViewProviderMeasureDistance::measureDistanceCallback().
int PointMarker::countPoints | ( | ) | const |
Definition at line 267 of file ViewProviderMeasureDistance.cpp.
References Gui::ViewProviderPointMarker::pCoords.
Referenced by addPoint(), and Gui::ViewProviderMeasureDistance::measureDistanceCallback().
void PointMarker::customEvent | ( | QEvent * | e | ) | [protected] |
Definition at line 272 of file ViewProviderMeasureDistance.cpp.
References Gui::Application::activeDocument(), App::Document::addObject(), App::MeasureDistance::Distance, App::PropertyContainer::getClassTypeId(), Gui::Document::getDocument(), App::PropertyFloat::getValue(), Gui::Application::Instance, App::DocumentObject::Label, App::MeasureDistance::P1, App::MeasureDistance::P2, Gui::ViewProviderPointMarker::pCoords, and App::PropertyVector::setValue().