VTK  9.1.0
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
50class vtkArrayData;
51class vtkDataSet;
52
53class VTKCOMMONEXECUTIONMODEL_EXPORT vtkArrayDataAlgorithm : public vtkAlgorithm
54{
55public:
58 void PrintSelf(ostream& os, vtkIndent indent) override;
59
65
69 vtkArrayData* GetOutput() { return this->GetOutput(0); }
71
77 void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
79
80protected:
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
100
101 // see algorithm for more info
104
105private:
107 void operator=(const vtkArrayDataAlgorithm&) = delete;
108};
109
110#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:114
Superclass for algorithms that produce vtkArrayDatas as output.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetInputData(int index, vtkDataObject *obj)
vtkArrayData * GetOutput(int index)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
static vtkArrayDataAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkArrayData * GetOutput()
Get the output data object for a port on this algorithm.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
~vtkArrayDataAlgorithm() override
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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:88
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ index
Definition: vtkX3D.h:252
int vtkTypeBool
Definition: vtkABI.h:69