VTK  9.2.6
vtkPassSelectedArrays.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPassSelectedArrays.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 =========================================================================*/
35 #ifndef vtkPassSelectedArrays_h
36 #define vtkPassSelectedArrays_h
37 
38 #include "vtkDataObject.h" // for vtkDataObject::FieldAssociations
39 #include "vtkFiltersGeneralModule.h" // For export macro
41 #include "vtkSmartPointer.h" // for ivar
42 
44 
45 class VTKFILTERSGENERAL_EXPORT vtkPassSelectedArrays : public vtkPassInputTypeAlgorithm
46 {
47 public:
48  static vtkPassSelectedArrays* New();
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
57  vtkSetMacro(Enabled, bool);
58  vtkGetMacro(Enabled, bool);
59  vtkBooleanMacro(Enabled, bool);
61 
68  vtkDataArraySelection* GetArraySelection(int association);
69 
71 
76  {
77  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_POINTS);
78  }
80  {
81  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_CELLS);
82  }
84  {
85  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_NONE);
86  }
88  {
89  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_VERTICES);
90  }
92  {
93  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_EDGES);
94  }
96  {
97  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_ROWS);
98  }
100 
101 protected:
103  ~vtkPassSelectedArrays() override;
104 
105  int FillInputPortInformation(int port, vtkInformation* info) override;
107 
108 private:
110  void operator=(const vtkPassSelectedArrays&) = delete;
111 
112  bool Enabled;
114 };
115 
116 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
vtkDataArraySelection * GetPointDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
pass through chosen arrays
vtkDataArraySelection * GetEdgeDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
vtkDataArraySelection * GetVertexDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
a simple class to control print indentation
Definition: vtkIndent.h:39
Store on/off settings for data arrays, etc.
vtkDataArraySelection * GetCellDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataArraySelection * GetRowDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArraySelection * GetFieldDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()