VTK
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 "vtkCommonExecutionModelModule.h" // For export macro
48 #include "vtkAlgorithm.h"
49 #include "vtkArrayData.h"
50 
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  vtkInformationVector*) override;
66 
70  vtkArrayData* GetOutput() { return this->GetOutput(0); }
71  vtkArrayData* GetOutput(int index);
72 
78  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
79  void SetInputData(int index, vtkDataObject* obj);
80 
81 protected:
83  ~vtkArrayDataAlgorithm() override;
84 
85  // convenience method
86  virtual int RequestInformation(vtkInformation* request,
87  vtkInformationVector** inputVector,
88  vtkInformationVector* outputVector);
89 
94  virtual int RequestData(vtkInformation* request,
95  vtkInformationVector** inputVector,
96  vtkInformationVector* outputVector);
97 
102  virtual int RequestUpdateExtent(vtkInformation*,
105 
106  // see algorithm for more info
108  int FillInputPortInformation(int port, vtkInformation* info) override;
109 
110 private:
112  void operator=(const vtkArrayDataAlgorithm&) = delete;
113 };
114 
115 #endif
116 // VTK-HeaderTest-Exclude: vtkArrayDataAlgorithm.h
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
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:52
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
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:64