#include <ViewProviderReference.h>
Public Member Functions | |
virtual void | attach (App::DocumentObject *) |
Attaches the document object to this view provider. | |
virtual std::vector< std::string > | getDisplayModes (void) const |
returns a list of all possible modes | |
virtual Base::Type | getTypeId (void) const |
void | reload () |
Update the view representation. | |
virtual void | setDisplayMode (const char *ModeName) |
set the display mode | |
virtual void | updateData (const App::Property *) |
Gets called if some of the property hade bin changed. | |
ViewProviderPartReference () | |
constructor | |
virtual | ~ViewProviderPartReference () |
destructor | |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions | |
virtual const App::PropertyData & | getPropertyData (void) const |
virtual void | onChanged (const App::Property *prop) |
get called by the container whenever a property has been changed | |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
Protected Attributes | |
SoGroup * | EdgeRoot |
SoGroup * | FaceRoot |
SoSwitch * | pcControlPoints |
SoMaterial * | pcLineMaterial |
SoDrawStyle * | pcLineStyle |
SoMaterial * | pcPointMaterial |
SoDrawStyle * | pcPointStyle |
SoShapeHints * | pShapeHints |
SoGroup * | VertexRoot |
Definition at line 52 of file ViewProviderReference.h.
ViewProviderPartReference::ViewProviderPartReference | ( | ) |
constructor
Definition at line 103 of file ViewProviderReference.cpp.
References App::Material::ambientColor, App::Material::diffuseColor, App::Material::emissiveColor, SketcherExample::f, App::Material::shininess, App::Material::specularColor, and App::Material::transparency.
ViewProviderPartReference::~ViewProviderPartReference | ( | ) | [virtual] |
destructor
Definition at line 157 of file ViewProviderReference.cpp.
void ViewProviderPartReference::attach | ( | App::DocumentObject * | pcObject | ) | [virtual] |
Attaches the document object to this view provider.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 227 of file ViewProviderReference.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), EdgeRoot, FaceRoot, pShapeHints, and VertexRoot.
void * PartGui::ViewProviderPartReference::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 98 of file ViewProviderReference.cpp.
Base::Type PartGui::ViewProviderPartReference::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 98 of file ViewProviderReference.cpp.
std::vector< std::string > ViewProviderPartReference::getDisplayModes | ( | void | ) | const [virtual] |
returns a list of all possible modes
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 270 of file ViewProviderReference.cpp.
const App::PropertyData & PartGui::ViewProviderPartReference::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 98 of file ViewProviderReference.cpp.
const App::PropertyData * PartGui::ViewProviderPartReference::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 98 of file ViewProviderReference.cpp.
Base::Type PartGui::ViewProviderPartReference::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 98 of file ViewProviderReference.cpp.
void PartGui::ViewProviderPartReference::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 98 of file ViewProviderReference.cpp.
void ViewProviderPartReference::onChanged | ( | const App::Property * | prop | ) | [protected, virtual] |
get called by the container whenever a property has been changed
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 169 of file ViewProviderReference.cpp.
void PartGui::ViewProviderPartReference::reload | ( | ) |
Update the view representation.
void ViewProviderPartReference::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 262 of file ViewProviderReference.cpp.
References Gui::ViewProvider::setDisplayMaskMode().
void ViewProviderPartReference::updateData | ( | const App::Property * | ) | [virtual] |
Gets called if some of the property hade bin changed.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 285 of file ViewProviderReference.cpp.
SoGroup* PartGui::ViewProviderPartReference::EdgeRoot [protected] |
Definition at line 88 of file ViewProviderReference.h.
Referenced by attach().
SoGroup* PartGui::ViewProviderPartReference::FaceRoot [protected] |
Definition at line 89 of file ViewProviderReference.h.
Referenced by attach().
SoSwitch* PartGui::ViewProviderPartReference::pcControlPoints [protected] |
Definition at line 95 of file ViewProviderReference.h.
SoMaterial* PartGui::ViewProviderPartReference::pcLineMaterial [protected] |
Definition at line 91 of file ViewProviderReference.h.
SoDrawStyle* PartGui::ViewProviderPartReference::pcLineStyle [protected] |
Definition at line 93 of file ViewProviderReference.h.
SoMaterial* PartGui::ViewProviderPartReference::pcPointMaterial [protected] |
Definition at line 92 of file ViewProviderReference.h.
SoDrawStyle* PartGui::ViewProviderPartReference::pcPointStyle [protected] |
Definition at line 94 of file ViewProviderReference.h.
SoShapeHints* PartGui::ViewProviderPartReference::pShapeHints [protected] |
Definition at line 96 of file ViewProviderReference.h.
Referenced by attach().
SoGroup* PartGui::ViewProviderPartReference::VertexRoot [protected] |
Definition at line 90 of file ViewProviderReference.h.
Referenced by attach().