#include <TaskFilling.h>
Classes | |
class ShapeSelection | |
Public Member Functions | |
bool accept () | |
void checkOpenCommand () | |
FillingPanel (ViewProviderFilling *vp, Surface::Filling *obj) | |
void open () | |
bool reject () | |
void setEditedObject (Surface::Filling *obj) | |
~FillingPanel () | |
![]() | |
void attachSelection () | |
Attaches to the selection. More... | |
bool blockConnection (bool block) | |
void detachSelection () | |
Detaches from the selection. More... | |
bool isConnectionAttached () const | |
bool isConnectionBlocked () const | |
SelectionObserver (bool attach=true, int resolve=1) | |
Constructor. More... | |
SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, int resolve=1) | |
Constructor. More... | |
virtual ~SelectionObserver () | |
![]() | |
void attachDocument (Document *) | |
Attaches to another document, the old document is not longer observed then. More... | |
void detachDocument () | |
Detaches from the current document, the document is not longer observed then. More... | |
DocumentObserver () | |
Constructor. More... | |
virtual ~DocumentObserver () | |
Protected Types | |
enum SelectionMode { , InitFace, AppendEdge, RemoveEdge } | |
Protected Member Functions | |
void changeEvent (QEvent *e) | |
void modifyBoundary (bool) | |
virtual void onSelectionChanged (const Gui::SelectionChanges &msg) | |
virtual void slotDeletedObject (const Gui::ViewProviderDocumentObject &Obj) | |
Notifies when the object is about to be removed. More... | |
virtual void slotRedoDocument (const Gui::Document &Doc) | |
Notifies on redo. More... | |
virtual void slotUndoDocument (const Gui::Document &Doc) | |
Notifies on undo. More... | |
Protected Attributes | |
bool checkCommand | |
Surface::Filling * editedObject | |
SelectionMode selectionMode | |
Member Enumeration Documentation
◆ SelectionMode
|
protected |
Constructor & Destructor Documentation
◆ FillingPanel()
SurfaceGui::FillingPanel::FillingPanel | ( | ViewProviderFilling * | vp, |
Surface::Filling * | obj | ||
) |
References checkCommand, selectionMode, and setEditedObject().
◆ ~FillingPanel()
SurfaceGui::FillingPanel::~FillingPanel | ( | ) |
Member Function Documentation
◆ accept()
bool SurfaceGui::FillingPanel::accept | ( | ) |
References Surface::Filling::BoundaryEdges, SurfaceGui::ViewProviderFilling::Edge, editedObject, SurfaceGui::ViewProviderFilling::Face, App::DocumentObject::getStatusString(), App::PropertyLinkSubList::getSubListValues(), App::PropertyLinkSub::getSubValues(), App::PropertyLinkSub::getValue(), SurfaceGui::ViewProviderFilling::highlightReferences(), Surface::Filling::InitialFace, App::DocumentObject::isValid(), Surface::Filling::mustExecute(), App::DocumentObject::recomputeFeature(), Gui::SelectionSingleton::rmvSelectionGate(), Gui::Selection(), and selectionMode.
Referenced by SurfaceGui::TaskFilling::accept().
◆ changeEvent()
|
protected |
◆ checkOpenCommand()
void SurfaceGui::FillingPanel::checkOpenCommand | ( | ) |
References checkCommand, editedObject, App::PropertyString::getValue(), Gui::Command::hasPendingCommand(), App::DocumentObject::Label, and Gui::Command::openCommand().
Referenced by onSelectionChanged(), and open().
◆ modifyBoundary()
|
protected |
◆ onSelectionChanged()
|
protectedvirtual |
Implements Gui::SelectionObserver.
References Gui::SelectionChanges::AddSelection, AppendEdge, Surface::Filling::BoundaryEdges, Surface::Filling::BoundaryFaces, Surface::Filling::BoundaryOrder, checkOpenCommand(), SurfaceGui::ViewProviderFilling::Edge, editedObject, SurfaceGui::ViewProviderFilling::Face, Gui::SelectionObject::getObject(), App::PropertyLinkSubList::getSubListValues(), App::PropertyLinkSubList::getSubValues(), App::PropertyString::getValue(), App::PropertyListsT< T, ListT, ParentT >::getValues(), App::PropertyLinkSubList::getValues(), SurfaceGui::ViewProviderFilling::highlightReferences(), InitFace, Surface::Filling::InitialFace, App::DocumentObject::Label, App::DocumentObject::recomputeFeature(), RemoveEdge, Gui::SelectionSingleton::rmvSelectionGate(), Gui::Selection(), selectionMode, App::PropertyLinkSub::setValue(), App::PropertyListsT< T, ListT, ParentT >::setValues(), App::PropertyStringList::setValues(), and App::PropertyLinkSubList::setValues().
◆ open()
void SurfaceGui::FillingPanel::open | ( | ) |
References Surface::Filling::BoundaryEdges, checkOpenCommand(), Gui::SelectionSingleton::clearSelection(), SurfaceGui::ViewProviderFilling::Edge, editedObject, SurfaceGui::ViewProviderFilling::Face, App::PropertyLinkSubList::getSubListValues(), App::PropertyLinkSub::getSubValues(), App::PropertyLinkSub::getValue(), SurfaceGui::ViewProviderFilling::highlightReferences(), Surface::Filling::InitialFace, and Gui::Selection().
Referenced by SurfaceGui::TaskFilling::open().
◆ reject()
bool SurfaceGui::FillingPanel::reject | ( | ) |
References Surface::Filling::BoundaryEdges, SurfaceGui::ViewProviderFilling::Edge, editedObject, SurfaceGui::ViewProviderFilling::Face, App::PropertyLinkSubList::getSubListValues(), App::PropertyLinkSub::getSubValues(), App::PropertyLinkSub::getValue(), SurfaceGui::ViewProviderFilling::highlightReferences(), Surface::Filling::InitialFace, Gui::SelectionSingleton::rmvSelectionGate(), Gui::Selection(), and selectionMode.
Referenced by SurfaceGui::TaskFilling::reject().
◆ setEditedObject()
void SurfaceGui::FillingPanel::setEditedObject | ( | Surface::Filling * | obj | ) |
References Gui::DocumentObserver::attachDocument(), Surface::Filling::BoundaryEdges, Surface::Filling::BoundaryFaces, Surface::Filling::BoundaryOrder, editedObject, App::DocumentObject::getDocument(), App::PropertyLinkSub::getSubValues(), App::PropertyLinkSubList::getSubValues(), App::PropertyString::getValue(), App::PropertyLinkSub::getValue(), App::PropertyListsT< T, ListT, ParentT >::getValues(), App::PropertyLinkSubList::getValues(), Surface::Filling::InitialFace, Gui::Application::Instance, and App::DocumentObject::Label.
Referenced by FillingPanel(), and SurfaceGui::TaskFilling::setEditedObject().
◆ slotDeletedObject()
|
protectedvirtual |
Notifies when the object is about to be removed.
Reimplemented from Gui::DocumentObserver.
References Surface::Filling::BoundaryEdges, SurfaceGui::ViewProviderFilling::Edge, editedObject, SurfaceGui::ViewProviderFilling::Face, App::PropertyLinkSubList::getSubListValues(), App::PropertyLinkSub::getSubValues(), App::PropertyLinkSub::getValue(), SurfaceGui::ViewProviderFilling::highlightReferences(), and Surface::Filling::InitialFace.
◆ slotRedoDocument()
|
protectedvirtual |
◆ slotUndoDocument()
|
protectedvirtual |
Member Data Documentation
◆ checkCommand
|
protected |
Referenced by checkOpenCommand(), FillingPanel(), slotRedoDocument(), and slotUndoDocument().
◆ editedObject
|
protected |
Referenced by accept(), checkOpenCommand(), onSelectionChanged(), open(), reject(), setEditedObject(), and slotDeletedObject().
◆ selectionMode
|
protected |
Referenced by accept(), FillingPanel(), onSelectionChanged(), and reject().
The documentation for this class was generated from the following files:
- src/Mod/Surface/Gui/TaskFilling.h
- src/Mod/Surface/Gui/TaskFilling.cpp