1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef SALOME_ExtractGeometry_HeaderFile
21 #define SALOME_ExtractGeometry_HeaderFile
23 #include "SMESH_Object.h"
25 #include <vtkExtractGeometry.h>
28 #include "VTKViewer.h"
30 class SMESHOBJECT_EXPORT SMESH_ExtractGeometry : public vtkExtractGeometry{
32 vtkTypeMacro(SMESH_ExtractGeometry,vtkExtractGeometry);
34 static SMESH_ExtractGeometry *New();
36 void SetStoreMapping(bool theStoreMapping){
37 myStoreMapping = theStoreMapping;
40 bool GetStoreMapping(){ return myStoreMapping;}
42 virtual vtkIdType GetNodeObjId(int theVtkID);
43 virtual vtkIdType GetElemObjId(int theVtkID);
46 SMESH_ExtractGeometry();
47 ~SMESH_ExtractGeometry();
49 // Usual data generation method
50 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
54 typedef std::vector<vtkIdType> TVectorId;
55 TVectorId myElemVTK2ObjIds;
56 TVectorId myNodeVTK2ObjIds;
58 SMESH_ExtractGeometry(const SMESH_ExtractGeometry&); // Not implemented.
59 void operator=(const SMESH_ExtractGeometry&); // Not implemented.