VTK
dox/Infovis/vtkPassArrays.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPassArrays.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00062 #ifndef __vtkPassArrays_h
00063 #define __vtkPassArrays_h
00064 
00065 #include "vtkDataObjectAlgorithm.h"
00066 
00067 class VTK_INFOVIS_EXPORT vtkPassArrays : public vtkDataObjectAlgorithm
00068 {
00069 public:
00070   static vtkPassArrays* New();
00071   vtkTypeMacro(vtkPassArrays,vtkDataObjectAlgorithm);
00072   void PrintSelf(ostream& os, vtkIndent indent);
00073   
00077   virtual void AddArray(int fieldType, const char* name);
00078   
00080   virtual void ClearArrays();
00081   
00083 
00085   vtkSetMacro(RemoveArrays, bool);
00086   vtkGetMacro(RemoveArrays, bool);
00087   vtkBooleanMacro(RemoveArrays, bool);
00089 
00091 
00094   vtkSetMacro(UseFieldTypes, bool);
00095   vtkGetMacro(UseFieldTypes, bool);
00096   vtkBooleanMacro(UseFieldTypes, bool);
00098 
00103   virtual void AddFieldType(int fieldType);
00104 
00106   virtual void ClearFieldTypes();
00107 
00109 
00110   virtual int ProcessRequest(vtkInformation* request, 
00111                              vtkInformationVector** inputVector,
00112                              vtkInformationVector* outputVector);
00114 
00115 protected:
00116   vtkPassArrays();
00117   ~vtkPassArrays();
00118 
00120 
00121   virtual int RequestDataObject(vtkInformation* request,
00122                                 vtkInformationVector** inputVector,
00123                                 vtkInformationVector* outputVector);
00125   
00126   int RequestData(
00127     vtkInformation*, 
00128     vtkInformationVector**, 
00129     vtkInformationVector*);
00130 
00131   bool RemoveArrays;
00132   bool UseFieldTypes;
00133 
00134   //BTX
00135   class Internals;
00136   Internals* Implementation;
00137   //ETX
00138     
00139 private:
00140   vtkPassArrays(const vtkPassArrays&); // Not implemented
00141   void operator=(const vtkPassArrays&);   // Not implemented
00142 };
00143 
00144 #endif
00145