VTK  9.3.20240419
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
Superclass for algorithms that produce vtkArrayDatas as output.
Given a vtkArrayData object containing one-or-more vtkArray instances, produces a vtkArrayData contai...
~vtkExtractArray() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkExtractArray * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkIdType
Definition: vtkType.h:315