0027736: Samples - rectangle selection issues within MFC sample Viewer3d
[occt.git] / samples / mfc / standard / 04_Viewer3d / src / Viewer3dView.h
index 7d8f474..1f2d349 100755 (executable)
@@ -33,6 +33,8 @@ enum View3D_CurrentAction {
   CurAction3d_EndDirectionalLight
 };
 
+class AIS_RubberBand;
+
 class CViewer3dView : public CView
 {
 protected: // create from serialization only
@@ -145,16 +147,13 @@ private:
   Handle(V3d_DirectionalLight)   myCurrent_DirectionalLight;
   Handle(Graphic3d_ClipPlane)    myClippingPlane;
   Handle(AIS_Shape)              myShape;
+  Handle(AIS_RubberBand)         myRect; //!< Rubber rectangle for selection
 
 private:
-       enum LineStyle { Solid, Dot, ShortDash, LongDash, Default };
-       CPen*  m_Pen;
-    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  );
+
+       void DrawRectangle (Standard_Integer theMinX, Standard_Integer theMinY, Standard_Integer theMaxX, Standard_Integer theMaxY,
+                       Standard_Boolean theToDraw, Aspect_TypeOfLine theLineType = Aspect_TOL_SOLID);
+
        UINT myAxisKey;
        UINT myScaleDirection;
        void RedrawVisMode();