mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0025338: MFC standard samples: 3D selection rectangle blinking
- Added new interactive object AIS_RubberBand to draw rubber rectangle or polygon - Added using of AIS_RubberBand in DRAW view for rectangular selection - Added using of AIS_RubberBand in MFC samples for rectangular selection
This commit is contained in:
@@ -11,12 +11,38 @@
|
||||
|
||||
#include <stdafx.h>
|
||||
|
||||
#include "OCC_BaseDoc.h"
|
||||
#include "AIS_RubberBand.hxx"
|
||||
|
||||
class AFX_EXT_CLASS OCC_BaseView : public CView
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
OCC_BaseView();
|
||||
virtual ~OCC_BaseView();
|
||||
|
||||
OCC_BaseDoc* GetDocument();
|
||||
|
||||
protected:
|
||||
|
||||
virtual void drawRectangle (const Standard_Integer theMinX,
|
||||
const Standard_Integer theMinY,
|
||||
const Standard_Integer theMaxX,
|
||||
const Standard_Integer theMaxY,
|
||||
const Handle(AIS_InteractiveContext)& theContext,
|
||||
const Standard_Boolean toDraw = Standard_True);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
Quantity_Factor myCurZoom;
|
||||
Standard_Integer myXmin;
|
||||
Standard_Integer myYmin;
|
||||
Standard_Integer myXmax;
|
||||
Standard_Integer myYmax;
|
||||
|
||||
Handle(AIS_RubberBand) myRect; //!< Rubber rectangle for selection
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_OCC_BASEVIEW_H__2E048CCA_38F9_11D7_8611_0060B0EE281E__INCLUDED_)
|
||||
|
Reference in New Issue
Block a user