-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016 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
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#include "SVTK_Selector.h"
#include "SVTK.h"
-class Handle(SALOME_InteractiveObject);
+class SALOME_InteractiveObject;
// undefining min and max because CASCADE's defines them and
// it clashes with std::min(), std::max()
class VTKViewer_FramedTextActor;
class SVTK_Actor;
-class SVTK_RectPicker;
+class SVTK_AreaPicker;
class SVTK_InteractorStyle;
SVTK_EXPORT extern int SALOME_POINT_SIZE;
//! To set offset of name actor
virtual
void
- SetNameActorOffset(int theOffset[2]);
+ SetNameActorOffset(double theOffset[2]);
//! To get size of name actor
virtual
void
- GetNameActorSize(vtkRenderer* theRenderer, int theSize[2]) const;
+ GetNameActorSize(vtkRenderer* theRenderer, double theSize[2]) const;
//! To update visibility of name actors
virtual
//! To set up a picker for point rectangle selection (initialized by #SVTK_Renderer::AddActor)
void
- SetPointRectPicker(SVTK_RectPicker* theRectPicker);
+ SetPointAreaPicker(SVTK_AreaPicker* theAreaPicker);
//! To set up a picker for cell rectangle selection (initialized by #SVTK_Renderer::AddActor)
void
- SetCellRectPicker(SVTK_RectPicker* theRectPicker);
+ SetCellAreaPicker(SVTK_AreaPicker* theAreaPicker);
+
+ //----------------------------------------------------------------------------
+ //! To find a gravity center of object
+ double* GetGravityCenter( int );
//----------------------------------------------------------------------------
//! To set up a prehighlight property (initialized by #SVTK_Renderer::AddActor)
vtkSmartPointer<vtkPointPicker> myPointPicker;
vtkSmartPointer<vtkCellPicker> myCellPicker;
- vtkSmartPointer<SVTK_RectPicker> myPointRectPicker;
- vtkSmartPointer<SVTK_RectPicker> myCellRectPicker;
+ vtkSmartPointer<SVTK_AreaPicker> myPointAreaPicker;
+ vtkSmartPointer<SVTK_AreaPicker> myCellAreaPicker;
vtkSmartPointer<SVTK_Actor> myPreHighlightActor;
vtkSmartPointer<SVTK_Actor> myHighlightActor;