20 #ifndef XGUI_FacesPanel_H_
21 #define XGUI_FacesPanel_H_
25 #include <ModuleBase_ActionType.h>
26 #include <ModuleBase_Definitions.h>
27 #include <ModuleBase_ViewerPrs.h>
28 #include <ModuleBase_ResultPrs.h>
30 #include <ModelAPI_Object.h>
31 #include <ModelAPI_Feature.h>
33 #include <GeomAPI_AISObject.h>
35 #include <SelectMgr_ListOfFilter.hxx>
36 #include <TopoDS_Shape.hxx>
38 #include <QDockWidget>
82 virtual void reset(
const bool isToFlushRedisplay);
90 void selectionModes(QIntList& theModes);
94 void selectionFilters(SelectMgr_ListOfFilter& theSelectionFilters);
101 void setActivePanel(
const bool theIsActive);
107 {
return myHiddenObjects.find(theObject) != myHiddenObjects.end(); }
111 void restoreObjects(
const std::set<ObjectPtr >& theHiddenObjects);
114 virtual bool processAction(ModuleBase_ActionType theActionType);
117 void processSelection();
121 bool processDelete();
129 virtual bool eventFilter(
QObject* theObject,
QEvent *theEvent);
135 void onObjectDisplay(ObjectPtr theObject, AISObjectPtr theAIS);
139 virtual void closeEvent(QCloseEvent* theEvent);
153 static bool redisplayObjects(
const std::set<ObjectPtr>& theObjects);
158 static void updateProcessedObjects(QMap<int, ModuleBase_ViewerPrsPtr> theItems,
159 std::set<ObjectPtr>& theObjects);
163 bool useTransparency()
const;
165 double transparency()
const;
167 void removeItems(std::set<int> theIds);
174 void onTransparencyChanged();
181 void flushRedisplay()
const;
185 QCheckBox* myHiddenOrTransparent;
191 std::vector<int> myUndoList;
193 QMap<int, ModuleBase_ViewerPrsPtr> myItems;
194 std::set<ObjectPtr > myItemObjects;
195 std::set<ObjectPtr > myHiddenObjects;
Interface for AIS_InteractiveObject.
Definition: GeomAPI_AISObject.h:39
An extension of QListWidget to provide Undo/Redo functionality.
Definition: ModuleBase_ListView.h:94
A Hide Faces panel for making it possible to hide faces in the 3D view.
Definition: XGUI_FacesPanel.h:72
bool isObjectHiddenByPanel(const ObjectPtr &theObject) const
Returns true if the object is in internal container of hidden objects by this panel.
Definition: XGUI_FacesPanel.h:106
void deactivated()
Signal about deactivating pane.
void activated()
Signal about activating pane.
void closed()
Signal is emitted by the top widget cross button click.
bool isActivePanel() const
Returns whether the panel is active or not.
Definition: XGUI_FacesPanel.h:97
Class which defines a configuration of the application (Workshop) and launches it.
Definition: XGUI_Workshop.h:83