VTK
vtkPassArrays.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPassArrays.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
62 #ifndef __vtkPassArrays_h
63 #define __vtkPassArrays_h
64 
65 #include "vtkDataObjectAlgorithm.h"
66 
68 {
69 public:
70  static vtkPassArrays* New();
72  void PrintSelf(ostream& os, vtkIndent indent);
73 
77  virtual void AddArray(int fieldType, const char* name);
78 
80  virtual void ClearArrays();
81 
83 
85  vtkSetMacro(RemoveArrays, bool);
86  vtkGetMacro(RemoveArrays, bool);
87  vtkBooleanMacro(RemoveArrays, bool);
89 
91 
94  vtkSetMacro(UseFieldTypes, bool);
95  vtkGetMacro(UseFieldTypes, bool);
96  vtkBooleanMacro(UseFieldTypes, bool);
98 
103  virtual void AddFieldType(int fieldType);
104 
106  virtual void ClearFieldTypes();
107 
109 
110  virtual int ProcessRequest(vtkInformation* request,
111  vtkInformationVector** inputVector,
112  vtkInformationVector* outputVector);
114 
115 protected:
116  vtkPassArrays();
117  ~vtkPassArrays();
118 
120 
121  virtual int RequestDataObject(vtkInformation* request,
122  vtkInformationVector** inputVector,
123  vtkInformationVector* outputVector);
125 
126  int RequestData(
127  vtkInformation*,
130 
133 
134  //BTX
135  class Internals;
136  Internals* Implementation;
137  //ETX
138 
139 private:
140  vtkPassArrays(const vtkPassArrays&); // Not implemented
141  void operator=(const vtkPassArrays&); // Not implemented
142 };
143 
144 #endif
145 
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Passes a subset of arrays to the output.
Definition: vtkPassArrays.h:67
a simple class to control print indentation
Definition: vtkIndent.h:37
Superclass for algorithms that produce only data object as output.
Internals * Implementation
#define VTK_INFOVIS_EXPORT
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.