VTK  9.0.20210225
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 =========================================================================*/
32 #ifndef vtkPassSelectedArrays_h
33 #define vtkPassSelectedArrays_h
34 
35 #include "vtkDataObject.h" // for vtkDataObject::FieldAssociations
36 #include "vtkFiltersGeneralModule.h" // For export macro
38 #include "vtkSmartPointer.h" // for ivar
39 
41 
42 class VTKFILTERSGENERAL_EXPORT vtkPassSelectedArrays : public vtkPassInputTypeAlgorithm
43 {
44 public:
45  static vtkPassSelectedArrays* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
54  vtkSetMacro(Enabled, bool);
55  vtkGetMacro(Enabled, bool);
56  vtkBooleanMacro(Enabled, bool);
58 
65  vtkDataArraySelection* GetArraySelection(int association);
66 
68 
73  {
74  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_POINTS);
75  }
77  {
78  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_CELLS);
79  }
81  {
82  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_NONE);
83  }
85  {
86  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_VERTICES);
87  }
89  {
90  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_EDGES);
91  }
93  {
94  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_ROWS);
95  }
97 
98 protected:
100  ~vtkPassSelectedArrays() override;
101 
102  int FillInputPortInformation(int port, vtkInformation* info) override;
104 
105 private:
107  void operator=(const vtkPassSelectedArrays&) = delete;
108 
109  bool Enabled;
111 };
112 
113 #endif
vtkDataObject::FIELD_ASSOCIATION_EDGES
Definition: vtkDataObject.h:254
vtkPassSelectedArrays::GetFieldDataArraySelection
vtkDataArraySelection * GetFieldDataArraySelection()
Definition: vtkPassSelectedArrays.h:80
vtkPassInputTypeAlgorithm.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPassSelectedArrays::GetRowDataArraySelection
vtkDataArraySelection * GetRowDataArraySelection()
Definition: vtkPassSelectedArrays.h:92
vtkPassSelectedArrays::GetPointDataArraySelection
vtkDataArraySelection * GetPointDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
Definition: vtkPassSelectedArrays.h:72
vtkSmartPointer< vtkDataArraySelection >
vtkPassInputTypeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataObject::FIELD_ASSOCIATION_POINTS
Definition: vtkDataObject.h:249
vtkDataObject::FIELD_ASSOCIATION_NONE
Definition: vtkDataObject.h:251
vtkPassSelectedArrays
pass through chosen arrays
Definition: vtkPassSelectedArrays.h:42
vtkDataObject::FIELD_ASSOCIATION_VERTICES
Definition: vtkDataObject.h:253
vtkDataArraySelection
Store on/off settings for data arrays for a vtkSource.
Definition: vtkDataArraySelection.h:34
vtkX3D::port
Definition: vtkX3D.h:453
vtkDataObject::FIELD_ASSOCIATION_CELLS
Definition: vtkDataObject.h:250
vtkPassInputTypeAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkPassInputTypeAlgorithm.h:182
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSmartPointer.h
vtkDataObject::NUMBER_OF_ASSOCIATIONS
Definition: vtkDataObject.h:256
vtkPassSelectedArrays::GetCellDataArraySelection
vtkDataArraySelection * GetCellDataArraySelection()
Definition: vtkPassSelectedArrays.h:76
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkDataObject.h
vtkPassSelectedArrays::GetVertexDataArraySelection
vtkDataArraySelection * GetVertexDataArraySelection()
Definition: vtkPassSelectedArrays.h:84
vtkPassInputTypeAlgorithm::New
static vtkPassInputTypeAlgorithm * New()
vtkPassInputTypeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject::FIELD_ASSOCIATION_ROWS
Definition: vtkDataObject.h:255
vtkPassSelectedArrays::GetEdgeDataArraySelection
vtkDataArraySelection * GetEdgeDataArraySelection()
Definition: vtkPassSelectedArrays.h:88
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:51