#include <ViewProviderPythonFeature.h>
Public Member Functions | |
std::vector< App::DocumentObject * > | claimChildren () const override |
QIcon | getIcon () const override |
ViewProviderPythonFeatureT () | |
constructor. More... | |
virtual | ~ViewProviderPythonFeatureT () |
destructor. More... | |
Nodes | |
virtual SoSeparator * | getRoot () const override |
virtual SoSeparator * | getFrontRoot () const override |
virtual SoSeparator * | getBackRoot () const override |
Selection handling | |
virtual bool | useNewSelectionModel () const override |
virtual bool | getElementPicked (const SoPickedPoint *pp, std::string &subname) const override |
virtual std::string | getElement (const SoDetail *det) const override |
virtual SoDetail * | getDetail (const char *name) const override |
virtual bool | getDetailPath (const char *name, SoFullPath *path, bool append, SoDetail *&det) const override |
virtual std::vector< Base::Vector3d > | getSelectionShape (const char *Element) const override |
Update data methods | |
virtual void | attach (App::DocumentObject *obj) override |
virtual void | updateData (const App::Property *prop) override |
virtual void | getTaskViewContent (std::vector< Gui::TaskView::TaskContent * > &c) const override |
virtual bool | onDelete (const std::vector< std::string > &sub) override |
virtual bool | canDelete (App::DocumentObject *obj) const override |
Restoring view provider from document load | |
virtual void | startRestoring () override |
virtual void | finishRestoring () override |
Drag and drop | |
virtual bool | canDragObjects () const override |
Returns true if the view provider generally supports dragging objects. More... | |
virtual bool | canDragObject (App::DocumentObject *obj) const override |
Check whether the object can be removed from the view provider by drag and drop. More... | |
virtual void | dragObject (App::DocumentObject *obj) override |
Starts to drag the object. More... | |
virtual bool | canDropObjects () const override |
Returns true if the view provider generally accepts dropping of objects. More... | |
virtual bool | canDropObject (App::DocumentObject *obj) const override |
Check whether the object can be dropped to the view provider by drag and drop. More... | |
virtual void | dropObject (App::DocumentObject *obj) override |
If the dropped object type is accepted the object will be added as child. More... | |
virtual bool | canDragAndDropObject (App::DocumentObject *obj) const override |
Return false to force drop only operation for a give object. More... | |
virtual bool | canDropObjectEx (App::DocumentObject *obj, App::DocumentObject *owner, const char *subname, const std::vector< std::string > &elements) const override |
virtual std::string | dropObjectEx (App::DocumentObject *obj, App::DocumentObject *owner, const char *subname, const std::vector< std::string > &elements) override |
Add an object with full qualified name to the view provider by drag and drop. More... | |
Public Member Functions inherited from Gui::ViewProviderT | |
std::string | getAppDocumentPython () const |
Document * | getDocument () const |
const std::string & | getDocumentName () const |
std::string | getGuiDocumentPython () const |
template<typename T > | |
T * | getObjectAs () const |
const std::string & | getObjectName () const |
std::string | getObjectPython () const |
ViewProviderDocumentObject * | getViewProvider () const |
void | operator= (const ViewProviderDocumentObject *) |
ViewProviderT & | operator= (const ViewProviderT &) |
ViewProviderT & | operator= (ViewProviderT &&) |
bool | operator== (const ViewProviderT &) const |
ViewProviderT () | |
ViewProviderT (const ViewProviderDocumentObject *) | |
ViewProviderT (const ViewProviderT &) | |
ViewProviderT (ViewProviderT &&) | |
~ViewProviderT () | |
Display methods | |
virtual bool | isShow () const override |
Returns true if the icon must always appear enabled in the tree view. More... | |
virtual const char * | getDefaultDisplayMode () const override |
get the default display mode More... | |
virtual std::vector< std::string > | getDisplayModes (void) const override |
returns a list of all possible modes More... | |
virtual void | setDisplayMode (const char *ModeName) override |
set the display mode More... | |
virtual bool | canRemoveChildrenFromRoot () const override |
PyObject * | getPyObject () override |
virtual bool | canAddToSceneGraph () const override |
virtual void | setupContextMenu (QMenu *menu, QObject *recipient, const char *member) override |
ViewProviderPythonFeatureT (const ViewProviderPythonFeatureT &)=delete | |
ViewProviderPythonFeatureT (ViewProviderPythonFeatureT &&)=delete | |
ViewProviderPythonFeatureT & | operator= (const ViewProviderPythonFeatureT &)=delete |
ViewProviderPythonFeatureT & | operator= (ViewProviderPythonFeatureT &&)=delete |
virtual void | onChanged (const App::Property *prop) override |
virtual bool | setEdit (int ModNum) override |
is called by the document when the provider goes in edit mode More... | |
virtual void | unsetEdit (int ModNum) override |
is called when you lose the edit mode More... | |
virtual void | setEditViewer (View3DInventorViewer *viewer, int ModNum) override |
virtual void | unsetEditViewer (View3DInventorViewer *viewer) override |
virtual std::string | getDropPrefix () const override |
virtual int | replaceObject (App::DocumentObject *oldObj, App::DocumentObject *newObj) override |
virtual ViewProviderDocumentObject * | getLinkedViewProvider (std::string *subname=nullptr, bool recursive=false) const override |
virtual void | editProperty (const char *propName) override |
virtual bool | doubleClicked (void) override |
virtual void | setOverrideMode (const std::string &mode) override |
Gui::ViewProviderPythonFeatureT< ViewProviderT >::ViewProviderPythonFeatureT | ( | ) |
constructor.
|
virtual |
destructor.
|
delete |
|
delete |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Return false to force drop only operation for a give object.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::canDragAndDropObject(), and Gui::ViewProviderPythonFeatureImp::Rejected.
|
overridevirtual |
Check whether the object can be removed from the view provider by drag and drop.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::canDragObject(), and Gui::ViewProviderPythonFeatureImp::Rejected.
|
overridevirtual |
Returns true if the view provider generally supports dragging objects.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::canDragObjects(), and Gui::ViewProviderPythonFeatureImp::Rejected.
|
overridevirtual |
Check whether the object can be dropped to the view provider by drag and drop.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::canDropObject(), and Gui::ViewProviderPythonFeatureImp::Rejected.
|
overridevirtual |
|
overridevirtual |
Returns true if the view provider generally accepts dropping of objects.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::canDropObjects(), and Gui::ViewProviderPythonFeatureImp::Rejected.
|
overridevirtual |
|
override |
References Gui::ViewProviderPythonFeatureImp::claimChildren().
Referenced by femviewprovider.view_mesh_gmsh.VPMeshGmsh::onDelete(), femviewprovider.view_result_mechanical.VPResultMechanical::onDelete(), BOPTools.JoinFeatures.ViewProviderConnect::onDelete(), BOPTools.SplitFeatures.ViewProviderBooleanFragments::onDelete(), BOPTools.SplitFeatures.ViewProviderSlice::onDelete(), and BOPTools.SplitFeatures.ViewProviderXOR::onDelete().
|
overrideprotectedvirtual |
|
overridevirtual |
Starts to drag the object.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::dragObject(), and Gui::ViewProviderPythonFeatureImp::Rejected.
|
overridevirtual |
If the dropped object type is accepted the object will be added as child.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::dropObject(), and Gui::ViewProviderPythonFeatureImp::Rejected.
|
overridevirtual |
Add an object with full qualified name to the view provider by drag and drop.
References Gui::ViewProviderPythonFeatureImp::dropObjectEx().
|
overrideprotectedvirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
get the default display mode
References Gui::ViewProviderPythonFeatureImp::getDefaultDisplayMode().
|
overridevirtual |
References Gui::ViewProviderPythonFeatureImp::getDetail().
|
overridevirtual |
|
overridevirtual |
returns a list of all possible modes
References Gui::ViewProviderPythonFeatureImp::getDisplayModes().
|
overrideprotectedvirtual |
|
overridevirtual |
References Gui::ViewProviderPythonFeatureImp::getElement().
|
overridevirtual |
|
overridevirtual |
|
override |
|
overrideprotectedvirtual |
|
override |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Returns true if the icon must always appear enabled in the tree view.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::isShow(), and Gui::ViewProviderPythonFeatureImp::Rejected.
|
overrideprotectedvirtual |
References Gui::ViewProviderPythonFeatureImp::attach(), Gui::ViewProviderPythonFeatureT< ViewProviderT >::canAddToSceneGraph(), Gui::ViewProviderT::getDocument(), App::PropertyPythonObject::getValue(), Gui::ViewProviderPythonFeatureImp::init(), Gui::isRestoring, Gui::ViewProviderPythonFeatureImp::onChanged(), and Gui::Document::toggleInSceneGraph().
Referenced by ArchStructure.CommandStructuralSystem::Activated(), draftviewproviders.view_base.ViewProviderDraft::attach(), ArchSite.Compass::buildCoordinates(), draftobjects.wire.Wire::execute(), ArchBuildingPart.ViewProviderBuildingPart::updateData(), ArchPanel.ViewProviderPanelCut::updateData(), ArchPanel.ViewProviderPanelSheet::updateData(), draftviewproviders.view_label.ViewProviderLabel::updateData(), draftviewproviders.view_layer.ViewProviderLayer::updateData(), and draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy::updateData().
|
overridevirtual |
|
delete |
|
delete |
|
overrideprotectedvirtual |
|
overridevirtual |
set the display mode
References Gui::ViewProviderPythonFeatureImp::setDisplayMode().
|
overrideprotectedvirtual |
is called by the document when the provider goes in edit mode
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::Rejected, and Gui::ViewProviderPythonFeatureImp::setEdit().
Referenced by ArchGrid.ViewProviderArchGrid::doubleClicked(), ArchReference.ViewProviderArchReference::doubleClicked(), draftviewproviders.view_dimension.ViewProviderDimensionBase::doubleClicked(), draftviewproviders.view_hatch.ViewProviderDraftHatch::doubleClicked(), draftviewproviders.view_text.ViewProviderText::doubleClicked(), PathScripts.PathPropertyBagGui.ViewProvider::doubleClicked(), PathScripts.PathSetupSheetGui.ViewProvider::doubleClicked(), PathScripts.PathToolBitGui.ViewProvider::doubleClicked(), Spreadsheet_legacy.ViewProviderSpreadsheet::doubleClicked(), ArchSchedule.CommandArchSchedule::IsActive(), PathScripts.PathIconViewProvider.ViewProvider::setupContextMenu(), PathScripts.PathJobGui.ViewProvider::setupContextMenu(), PathScripts.PathOpGui.ViewProvider::setupContextMenu(), and PathScripts.PathToolControllerGui.ViewProvider::setupContextMenu().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overridevirtual |
|
overridevirtual |
|
overrideprotectedvirtual |
is called when you lose the edit mode
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::Rejected, and Gui::ViewProviderPythonFeatureImp::unsetEdit().
Referenced by PathScripts.PathJobGui.ViewProvider::uneditObject().
|
overrideprotectedvirtual |
|
overridevirtual |
References Gui::ViewProviderPythonFeatureImp::updateData().
Referenced by ArchStructure.CommandStructuralSystem::Activated(), PathScripts.PathJobDlg.JobCreate::exec_(), draftviewproviders.view_dimension.ViewProviderLinearDimension::onChanged(), draftviewproviders.view_dimension.ViewProviderAngularDimension::onChanged(), draftviewproviders.view_wire.ViewProviderWire::onChanged(), PathScripts.PathOpGui.TaskPanelPage::pageUpdateData(), PathScripts.PathPropertyBagGui.TaskPanel::setupUi(), and PathScripts.PathSetupSheetGui.OpTaskPanel::setupUi().
|
overridevirtual |