- /// \param theFeature a feature instance
- /// \param isUpdateViewer the parameter whether the viewer should be update immediatelly
- void display(FeaturePtr theFeature, bool isUpdateViewer = true);
-
- /// 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, 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 list of features currently selected in 3d viewer
- */
- QFeatureList selectedFeatures() const;
-
- /// 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 if it was displayed
- * \param theFeature a feature instance
- * \param isUpdateViewer the parameter whether the viewer should be update immediatelly
- */
- void redisplay(FeaturePtr theFeature, 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);
-
- /**
- * Add presentations which corresponds to the given features to current selection
- * \param theFeatures a list of features to be selected
- * isUpdateViewer the parameter whether the viewer should be update immediatelly
- */
- void setSelected(const QFeatureList& theFeatures, bool isUpdateViewer = true);
+ /// \param theObject an object to display
+ /// \param theUpdateViewer the parameter whether the viewer should be update immediatelly
+ /// \return true if the object visibility state is changed
+ bool display(ObjectPtr theObject, bool theUpdateViewer = true);
+
+ /// Display the given AIS object. This object is not added to the displayer internal map of objects
+ /// So, it can not be obtained from displayer. This is just a wrap method of OCC display in order
+ /// to perform the display with correct flags.
+ /// \param theAIS AIOS object to display
+ /// \param toActivateInSelectionModes boolean value whether the presentation should be
+ /// activated in the current selection modes
+ /// \param theUpdateViewer the parameter whether the viewer should be update immediatelly
+ /// \return true if the object visibility state is changed
+ bool displayAIS(AISObjectPtr theAIS, const bool toActivateInSelectionModes,
+ 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
+ /// \return true if the object visibility state is changed
+ bool redisplay(ObjectPtr theObject, bool theUpdateViewer = true);
+
+ /// Sends and flushes a signal to redisplay all visualized objects.
+ void redisplayObjects();
+
+ /// 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();