-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 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
{
public:
static VTKViewer_InteractorStyle *New();
- vtkTypeMacro(VTKViewer_InteractorStyle, vtkInteractorStyle);
+ vtkTypeMacro(VTKViewer_InteractorStyle, vtkInteractorStyle)
virtual void SetInteractor(vtkRenderWindowInteractor *theInteractor);
void setViewWnd(VTKViewer_ViewWindow* theViewWnd);
bool IsFilterPresent( const int );
void RemoveFilter( const int );
bool IsValid( VTKViewer_Actor* theActor,
- const int theId,
+ const vtkIdType theId,
const bool theIsNode = false );
void IncrementalPan ( const int incrX, const int incrY );
protected:
VTKViewer_InteractorStyle();
~VTKViewer_InteractorStyle();
- VTKViewer_InteractorStyle(const VTKViewer_InteractorStyle&) {};
+ VTKViewer_InteractorStyle(const VTKViewer_InteractorStyle&): QObject(), vtkInteractorStyle() {};
void operator=(const VTKViewer_InteractorStyle&) {};
void RotateXY(int dx, int dy);
VTKViewer_Actor *myPreViewActor, *myPreSelectionActor, *mySelectedActor;
- int myElemId;
+ vtkIdType myElemId;
int myEdgeId;
- int myNodeId;
+ vtkIdType myNodeId;
public:
bool eventFilter(QObject* object, QEvent* event);
void startRotate();
void startFitArea();
void startSpin();
- void SetTDxStyle(vtkTDxInteractorStyle *tdxStyle) {}
+ void SetTDxStyle(vtkTDxInteractorStyle* /*tdxStyle*/) {}
bool needsRedrawing();
protected:
virtual void onStartOperation();
virtual void onFinishOperation();
virtual void onOperation(QPoint mousePos);
- virtual void onCursorMove(QPoint mousePos);
+ virtual void onCursorMove(QPoint /*mousePos*/);
virtual void setCursor(const int operation);
void drawRect();