Back to index

salome-gui  6.5.0
vtkEDFCutter.h
Go to the documentation of this file.
00001 // Copyright (C) 2010-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 #ifndef __vtkEDFCutter_h__
00021 #define __vtkEDFCutter_h__
00022 
00023 #include "vtkEDFOverloadsDefines.h"
00024 #include "vtkCutter.h"
00025 
00026 class VTKTOOLS_EXPORT vtkEDFCutter : public vtkCutter
00027 {
00028 public :
00029   static vtkEDFCutter* New();
00030   vtkTypeRevisionMacro(vtkEDFCutter, vtkCutter);
00031   void PrintSelf(ostream& os, vtkIndent indent);
00032 
00033   // Description:
00034   // these ivars
00035   // control the name given to the field in which the ids are written into.  If
00036   // set to NULL, then vtkOriginalCellIds or vtkOriginalPointIds (the default)
00037   // is used, respectively.
00038   vtkSetStringMacro(OriginalCellIdsName);
00039   virtual const char *GetOriginalCellIdsName() {
00040     return (  this->OriginalCellIdsName
00041             ? this->OriginalCellIdsName : "vtkOriginalCellIds");
00042   }
00043 
00044 protected :
00045   virtual int RequestData(vtkInformation *,
00046                           vtkInformationVector **,
00047                           vtkInformationVector *);
00048 
00049   virtual void  AssembleOutputTriangles(vtkPolyData* inpd,
00050                                         vtkPolyData* outpd);
00051 
00052   char* OriginalCellIdsName;
00053 
00054   vtkEDFCutter();
00055   ~vtkEDFCutter();
00056 
00057 private:
00058   vtkEDFCutter(const vtkEDFCutter&);  // Not implemented.
00059   void operator=(const vtkEDFCutter&);  // Not implemented.
00060 };
00061 
00062 #endif //__vtkEDFCutter_h__