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
51class vtkDataSet;
52
53class VTKCOMMONEXECUTIONMODEL_EXPORT vtkArrayDataAlgorithm : public vtkAlgorithm
54{
55public:
58 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
59
65 vtkInformationVector*) VTK_OVERRIDE;
66
70 vtkArrayData* GetOutput() { return this->GetOutput(0); }
72
78 void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
80
81protected:
83 ~vtkArrayDataAlgorithm() VTK_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
107 int FillOutputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
108 int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
109
110private:
111 vtkArrayDataAlgorithm(const vtkArrayDataAlgorithm&) VTK_DELETE_FUNCTION;
112 void operator=(const vtkArrayDataAlgorithm&) VTK_DELETE_FUNCTION;
113};
114
115#endif
116// VTK-HeaderTest-Exclude: vtkArrayDataAlgorithm.h
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
Superclass for algorithms that produce vtkArrayDatas as output.
void SetInputData(int index, vtkDataObject *obj)
vtkArrayData * GetOutput(int index)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
static vtkArrayDataAlgorithm * New()
vtkArrayData * GetOutput()
Get the output data object for a port on this algorithm.
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
~vtkArrayDataAlgorithm() override
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:53
general representation of visualization data
Definition: vtkDataObject.h:65
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246