SHAPER
9.12.0
|
A Hide Faces panel for making it possible to hide faces in the 3D view. More...
Public Slots | |
void | onObjectDisplay (ObjectPtr theObject, AISObjectPtr theAIS) |
Slot called on an object erase. More... | |
Signals | |
void | activated () |
Signal about activating pane. More... | |
void | deactivated () |
Signal about deactivating pane. More... | |
void | closed () |
Signal is emitted by the top widget cross button click. More... | |
Public Member Functions | |
XGUI_FacesPanel (QWidget *theParent, XGUI_Workshop *theWorkshop) | |
Constructor. More... | |
virtual void | reset (const bool isToFlushRedisplay) |
Clear content of list widget. More... | |
bool | isEmpty () const |
Returns whether faces panel contains elements. More... | |
void | selectionModes (QIntList &theModes) |
Fills container with the panel selection mode: FACE. More... | |
void | selectionFilters (SelectMgr_ListOfFilter &theSelectionFilters) |
Appends into container of workshop selection filters. More... | |
bool | isActivePanel () const |
Returns whether the panel is active or not. More... | |
void | setActivePanel (const bool theIsActive) |
Stores the state if panel is active and highlight the panel in an active color. More... | |
bool | isObjectHiddenByPanel (const ObjectPtr &theObject) const |
Returns true if the object is in internal container of hidden objects by this panel. More... | |
void | restoreObjects (const std::set< ObjectPtr > &theHiddenObjects) |
Removed faces of the objects from the panel. More... | |
virtual bool | processAction (ModuleBase_ActionType theActionType) |
Returns true if the event is processed. The default implementation is empty, returns false. More... | |
void | processSelection () |
Append selected item in the list and customize presentations to hide faces. More... | |
bool | processDelete () |
Deletes item in a list of elements. More... | |
void | processUndo () |
Delete last(s) item(s) added since the recent activation of the faces panel. More... | |
virtual bool | eventFilter (QObject *theObject, QEvent *theEvent) |
Processing focus in/out for the faces control. More... | |
XGUI_Workshop * | workshop () const |
Protected Slots | |
void | onDeleteItem () |
Deletes element in list of items. More... | |
void | onTransparencyChanged () |
Upates hidden faces to be hidden or transparent. More... | |
void | onClosed () |
Closes faces panel restore all hidden faces by calling reset() More... | |
void | flushRedisplay () const |
Flushes redisplay event and perform update of object browser icons (objects might be hidden/shown) More... | |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *theEvent) |
Reimplementation to emit a signal about the panel close. More... | |
A Hide Faces panel for making it possible to hide faces in the 3D view.
The panel has multi-selector filled by faces elements. When the control is active it is possible to select faces in the viewer. The selected faces are hidden/transparent after selection and the corresponding item is appeared in the multi selector.
In order to redisplay a face, it is enough to click delete on the name of this face in the multiselector. When the panel is opened, the multiselector is empty. When the panel is closed, the multiselector is emptied and the faces are displayed again. The default position by of this dockable window is to the right of the view (in SALOME mode). If no feature is processed (in neutral point), this panel can be activated too. On feature edition start or finish, movement of the history line, undo/redo and other modification of the model, the multiselector is emptied.
XGUI_FacesPanel::XGUI_FacesPanel | ( | QWidget * | theParent, |
XGUI_Workshop * | theWorkshop | ||
) |
Constructor.
theParent | is a parent of the property panel |
|
virtual |
Clear content of list widget.
isToFlushRedisplay | flag if redisplay should be flushed immediatelly |
bool XGUI_FacesPanel::isEmpty | ( | ) | const |
Returns whether faces panel contains elements.
void XGUI_FacesPanel::selectionModes | ( | QIntList & | theModes | ) |
Fills container with the panel selection mode: FACE.
void XGUI_FacesPanel::selectionFilters | ( | SelectMgr_ListOfFilter & | theSelectionFilters | ) |
Appends into container of workshop selection filters.
[out] | selection | filters |
|
inline |
Returns whether the panel is active or not.
void XGUI_FacesPanel::setActivePanel | ( | const bool | theIsActive | ) |
Stores the state if panel is active and highlight the panel in an active color.
theIsActive | state whether the panel should be activated or deactivated |
|
inline |
Returns true if the object is in internal container of hidden objects by this panel.
theObject | a checked object |
void XGUI_FacesPanel::restoreObjects | ( | const std::set< ObjectPtr > & | theHiddenObjects | ) |
Removed faces of the objects from the panel.
container | of objects |
found objects
|
virtual |
Returns true if the event is processed. The default implementation is empty, returns false.
void XGUI_FacesPanel::processSelection | ( | ) |
Append selected item in the list and customize presentations to hide faces.
bool XGUI_FacesPanel::processDelete | ( | ) |
Deletes item in a list of elements.
void XGUI_FacesPanel::processUndo | ( | ) |
Delete last(s) item(s) added since the recent activation of the faces panel.
Processing focus in/out for the faces control.
theObject | source object of event |
theEvent | an event |
|
slot |
Slot called on an object erase.
|
protectedvirtual |
Reimplementation to emit a signal about the panel close.
|
signal |
Signal about activating pane.
|
signal |
Signal about deactivating pane.
|
signal |
Signal is emitted by the top widget cross button click.
|
protectedslot |
Deletes element in list of items.
|
protectedslot |
Upates hidden faces to be hidden or transparent.
|
protectedslot |
Closes faces panel restore all hidden faces by calling reset()
|
protectedslot |
Flushes redisplay event and perform update of object browser icons (objects might be hidden/shown)