Salome HOME
missing French translations
[modules/gui.git] / src / SVTK / SVTK_SelectionEvent.h
index 68c1c40715812ec2548cbff1577dbd2d5ebcdce8..4104194e2d43e6e5df5e75b2fb8f20a8664f2e3e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -28,6 +28,8 @@
 #define SVTK_SELECTIONEVENT_H
 
 #include "SVTK_Selection.h"
+#include <QPoint>
+#include <QVector>
 
 //! The structure is used for passing all infromation necessary for claculation of the selection.
 /*!
@@ -44,6 +46,8 @@ struct SVTK_SelectionEvent
   int myLastX; //!< Last X position of the mouse before starting any complex operation (like rectangle selection)
   int myLastY; //!< Last Y position of the mouse before starting any complex operation
   bool myIsRectangle; //!< A flag to define is it necessary provide rectangle selection for current #Selection_Mode
+  bool myIsPolygon; //!< A flag to define is it necessary provide polygonal selection for current #Selection_Mode
+  QVector<QPoint> myPolygonPoints; //!< Vector of points for polygonal selection
   bool myIsCtrl; //!< Is Ctrl key are pressed
   bool myIsShift; //!< Is Shift key are pressed
   int myKeyCode; //!< Code of the pressed key