#include <ViewProviderAnnotation.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. | |
ViewProviderAnnotation (void) | |
Constructor. | |
virtual | ~ViewProviderAnnotation () |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Public Attributes | |
App::PropertyString | FontName |
App::PropertyFloat | FontSize |
App::PropertyEnumeration | Justification |
App::PropertyFloat | LineSpacing |
App::PropertyAngle | Rotation |
App::PropertyEnumeration | RotationAxis |
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 43 of file ViewProviderAnnotation.h.
ViewProviderAnnotation::ViewProviderAnnotation | ( | void | ) |
Constructor.
Definition at line 67 of file ViewProviderAnnotation.cpp.
References ADD_PROPERTY, and SketcherExample::f.
ViewProviderAnnotation::~ViewProviderAnnotation | ( | ) | [virtual] |
Definition at line 100 of file ViewProviderAnnotation.cpp.
void ViewProviderAnnotation::attach | ( | App::DocumentObject * | f | ) | [virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 178 of file ViewProviderAnnotation.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), Gui::SoFCSelection::documentName, App::DocumentObject::getDocument(), App::Document::getName(), App::DocumentObject::getNameInDocument(), Gui::SoFCSelection::objectName, Gui::ViewProviderDocumentObject::pcObject, and Gui::SoFCSelection::subElementName.
void * Gui::ViewProviderAnnotation::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 64 of file ViewProviderAnnotation.cpp.
Base::Type Gui::ViewProviderAnnotation::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 64 of file ViewProviderAnnotation.cpp.
Referenced by updateData().
std::vector< std::string > ViewProviderAnnotation::getDisplayModes | ( | void | ) | const [virtual] |
Return a list of all possible modes.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 159 of file ViewProviderAnnotation.cpp.
const App::PropertyData & Gui::ViewProviderAnnotation::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 64 of file ViewProviderAnnotation.cpp.
const App::PropertyData * Gui::ViewProviderAnnotation::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 64 of file ViewProviderAnnotation.cpp.
Base::Type Gui::ViewProviderAnnotation::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 64 of file ViewProviderAnnotation.cpp.
void Gui::ViewProviderAnnotation::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 64 of file ViewProviderAnnotation.cpp.
Referenced by Gui::Application::initTypes().
void ViewProviderAnnotation::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 110 of file ViewProviderAnnotation.cpp.
References App::Color::b, draftlibs::dxfImportObjects::CENTER, FontName, FontSize, App::Color::g, App::PropertyString::getValue(), App::PropertyFloat::getValue(), App::PropertyInteger::getValue(), App::PropertyColor::getValue(), Justification, draftlibs::dxfImportObjects::LEFT, LineSpacing, M_PI, App::Color::r, draftlibs::dxfImportObjects::RIGHT, Rotation, RotationAxis, and TextColor.
void ViewProviderAnnotation::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 168 of file ViewProviderAnnotation.cpp.
References Gui::ViewProvider::setDisplayMaskMode().
void ViewProviderAnnotation::updateData | ( | const App::Property * | ) | [virtual] |
Gets called if some of the property hade bin changed.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 212 of file ViewProviderAnnotation.cpp.
References getClassTypeId(), App::Property::getName(), App::Property::getTypeId(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Definition at line 56 of file ViewProviderAnnotation.h.
Referenced by onChanged().
Definition at line 55 of file ViewProviderAnnotation.h.
Referenced by onChanged().
Definition at line 54 of file ViewProviderAnnotation.h.
Referenced by onChanged().
Definition at line 57 of file ViewProviderAnnotation.h.
Referenced by onChanged().
Definition at line 58 of file ViewProviderAnnotation.h.
Referenced by onChanged().
Definition at line 59 of file ViewProviderAnnotation.h.
Referenced by onChanged().
Definition at line 53 of file ViewProviderAnnotation.h.
Referenced by onChanged().