Salome HOME
updated copyright message
[modules/gui.git] / src / Qtx / QtxRubberBand.h
old mode 100755 (executable)
new mode 100644 (file)
index 0465647..a6b6323
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -90,4 +90,33 @@ public:
   void            setClosed( bool );
 };
 
+
+#define CIRCLE_NB_POINTS 30
+#define MIN_RADIUS 5
+
+class QTX_EXPORT QtxCircleRubberBand : public QtxAbstractRubberBand
+{
+  Q_OBJECT
+
+public:
+  QtxCircleRubberBand(QWidget*);
+  virtual ~QtxCircleRubberBand();
+
+  void            initGeometry(const QPoint&);
+
+  void            setRadius(const QPoint&);
+
+  bool            isCenterDefined() const;
+
+  virtual void    clearGeometry();
+
+  void getPoligon(QPolygon* thePoints) const;
+
+  int radius() const;
+
+protected:
+  virtual void    updateMask();
+  bool            myHasCenter;
+};
+
 #endif //QTXRUBBERBAND_H