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_ResultGroup.h>
32 #include <ModelAPI_Feature.h>
34 #include <GeomAPI_AISObject.h>
36 #include <SelectMgr_ListOfFilter.hxx>
37 #include <TopoDS_Shape.hxx>
39 #include <QDockWidget>
83 virtual void reset(
const bool isToFlushRedisplay);
91 void selectionModes(QIntList& theModes);
95 void selectionFilters(SelectMgr_ListOfFilter& theSelectionFilters);
102 void setActivePanel(
const bool theIsActive);
108 {
return myHiddenObjects.find(theObject) != myHiddenObjects.end(); }
112 void restoreObjects(
const std::set<ObjectPtr >& theHiddenObjects);
115 virtual bool processAction(ModuleBase_ActionType theActionType);
118 void processSelection();
122 bool processDelete();
130 virtual bool eventFilter(
QObject* theObject,
QEvent *theEvent);
136 void onObjectDisplay(ObjectPtr theObject, AISObjectPtr theAIS);
140 virtual void closeEvent(QCloseEvent* theEvent);
154 static bool redisplayObjects(
const std::set<ObjectPtr>& theObjects);
159 static void updateProcessedObjects(QMap<int, ModuleBase_ViewerPrsPtr> theItems,
160 std::set<ObjectPtr>& theObjects);
168 void getObjectsMapFromResult(ResultGroupPtr theResGroup, FeaturePtr theGroupFeature,
169 std::map<ObjectPtr, TopoDS_ListOfShape>& theObjectsToShapes,
172 void getObjectsMapFromPrs(ModuleBase_ViewerPrsPtr thePrs,
173 std::map<ObjectPtr, TopoDS_ListOfShape>& theObjectToShapes,
178 bool useTransparency()
const;
180 double transparency()
const;
182 void removeItems(std::set<int> theIds);
189 void onTransparencyChanged();
196 void flushRedisplay()
const;
200 QCheckBox* myHiddenOrTransparent;
206 std::vector<int> myUndoList;
208 QMap<int, ModuleBase_ViewerPrsPtr> myItems;
209 std::set<ObjectPtr > myItemObjects;
210 std::set<ObjectPtr > myHiddenObjects;
211 std::set<ObjectPtr > myHiddenGroups;
Interface for AIS_InteractiveObject.
Definition: GeomAPI_AISObject.h:39
An extension of QListWidget to provide Undo/Redo functionality.
Definition: ModuleBase_ListView.h:94
A redefinition of standard AIS Interactive Object in order to provide specific behaviour for wire pre...
Definition: ModuleBase_ResultPrs.h:48
A Hide Faces panel for making it possible to hide faces in the 3D view.
Definition: XGUI_FacesPanel.h:73
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:107
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:98
Class which defines a configuration of the application (Workshop) and launches it.
Definition: XGUI_Workshop.h:82