- /// Display the feature and a shape. This shape would be associated to the given feature
- /// \param theFeature a feature instance
- /// \param theShape a shape
- /// \param isUpdateViewer the parameter whether the viewer should be update immediatelly
- //void Display(FeaturePtr theFeature, const TopoDS_Shape& theShape,
- // const bool isUpdateViewer = true);
-
- /// Returns a list of viewer selected presentations
- /// \param theShapeTypeToSkip the shapes with this type will be skipped during the result list build
- /// \return list of presentations
- std::list<XGUI_ViewerPrs> getSelected(const int theShapeTypeToSkip = -1);
-
- /// Returns a list of viewer highlited presentations
- /// \param theShapeTypeToSkip the shapes with this type will be skipped during the result list build
- /// \return list of presentations
- std::list<XGUI_ViewerPrs> getHighlighted(const int theShapeTypeToSkip = -1);
-
- /// Display the shape and activate selection of sub-shapes
- /// \param theFeature a feature instance
- /// \param theAIS an AIS object
- /// \param isUpdateViewer the parameter whether the viewer should be update immediatelly
- /// \returns true if the presentation is created
- bool redisplay(FeaturePtr theFeature,
- Handle(AIS_InteractiveObject) theAIS,
- const int theSelectionMode, const bool isUpdateViewer = true);
-
- /// Redisplay the shape and activate selection of sub-shapes
- /// \param theFeature a feature instance
- /// \param isUpdateViewer the parameter whether the viewer should be update immediatelly
- //void redisplay(Handle(AIS_InteractiveObject) theAIS, const bool isUpdateViewer = true);
-
- /// Display the shape and activate selection of sub-shapes
- /// \param theFeature a feature instance
- /// \param theShape a shape
- /// \param theMode a list of local selection modes
- /// \param isUpdateViewer the parameter whether the viewer should be update immediatelly
- void activateInLocalContext(FeaturePtr theFeature,
- const std::list<int>& theModes, const bool isUpdateViewer = true);
-
- /// Stop the current selection and color the given features to the selection color
- /// \param theFeatures a list of features to be disabled
- /// \param theToStop the boolean state whether it it stopped or non stopped
- /// \param isUpdateViewer the parameter whether the viewer should be update immediatelly
- void stopSelection(const std::list<XGUI_ViewerPrs>& theFeatures, const bool isStop,
- const bool isUpdateViewer);
-
- /// Set the features are selected
- /// \param theFeatures a list of features to be selected
- /// \param isUpdateViewer the parameter whether the viewer should be update immediatelly
- void setSelected(const std::list<XGUI_ViewerPrs>& theFeatures, const bool isUpdateViewer);
+ /// Display the given AIS object. To hide this object use corresponde erase method
+ /// \param theAIS AIOS object to display
+ /// \param theUpdateViewer the parameter whether the viewer should be update immediatelly
+ void displayAIS(AISObjectPtr theAIS, bool theUpdateViewer = true);
+
+ /** Redisplay the shape if it was displayed
+ * \param theObject an object instance
+ * \param theUpdateViewer the parameter whether the viewer should be update immediatelly
+ */
+ void redisplay(ObjectPtr theObject, bool theUpdateViewer = true);
+
+ /**
+ * Add presentations to current selection. It unhighlight and deselect the current selection.
+ * The shape and result components are processed in the values. If the presentation shape is not
+ * empty, select it, otherwise select the result.
+ * \param theValues a list of presentation to be selected
+ * \param theUpdateViewer the parameter whether the viewer should be update immediatelly
+ */
+ void setSelected(const QList<ModuleBase_ViewerPrs>& theValues, bool theUpdateViewer = true);
+
+
+ /// Unselect all objects
+ void clearSelected();