Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/gui.git] / tools / vtkEDFOverloads / vtkEDFCutter.h
1 // Copyright (C) 2010-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef __vtkEDFCutter_h__
21 #define __vtkEDFCutter_h__
22
23 #include "vtkEDFOverloadsDefines.h"
24 #include "vtkCutter.h"
25
26 class VTKTOOLS_EXPORT vtkEDFCutter : public vtkCutter
27 {
28 public :
29   static vtkEDFCutter* New();
30   vtkTypeRevisionMacro(vtkEDFCutter, vtkCutter);
31   void PrintSelf(ostream& os, vtkIndent indent);
32
33   // Description:
34   // these ivars
35   // control the name given to the field in which the ids are written into.  If
36   // set to NULL, then vtkOriginalCellIds or vtkOriginalPointIds (the default)
37   // is used, respectively.
38   vtkSetStringMacro(OriginalCellIdsName);
39   virtual const char *GetOriginalCellIdsName() {
40     return (  this->OriginalCellIdsName
41             ? this->OriginalCellIdsName : "vtkOriginalCellIds");
42   }
43
44 protected :
45   virtual int RequestData(vtkInformation *,
46                           vtkInformationVector **,
47                           vtkInformationVector *);
48
49   virtual void  AssembleOutputTriangles(vtkPolyData* inpd,
50                                         vtkPolyData* outpd);
51
52   char* OriginalCellIdsName;
53
54   vtkEDFCutter();
55   ~vtkEDFCutter();
56
57 private:
58   vtkEDFCutter(const vtkEDFCutter&);  // Not implemented.
59   void operator=(const vtkEDFCutter&);  // Not implemented.
60 };
61
62 #endif //__vtkEDFCutter_h__