#include <ViewProviderMeasureDistance.h>
Public Member Functions | |
void | attach (App::DocumentObject *) |
std::vector< std::string > | getDisplayModes (void) const |
Return a list of all possible modes. | |
virtual Base::Type | getTypeId (void) const |
void | setDisplayMode (const char *ModeName) |
set the display mode | |
void | updateData (const App::Property *) |
Gets called if some of the property hade bin changed. | |
ViewProviderMeasureDistance (void) | |
Constructor. | |
virtual | ~ViewProviderMeasureDistance () |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
static void | measureDistanceCallback (void *ud, SoEventCallback *n) |
Public Attributes | |
App::PropertyFloat | DistFactor |
App::PropertyInteger | FontSize |
App::PropertyColor | LineColor |
App::PropertyBool | Mirror |
App::PropertyColor | TextColor |
Protected Member Functions | |
virtual const App::PropertyData & | getPropertyData (void) const |
void | onChanged (const App::Property *prop) |
Gets called by the container whenever a property has been changed. | |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
Definition at line 75 of file ViewProviderMeasureDistance.h.
ViewProviderMeasureDistance::ViewProviderMeasureDistance | ( | void | ) |
Constructor.
Definition at line 59 of file ViewProviderMeasureDistance.cpp.
References ADD_PROPERTY, and SketcherExample::f.
ViewProviderMeasureDistance::~ViewProviderMeasureDistance | ( | ) | [virtual] |
Definition at line 108 of file ViewProviderMeasureDistance.cpp.
void ViewProviderMeasureDistance::attach | ( | App::DocumentObject * | pcObject | ) | [virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 155 of file ViewProviderMeasureDistance.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), Gui::SoFCSelection::documentName, App::DocumentObject::getDocument(), App::Document::getName(), App::DocumentObject::getNameInDocument(), Gui::SoFCSelection::objectName, and Gui::SoFCSelection::subElementName.
void * Gui::ViewProviderMeasureDistance::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 56 of file ViewProviderMeasureDistance.cpp.
Base::Type Gui::ViewProviderMeasureDistance::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 56 of file ViewProviderMeasureDistance.cpp.
Referenced by updateData().
std::vector< std::string > ViewProviderMeasureDistance::getDisplayModes | ( | void | ) | const [virtual] |
Return a list of all possible modes.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 140 of file ViewProviderMeasureDistance.cpp.
const App::PropertyData & Gui::ViewProviderMeasureDistance::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 56 of file ViewProviderMeasureDistance.cpp.
const App::PropertyData * Gui::ViewProviderMeasureDistance::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 56 of file ViewProviderMeasureDistance.cpp.
Base::Type Gui::ViewProviderMeasureDistance::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 56 of file ViewProviderMeasureDistance.cpp.
void Gui::ViewProviderMeasureDistance::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 56 of file ViewProviderMeasureDistance.cpp.
Referenced by Gui::Application::initTypes().
void ViewProviderMeasureDistance::measureDistanceCallback | ( | void * | ud, | |
SoEventCallback * | n | |||
) | [static] |
Definition at line 315 of file ViewProviderMeasureDistance.cpp.
References Gui::PointMarker::addPoint(), Base::Console(), Gui::PointMarker::countPoints(), Gui::View3DInventorViewer::removeEventCallback(), and Gui::View3DInventorViewer::setEditing().
void ViewProviderMeasureDistance::onChanged | ( | const App::Property * | prop | ) | [protected, virtual] |
Gets called by the container whenever a property has been changed.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 119 of file ViewProviderMeasureDistance.cpp.
References App::Color::b, DistFactor, FontSize, App::Color::g, App::PropertyInteger::getValue(), App::PropertyColor::getValue(), LineColor, Mirror, App::Color::r, TextColor, and updateData().
void ViewProviderMeasureDistance::setDisplayMode | ( | const char * | ModeName | ) | [virtual] |
set the display mode
If you add new viewing modes in getDisplayModes() then you need to reimplement also seDisplaytMode() to handle these new modes by setting the appropriate display mode.
Reimplemented from Gui::ViewProvider.
Definition at line 148 of file ViewProviderMeasureDistance.cpp.
References Gui::ViewProvider::setDisplayMaskMode().
void ViewProviderMeasureDistance::updateData | ( | const App::Property * | ) | [virtual] |
Gets called if some of the property hade bin changed.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 194 of file ViewProviderMeasureDistance.cpp.
References DistFactor, SketcherExample::f, getClassTypeId(), App::Property::getName(), App::Property::getTypeId(), App::PropertyBool::getValue(), App::PropertyFloat::getValue(), Mirror, RobotExample::pos, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by onChanged().
Definition at line 88 of file ViewProviderMeasureDistance.h.
Referenced by onChanged(), and updateData().
Definition at line 87 of file ViewProviderMeasureDistance.h.
Referenced by onChanged().
Definition at line 86 of file ViewProviderMeasureDistance.h.
Referenced by onChanged().
Definition at line 89 of file ViewProviderMeasureDistance.h.
Referenced by onChanged(), and updateData().
Definition at line 85 of file ViewProviderMeasureDistance.h.
Referenced by onChanged().