VTK  9.3.1
vtkExtractArray.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-NVIDIA-USGov
4 
18 #ifndef vtkExtractArray_h
19 #define vtkExtractArray_h
20 
21 #include "vtkArrayDataAlgorithm.h"
22 #include "vtkFiltersGeneralModule.h" // For export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class VTKFILTERSGENERAL_EXPORT vtkExtractArray : public vtkArrayDataAlgorithm
26 {
27 public:
28  static vtkExtractArray* New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
36  vtkGetMacro(Index, vtkIdType);
37  vtkSetMacro(Index, vtkIdType);
39 
40 protected:
42  ~vtkExtractArray() override;
43 
45 
47 
48 private:
49  vtkExtractArray(const vtkExtractArray&) = delete;
50  void operator=(const vtkExtractArray&) = delete;
51 
52  vtkIdType Index;
53 };
54 
55 VTK_ABI_NAMESPACE_END
56 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:315
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass for algorithms that produce vtkArrayDatas as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkArrayDataAlgorithm * New()
Store zero or more vtkInformation instances.
Given a vtkArrayData object containing one-or-more vtkArray instances, produces a vtkArrayData contai...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.