0027530: Visualization - AIS_InteractiveContext::HilightNextDetected() doesn't work...
[occt.git] / src / AIS / AIS_InteractiveContext.hxx
index 27dbee7..6b2d261 100644 (file)
@@ -29,7 +29,6 @@
 #include <Quantity_NameOfColor.hxx>
 #include <Standard_Integer.hxx>
 #include <AIS_DataMapOfILC.hxx>
-#include <AIS_SequenceOfInteractive.hxx>
 #include <AIS_DisplayStatus.hxx>
 #include <AIS_KindOfInteractive.hxx>
 #include <Standard_Real.hxx>
@@ -638,15 +637,8 @@ public:
     return myHiStyle;
   }
 
-  //! Allows to manage the style of dynamic highlighting.
-  //! By default:
-  //!   - the color of dynamic highlight is Quantity_NOC_CYAN1;
-  //!   - the presentation for dynamic highlight is completely opaque;
-  //!   - the type of highlight is Aspect_TOHM_COLOR.
-  Handle(Graphic3d_HighlightStyle)& ChangeHighlightStyle()
-  {
-    return myHiStyle;
-  }
+  //! Setup the style of dynamic highlighting.
+  void SetHighlightStyle (const Handle(Graphic3d_HighlightStyle)& theStyle) { myHiStyle = theStyle; }
 
   //! Returns current selection style settings.
   //! By default:
@@ -658,15 +650,8 @@ public:
     return mySelStyle;
   }
 
-  //! Allows to manage the style of selection highlighting.
-  //! By default:
-  //!   - the color of selection is Quantity_NOC_GRAY80;
-  //!   - the presentation for selection is completely opaque;
-  //!   - the type of highlight is Aspect_TOHM_COLOR.
-  Handle(Graphic3d_HighlightStyle)& ChangeSelectionStyle()
-  {
-    return mySelStyle;
-  }
+  //! Setup the style of selection highlighting.
+  void SetSelectionStyle (const Handle(Graphic3d_HighlightStyle)& theStyle) { mySelStyle = theStyle; }
 
   //! Returns the name of the color used to show preselection.
   //! By default, this is Quantity_NOC_GREEN.
@@ -1730,8 +1715,9 @@ protected:
   AIS_DataMapOfILC myLocalContexts;
   Standard_Integer myCurLocalIndex;
   Handle(V3d_View) mylastmoveview;
-  AIS_SequenceOfInteractive myAISDetectedSeq;
-  Standard_Integer myAISCurDetected;
+  TColStd_SequenceOfInteger myDetectedSeq;
+  Standard_Integer myCurDetected;
+  Standard_Integer myCurHighlighted;
   Standard_Boolean myZDetectionFlag;
   Standard_Boolean myIsAutoActivateSelMode;