src/CONVERTOR/VISU_MergeFilter.hxx

Go to the documentation of this file.
00001 //  SALOME VTKViewer : build VTK viewer into Salome desktop
00002 //
00003 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
00005 // 
00006 //  This library is free software; you can redistribute it and/or 
00007 //  modify it under the terms of the GNU Lesser General Public 
00008 //  License as published by the Free Software Foundation; either 
00009 //  version 2.1 of the License. 
00010 // 
00011 //  This library is distributed in the hope that it will be useful, 
00012 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00013 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00014 //  Lesser General Public License for more details. 
00015 // 
00016 //  You should have received a copy of the GNU Lesser General Public 
00017 //  License along with this library; if not, write to the Free Software 
00018 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00019 // 
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 //
00023 //
00024 //  File   : 
00025 //  Author : 
00026 //  Module : SALOME
00027 //  $Header: /home/server/cvs/VISU/VISU_SRC/src/CONVERTOR/VISU_MergeFilter.hxx,v 1.3 2006/06/01 11:36:04 jfa Exp $
00028 
00029 #ifndef VISU_MergeFilter_H
00030 #define VISU_MergeFilter_H
00031 
00032 #include <vtkDataSetToDataSetFilter.h>
00033 
00034 namespace VISU
00035 {
00036   class TFieldList;
00037 }
00038 
00039 // Following class was redefined in order to fix VTK bug 
00040 //  (see code for more details)
00041 
00042 class VISU_MergeFilter : public vtkDataSetToDataSetFilter
00043 {
00044 public:
00045   static VISU_MergeFilter *New();
00046   vtkTypeMacro(VISU_MergeFilter,vtkDataSetToDataSetFilter);
00047 
00048   // Description:
00049   // Specify object from which to extract geometry information.
00050   void SetGeometry(vtkDataSet *input) {this->SetInput(input);};
00051   vtkDataSet *GetGeometry() {return this->GetInput();};
00052 
00053   // Description:
00054   // Specify object from which to extract scalar information.
00055   void SetScalars(vtkDataSet *);
00056   vtkDataSet *GetScalars();
00057 
00058   // Description:
00059   // Set / get the object from which to extract vector information.
00060   void SetVectors(vtkDataSet *);
00061   vtkDataSet *GetVectors();
00062 
00063   // Description:
00064   // Set / get the object from which to extract normal information.
00065   void SetNormals(vtkDataSet *);
00066   vtkDataSet *GetNormals();
00067   
00068   // Description:
00069   // Set / get the object from which to extract texture coordinates
00070   // information.
00071   void SetTCoords(vtkDataSet *);
00072   vtkDataSet *GetTCoords();
00073 
00074   // Description:
00075   // Set / get the object from which to extract tensor data.
00076   void SetTensors(vtkDataSet *);
00077   vtkDataSet *GetTensors();
00078 
00079   // Description:
00080   // Set the object from which to extract a field and the name
00081   // of the field
00082   void AddField(const char* name, vtkDataSet* input);
00083 
00084 protected:
00085   VISU_MergeFilter();
00086   ~VISU_MergeFilter();
00087 
00088   // Usual data generation method
00089   void Execute();
00090 
00091   VISU::TFieldList* FieldList;
00092 private:
00093   VISU_MergeFilter(const VISU_MergeFilter&);  // Not implemented.
00094   void operator=(const VISU_MergeFilter&);  // Not implemented.
00095 };
00096 
00097 #endif
00098 
00099