-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
*/
class SVTK_EXPORT SVTK_ControllerIncrement : public vtkObject{
public:
- vtkTypeMacro(SVTK_ControllerIncrement, vtkObject);
+ vtkTypeMacro(SVTK_ControllerIncrement, vtkObject)
static SVTK_ControllerIncrement* New();
//! Set start value of increment
*/
class SVTK_EXPORT SVTK_GeomControllerIncrement : public SVTK_ControllerIncrement{
public:
- vtkTypeMacro(SVTK_GeomControllerIncrement, SVTK_ControllerIncrement);
+ vtkTypeMacro(SVTK_GeomControllerIncrement, SVTK_ControllerIncrement)
static SVTK_GeomControllerIncrement* New();
//! Increace the increment value by add 1
*/
class SVTK_EXPORT SVTK_ControllerOnKeyDown : public vtkObject{
public:
- vtkTypeMacro(SVTK_ControllerOnKeyDown, vtkObject);
+ vtkTypeMacro(SVTK_ControllerOnKeyDown, vtkObject)
static SVTK_ControllerOnKeyDown* New();
//! Provides the action on event
class SVTK_GenericRenderWindowInteractor;
class SVTK_Actor;
-class QRubberBand;
+class QtxRectRubberBand;
#define VTK_INTERACTOR_STYLE_CAMERA_NONE 0
#define VTK_INTERACTOR_STYLE_CAMERA_ROTATE 1
#define VTK_INTERACTOR_STYLE_CAMERA_SELECT 6
#define VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN 7
#define VTK_INTERACTOR_STYLE_CAMERA_SELECT_ROTATION_POINT 8
+#define VTK_INTERACTOR_STYLE_CAMERA_INTERACTIVE_SELECTION 9
enum PolygonState { Disable, Start, InProcess, Finished, Closed, NotValid };
{
public:
static SVTK_InteractorStyle *New();
- vtkTypeMacro(SVTK_InteractorStyle, vtkInteractorStyle);
+ vtkTypeMacro(SVTK_InteractorStyle, vtkInteractorStyle)
typedef boost::shared_ptr<SVTK_SelectionEvent> PSelectionEvent;
void
IncrementalRotate( const int incrX, const int incrY );
+ void
+ InteractiveSelection();
+
// Main process event method (reimplemented from #vtkInteractorStyle)
static
void
void startPointSelection();
void startFocalPointSelection();
+ void startInteractiveSelection();
protected:
void loadCursors();
vtkSmartPointer<vtkPointPicker> myPointPicker;
double myBBCenter[3];
+ double myInteractivePoint[3];
bool myBBFirstCheck;
- QRubberBand* myRectBand; //!< selection rectangle rubber band
+ QtxRectRubberBand* myRectBand; //!< selection rectangle rubber band
QtxPolyRubberBand* myPolygonBand; //!< polygonal selection
QVector<QPoint> myPolygonPoints;
PolygonState myPoligonState;