#include <QWidget>
/*!
- \class XGUI_AbstractRubberBand
- \ingroup GUI
- \brief Analog of class QRubberBand with possibility of creation non-rectangular contour for selection.
-
- Currently this class does not support Style functionality in full.
-*/
-class XGUI_EXPORT XGUI_AbstractRubberBand: public QWidget
+ \class XGUI_AbstractRubberBand
+ \ingroup GUI
+ \brief Analog of class QRubberBand with possibility of creation non-rectangular contour for selection.
+
+ Currently this class does not support Style functionality in full.
+ */
+class XGUI_EXPORT XGUI_AbstractRubberBand : public QWidget
{
Q_OBJECT
-protected:
+ protected:
XGUI_AbstractRubberBand(QWidget*);
-public:
+ public:
virtual ~XGUI_AbstractRubberBand();
virtual void clearGeometry();
bool isClosed();
-protected:
+ protected:
virtual void paintEvent(QPaintEvent*);
virtual void showEvent(QShowEvent*);
virtual void moveEvent(QMoveEvent*);
virtual void updateMask();
-protected:
+ protected:
QPolygon myPoints;
bool myIsClosed;
};
/*!
- \class XGUI_RectRubberBand
- \ingroup GUI
- \brief Analog of class QRubberBand with possibility of creation non-rectangular contour for selection.
-
- Redefinition for rectangular rubber band
-*/
-class XGUI_RectRubberBand: public XGUI_AbstractRubberBand
+ \class XGUI_RectRubberBand
+ \ingroup GUI
+ \brief Analog of class QRubberBand with possibility of creation non-rectangular contour for selection.
+
+ Redefinition for rectangular rubber band
+ */
+class XGUI_RectRubberBand : public XGUI_AbstractRubberBand
{
Q_OBJECT
-public:
+ public:
XGUI_RectRubberBand(QWidget*);
virtual ~XGUI_RectRubberBand();
virtual void clearGeometry();
};
-class XGUI_PolyRubberBand: public XGUI_AbstractRubberBand
+class XGUI_PolyRubberBand : public XGUI_AbstractRubberBand
{
Q_OBJECT
-public:
+ public:
XGUI_PolyRubberBand(QWidget*);
virtual ~XGUI_PolyRubberBand();