VTK  9.3.1
vtkArrayDataAlgorithm.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-USGov
24 #ifndef vtkArrayDataAlgorithm_h
25 #define vtkArrayDataAlgorithm_h
26 
27 #include "vtkAlgorithm.h"
28 #include "vtkCommonExecutionModelModule.h" // For export macro
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class vtkArrayData;
32 class vtkDataSet;
33 
34 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkArrayDataAlgorithm : public vtkAlgorithm
35 {
36 public:
37  static vtkArrayDataAlgorithm* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
46 
50  vtkArrayData* GetOutput() { return this->GetOutput(0); }
51  vtkArrayData* GetOutput(int index);
52 
58  void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
59  void SetInputData(int index, vtkDataObject* obj);
60 
61 protected:
63  ~vtkArrayDataAlgorithm() override;
64 
65  // convenience method
66  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
67  vtkInformationVector* outputVector);
68 
73  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
74  vtkInformationVector* outputVector);
75 
80  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
81 
82  // see algorithm for more info
85 
86 private:
88  void operator=(const vtkArrayDataAlgorithm&) = delete;
89 };
90 
91 VTK_ABI_NAMESPACE_END
92 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:35
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkArrayData * GetOutput()
Get the output data object for a port on this algorithm.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Superclass for algorithms that produce vtkArrayDatas as output.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54