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:
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
65  vtkInformationVector*) override;
66 
70  vtkArrayData* GetOutput() { return this->GetOutput(0); }
72 
78  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
79  void SetInputData(int index, vtkDataObject* obj);
80 
81 protected:
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 
105 
106  // see algorithm for more info
109 
110 private:
112  void operator=(const vtkArrayDataAlgorithm&) = delete;
113 };
114 
115 #endif
116 // VTK-HeaderTest-Exclude: vtkArrayDataAlgorithm.h
vtkArrayDataAlgorithm::vtkArrayDataAlgorithm
vtkArrayDataAlgorithm()
vtkArrayDataAlgorithm::~vtkArrayDataAlgorithm
~vtkArrayDataAlgorithm() override
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkArrayData.h
vtkArrayDataAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkArrayDataAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkArrayDataAlgorithm::SetInputData
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
Definition: vtkArrayDataAlgorithm.h:78
vtkArrayDataAlgorithm::SetInputData
void SetInputData(int index, vtkDataObject *obj)
vtkArrayData
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:53
vtkArrayDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkArrayDataAlgorithm::GetOutput
vtkArrayData * GetOutput()
Get the output data object for a port on this algorithm.
Definition: vtkArrayDataAlgorithm.h:70
vtkAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkArrayDataAlgorithm::ProcessRequest
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkArrayDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkArrayDataAlgorithm
Superclass for algorithms that produce vtkArrayDatas as output.
Definition: vtkArrayDataAlgorithm.h:54
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkArrayDataAlgorithm::New
static vtkArrayDataAlgorithm * New()
vtkArrayDataAlgorithm::GetOutput
vtkArrayData * GetOutput(int index)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkArrayDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkArrayDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.