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 
43 #ifndef vtkArrayDataAlgorithm_h
44 #define vtkArrayDataAlgorithm_h
45 
46 #include "vtkCommonExecutionModelModule.h" // For export macro
47 #include "vtkAlgorithm.h"
48 #include "vtkArrayData.h"
49 
50 class vtkDataSet;
51 
53 {
54 public:
55  static vtkArrayDataAlgorithm *New();
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
61  virtual int ProcessRequest(vtkInformation*,
65 
67 
68  vtkArrayData* GetOutput() { return this->GetOutput(0); }
69  vtkArrayData* GetOutput(int index);
71 
73 
76  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
77  void SetInputData(int index, vtkDataObject* obj);
79 
80 protected:
83 
84  // convenience method
85  virtual int RequestInformation(vtkInformation* request,
86  vtkInformationVector** inputVector,
87  vtkInformationVector* outputVector);
88 
90 
92  virtual int RequestData(vtkInformation* request,
93  vtkInformationVector** inputVector,
94  vtkInformationVector* outputVector);
96 
98 
100  virtual int RequestUpdateExtent(vtkInformation*,
104 
105  // see algorithm for more info
108 
109 private:
110  vtkArrayDataAlgorithm(const vtkArrayDataAlgorithm&); // Not implemented.
111  void operator=(const vtkArrayDataAlgorithm&); // Not implemented.
112 };
113 
114 #endif
115 // VTK-HeaderTest-Exclude: vtkArrayDataAlgorithm.h
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
void SetInputData(vtkDataObject *obj)
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:51
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int FillInputPortInformation(int port, vtkInformation *info)
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
void PrintSelf(ostream &os, vtkIndent indent)