#include <ViewProviderPythonFeature.h>
Public Member Functions | |
std::vector < App::DocumentObject * > | claimChildren () const |
std::string | getElement (const SoPickedPoint *pp) const |
QIcon | getIcon () const |
std::vector< Base::Vector3d > | getSelectionShape (const char *Element) const |
bool | setEdit (int ModNum) |
bool | unsetEdit (int ModNum) |
ViewProviderPythonFeatureImp (ViewProviderDocumentObject *) | |
constructor. | |
~ViewProviderPythonFeatureImp () | |
destructor. | |
Update data methods | |
void | attach (App::DocumentObject *pcObject) |
void | finishRestoring () |
void | onChanged (const App::Property *prop) |
void | startRestoring () |
void | updateData (const App::Property *) |
Display methods | |
const char * | getDefaultDisplayMode () const |
get the default display mode | |
std::vector< std::string > | getDisplayModes (void) const |
returns a list of all possible modes | |
std::string | setDisplayMode (const char *ModeName) |
set the display mode |
Definition at line 40 of file ViewProviderPythonFeature.h.
ViewProviderPythonFeatureImp::ViewProviderPythonFeatureImp | ( | ViewProviderDocumentObject * | vp | ) |
constructor.
Definition at line 190 of file ViewProviderPythonFeature.cpp.
References Gui::ViewProviderPythonFeatureObserver::instance().
ViewProviderPythonFeatureImp::~ViewProviderPythonFeatureImp | ( | ) |
destructor.
Definition at line 196 of file ViewProviderPythonFeature.cpp.
void ViewProviderPythonFeatureImp::attach | ( | App::DocumentObject * | pcObject | ) |
Definition at line 366 of file ViewProviderPythonFeature.cpp.
References Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), Gui::ViewProviderDocumentObject::getPyObject(), App::Property::getTypeId(), Py::Object::hasAttr(), and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::onChanged().
std::vector< App::DocumentObject * > ViewProviderPythonFeatureImp::claimChildren | ( | void | ) | const |
Definition at line 254 of file ViewProviderPythonFeature.cpp.
References Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), App::Property::getTypeId(), Py::Object::hasAttr(), App::DocumentObjectPy::Type, and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::claimChildren().
void ViewProviderPythonFeatureImp::finishRestoring | ( | ) |
Definition at line 472 of file ViewProviderPythonFeature.cpp.
References Py::_None(), App::PropertyPythonObject::getClassTypeId(), App::Property::getTypeId(), and Py::Object::ptr().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::finishRestoring().
const char * ViewProviderPythonFeatureImp::getDefaultDisplayMode | ( | ) | const |
get the default display mode
Definition at line 484 of file ViewProviderPythonFeature.cpp.
References Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), App::Property::getTypeId(), Py::Object::hasAttr(), and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::getDefaultDisplayMode().
std::vector< std::string > ViewProviderPythonFeatureImp::getDisplayModes | ( | void | ) | const |
returns a list of all possible modes
Definition at line 511 of file ViewProviderPythonFeature.cpp.
References Py::String::as_std_string(), Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), Gui::ViewProviderDocumentObject::getPyObject(), App::Property::getTypeId(), Py::Object::hasAttr(), and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::getDisplayModes().
std::string ViewProviderPythonFeatureImp::getElement | ( | const SoPickedPoint * | pp | ) | const |
Definition at line 284 of file ViewProviderPythonFeature.cpp.
QIcon ViewProviderPythonFeatureImp::getIcon | ( | void | ) | const |
Definition at line 200 of file ViewProviderPythonFeature.cpp.
References buffer, Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), App::Property::getTypeId(), Py::Object::hasAttr(), Py::int, and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::getIcon().
std::vector< Base::Vector3d > ViewProviderPythonFeatureImp::getSelectionShape | ( | const char * | Element | ) | const |
Definition at line 289 of file ViewProviderPythonFeature.cpp.
void ViewProviderPythonFeatureImp::onChanged | ( | const App::Property * | prop | ) |
Definition at line 434 of file ViewProviderPythonFeature.cpp.
References Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), Gui::ViewProviderDocumentObject::getPyObject(), App::Property::getTypeId(), Py::Object::hasAttr(), and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::onChanged().
std::string ViewProviderPythonFeatureImp::setDisplayMode | ( | const char * | ModeName | ) |
set the display mode
Definition at line 552 of file ViewProviderPythonFeature.cpp.
References Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), App::Property::getTypeId(), Py::Object::hasAttr(), and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::setDisplayMode().
bool ViewProviderPythonFeatureImp::setEdit | ( | int | ModNum | ) |
Definition at line 294 of file ViewProviderPythonFeature.cpp.
References Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), Gui::ViewProviderDocumentObject::getPyObject(), App::Property::getTypeId(), Py::Object::hasAttr(), and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::setEdit().
void ViewProviderPythonFeatureImp::startRestoring | ( | ) |
Definition at line 468 of file ViewProviderPythonFeature.cpp.
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::startRestoring().
bool ViewProviderPythonFeatureImp::unsetEdit | ( | int | ModNum | ) |
Definition at line 330 of file ViewProviderPythonFeature.cpp.
References Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), Gui::ViewProviderDocumentObject::getPyObject(), App::Property::getTypeId(), Py::Object::hasAttr(), and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::unsetEdit().
void ViewProviderPythonFeatureImp::updateData | ( | const App::Property * | prop | ) |
Definition at line 396 of file ViewProviderPythonFeature.cpp.
References Base::Console(), Py::Object::getAttr(), App::PropertyPythonObject::getClassTypeId(), Gui::ViewProviderDocumentObject::getObject(), App::DocumentObject::getPyObject(), App::Property::getTypeId(), Py::Object::hasAttr(), and Base::Exception::what().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::updateData().