]> SALOME platform Git repositories - modules/visu.git/blob - src/OBJECT/VISU_SelectVisiblePoints.h
Salome HOME
d112326b91c06ffc67430779b46f14a8d884a0b5
[modules/visu.git] / src / OBJECT / VISU_SelectVisiblePoints.h
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  VISU OBJECT : interactive object for VISU entities implementation
23 //  File   : VISU_SelectVisiblePoints.h
24 //  Author : Oleg UVAROV
25 //  Module : VISU
26
27 #ifndef VISU_SelectVisiblePoints_HeaderFile
28 #define VISU_SelectVisiblePoints_HeaderFile
29
30 #include "VISU_OBJECT.h"
31
32 #include "vtkSelectVisiblePoints.h"
33
34 class vtkRenderer;
35
36 class VISU_OBJECT_EXPORT VISU_SelectVisiblePoints : public vtkSelectVisiblePoints
37 {
38 public:
39   vtkTypeMacro(VISU_SelectVisiblePoints,vtkSelectVisiblePoints);
40   void PrintSelf(ostream& os, vtkIndent indent);
41
42   // Description:
43   // Instantiate object with no renderer; window selection turned off; 
44   // tolerance set to 0.01; and select invisible off.
45   static VISU_SelectVisiblePoints *New();
46
47   // Description:
48   // Set/Get a translation offset for input points.
49   vtkSetVector3Macro(Offset,double);
50   vtkGetVectorMacro(Offset,double,4);
51
52 protected:
53   VISU_SelectVisiblePoints();
54   ~VISU_SelectVisiblePoints();
55
56   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
57
58   double Offset[3];
59
60 private:
61   VISU_SelectVisiblePoints(const VISU_SelectVisiblePoints&);  // Not implemented.
62   void operator=(const VISU_SelectVisiblePoints&);  // Not implemented.
63 };
64
65 #endif