VTK  9.2.6
vtkArrayDataAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkArrayDataAlgorithm.h
5 
6 
7  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8  All rights reserved.
9  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notice for more information.
14 
15 =========================================================================*/
16 /*
17 -------------------------------------------------------------------------
18  Copyright 2008 Sandia Corporation.
19  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
20  the U.S. Government retains certain rights in this software.
21 -------------------------------------------------------------------------
22 */
23 
44 #ifndef vtkArrayDataAlgorithm_h
45 #define vtkArrayDataAlgorithm_h
46 
47 #include "vtkAlgorithm.h"
48 #include "vtkCommonExecutionModelModule.h" // For export macro
49 
50 class vtkArrayData;
51 class vtkDataSet;
52 
53 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkArrayDataAlgorithm : public vtkAlgorithm
54 {
55 public:
56  static vtkArrayDataAlgorithm* New();
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
65 
69  vtkArrayData* GetOutput() { return this->GetOutput(0); }
70  vtkArrayData* GetOutput(int index);
71 
77  void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
78  void SetInputData(int index, vtkDataObject* obj);
79 
80 protected:
82  ~vtkArrayDataAlgorithm() override;
83 
84  // convenience method
85  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
86  vtkInformationVector* outputVector);
87 
92  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
93  vtkInformationVector* outputVector);
94 
99  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
100 
101  // see algorithm for more info
103  int FillInputPortInformation(int port, vtkInformation* info) override;
104 
105 private:
107  void operator=(const vtkArrayDataAlgorithm&) = delete;
108 };
109 
110 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
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:51
int vtkTypeBool
Definition: vtkABI.h:69
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:62
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:39
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:65