-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
class QtxRectRubberBand;
class QtxPolyRubberBand;
+class QtxCircleRubberBand;
#ifdef WIN32
#pragma warning ( disable:4251 )
virtual bool isDefault() const;
virtual bool eventFilter( QObject*, QEvent* );
+ virtual void setSketcherMode(int) {}
+ virtual int sketcherMode() const { return 0; }
+
private slots:
void onDrawViewPort();
class OCCVIEWER_EXPORT OCCViewer_PolygonSketcher : public OCCViewer_ViewSketcher
{
public:
+ enum SketchMode { Poligone, Circle };
+
OCCViewer_PolygonSketcher( OCCViewer_ViewWindow*, int );
virtual ~OCCViewer_PolygonSketcher();
+ virtual void setSketcherMode(int theMode);
+ virtual int sketcherMode() const {
+ return myMode;
+ }
+
protected:
virtual bool onKey( QKeyEvent* );
virtual void onMouse( QMouseEvent* );
int myDelButton;
QtxPolyRubberBand* mypPolyRB;
+ QtxCircleRubberBand* mypCircleRB;
+
+ SketchMode myMode;
};
#ifdef WIN32