#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 quanlified name to the view provider by drag and drop. More... | |
![]() | |
std::string getAppDocumentPython () const | |
Document * getDocument () const | |
std::string getDocumentName () const | |
std::string getGuiDocumentPython () const | |
template<typename T > | |
T * getObjectAs () const | |
std::string getObjectName () const | |
std::string getObjectPython () const | |
ViewProviderDocumentObject * getViewProvider () const | |
void operator= (const ViewProviderDocumentObject *) | |
void operator= (const ViewProviderT &) | |
ViewProviderT () | |
ViewProviderT (ViewProviderDocumentObject *) | |
~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 | |
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=0, bool recursive=false) const override | |
virtual bool doubleClicked (void) override | |
virtual void setOverrideMode (const std::string &mode) override | |
Constructor & Destructor Documentation
◆ ViewProviderPythonFeatureT()
Gui::ViewProviderPythonFeatureT< ViewProviderT >::ViewProviderPythonFeatureT | ( | ) |
constructor.
◆ ~ViewProviderPythonFeatureT()
|
virtual |
destructor.
Member Function Documentation
◆ attach()
|
overridevirtual |
◆ canAddToSceneGraph()
|
overridevirtual |
◆ canDelete()
|
overridevirtual |
◆ canDragAndDropObject()
|
overridevirtual |
Return false to force drop only operation for a give object.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::canDragAndDropObject(), and Gui::ViewProviderPythonFeatureImp::Rejected.
◆ canDragObject()
|
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.
◆ canDragObjects()
|
overridevirtual |
Returns true if the view provider generally supports dragging objects.
◆ canDropObject()
|
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.
◆ canDropObjectEx()
|
overridevirtual |
◆ canDropObjects()
|
overridevirtual |
Returns true if the view provider generally accepts dropping of objects.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::canDropObjects(), and Gui::ViewProviderPythonFeatureImp::Rejected.
◆ canRemoveChildrenFromRoot()
|
overridevirtual |
◆ claimChildren()
|
override |
References Gui::ViewProviderPythonFeatureImp::claimChildren().
Referenced by femviewprovider.view_result_mechanical.VPResultMechanical::onDelete(), BOPTools.SplitFeatures.ViewProviderBooleanFragments::onDelete(), BOPTools.JoinFeatures.ViewProviderConnect::onDelete(), femviewprovider.view_mesh_gmsh.VPMeshGmsh::onDelete(), BOPTools.SplitFeatures.ViewProviderSlice::onDelete(), and BOPTools.SplitFeatures.ViewProviderXOR::onDelete().
◆ doubleClicked()
|
overrideprotectedvirtual |
◆ dragObject()
|
overridevirtual |
Starts to drag the object.
References Gui::ViewProviderPythonFeatureImp::Accepted, Gui::ViewProviderPythonFeatureImp::dragObject(), and Gui::ViewProviderPythonFeatureImp::Rejected.
◆ dropObject()
|
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.
◆ dropObjectEx()
|
overridevirtual |
Add an object with full quanlified name to the view provider by drag and drop.
References Gui::ViewProviderPythonFeatureImp::dropObjectEx().
◆ finishRestoring()
|
overridevirtual |
◆ getBackRoot()
|
overridevirtual |
◆ getDefaultDisplayMode()
|
overridevirtual |
get the default display mode
References Gui::ViewProviderPythonFeatureImp::getDefaultDisplayMode().
◆ getDetail()
|
overridevirtual |
References Gui::ViewProviderPythonFeatureImp::getDetail().
◆ getDetailPath()
|
overridevirtual |
◆ getDisplayModes()
|
overridevirtual |
returns a list of all possible modes
References Gui::ViewProviderPythonFeatureImp::getDisplayModes().
◆ getDropPrefix()
|
overrideprotectedvirtual |
◆ getElement()
|
overridevirtual |
References Gui::ViewProviderPythonFeatureImp::getElement().
◆ getElementPicked()
|
overridevirtual |
◆ getFrontRoot()
|
overridevirtual |
◆ getIcon()
|
override |
◆ getLinkedViewProvider()
|
overrideprotectedvirtual |
◆ getPyObject()
|
override |
◆ getRoot()
|
overridevirtual |
◆ getSelectionShape()
|
overridevirtual |
◆ getTaskViewContent()
|
overridevirtual |
◆ isShow()
|
overridevirtual |
Returns true if the icon must always appear enabled in the tree view.
◆ onChanged()
|
overrideprotectedvirtual |
References Gui::ViewProviderPythonFeatureImp::attach(), Gui::ViewProviderPythonFeatureImp::canAddToSceneGraph(), Gui::ViewProviderT::getDocument(), App::PropertyPythonObject::getValue(), Gui::ViewProviderPythonFeatureImp::init(), Gui::isRestoring, Gui::ViewProviderPythonFeatureImp::onChanged(), and Gui::Document::toggleInSceneGraph().
Referenced by draftviewproviders.view_base.ViewProviderDraft::attach(), ArchSite.Compass::buildCoordinates(), draftobjects.wire.Wire::execute(), ArchAxis.CommandArchGrid::IsActive(), draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy::updateData(), draftviewproviders.view_label.ViewProviderLabel::updateData(), DraftLayer.ViewProviderLayer::updateData(), ArchBuildingPart.ViewProviderBuildingPart::updateData(), ArchPanel.ViewProviderPanelCut::updateData(), and ArchPanel.ViewProviderPanelSheet::updateData().
◆ onDelete()
|
overridevirtual |
◆ replaceObject()
|
overrideprotectedvirtual |
◆ setDisplayMode()
|
overridevirtual |
set the display mode
References Gui::ViewProviderPythonFeatureImp::setDisplayMode().
◆ setEdit()
|
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 PathScripts.PathSetupSheetGui.ViewProvider::doubleClicked(), PathScripts.PathToolBitGui.ViewProvider::doubleClicked(), ArchReference.ViewProviderArchReference::doubleClicked(), Spreadsheet_legacy.ViewProviderSpreadsheet::doubleClicked(), ArchAxis.ViewProviderArchGrid::doubleClicked(), ArchSchedule.CommandArchSchedule::IsActive(), ArchAxis.CommandArchGrid::IsActive(), PathScripts.PathIconViewProvider.ViewProvider::setupContextMenu(), PathScripts.PathToolControllerGui.ViewProvider::setupContextMenu(), PathScripts.PathOpGui.ViewProvider::setupContextMenu(), and PathScripts.PathJobGui.ViewProvider::setupContextMenu().
◆ setEditViewer()
|
overrideprotectedvirtual |
◆ setOverrideMode()
|
overrideprotectedvirtual |
◆ setupContextMenu()
|
overridevirtual |
◆ startRestoring()
|
overridevirtual |
◆ unsetEdit()
|
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().
◆ unsetEditViewer()
|
overrideprotectedvirtual |
◆ updateData()
|
overridevirtual |
References Gui::ViewProviderPythonFeatureImp::updateData().
Referenced by PathScripts.PathJobDlg.JobCreate::exec_(), draftviewproviders.view_wire.ViewProviderWire::onChanged(), draftviewproviders.view_dimension.ViewProviderLinearDimension::onChanged(), draftviewproviders.view_dimension.ViewProviderAngularDimension::onChanged(), PathScripts.PathOpGui.TaskPanelPage::pageUpdateData(), and PathScripts.PathSetupSheetGui.OpTaskPanel::setupUi().
◆ useNewSelectionModel()
|
overridevirtual |
The documentation for this class was generated from the following file:
- src/Gui/ViewProviderPythonFeature.h