0027736: Samples - rectangle selection issues within MFC sample Viewer3d
[occt.git] / samples / mfc / standard / 10_Convert / src / WNT / OCCDemoView.h
index ab626b1..d8379b6 100755 (executable)
@@ -18,6 +18,8 @@ enum View3D_CurrentAction {
   CurAction3d_DynamicRotation
 };
 
+class AIS_RubberBand;
+
 class COCCDemoView : public CView
 {
 protected: // create from serialization only
@@ -119,14 +121,13 @@ private:
   Standard_Real        myCurZoom;
 
 private:
-  enum LineStyle { Solid, Dot, ShortDash, LongDash, Default };
-  CPen*  m_Pen;
+  Handle(AIS_RubberBand) myRect; //!< Rubber rectangle for selection
   virtual void DrawRectangle (const Standard_Integer  MinX  ,
                               const Standard_Integer  MinY  ,
                               const Standard_Integer  MaxX  ,
                               const Standard_Integer  MaxY  ,
                               const Standard_Boolean  Draw  ,
-                              const LineStyle aLineStyle = Default  );
+                              Aspect_TypeOfLine theLineType = Aspect_TOL_SOLID);
 
 };