VTK
vtkArrayDataAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkArrayDataAlgorithm.h
5 
6 -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10 -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
47 #ifndef __vtkArrayDataAlgorithm_h
48 #define __vtkArrayDataAlgorithm_h
49 
50 #include "vtkAlgorithm.h"
51 #include "vtkArrayData.h"
52 
53 class vtkDataSet;
54 
56 {
57 public:
58  static vtkArrayDataAlgorithm *New();
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
64  virtual int ProcessRequest(vtkInformation*,
68 
70 
71  vtkArrayData* GetOutput() { return this->GetOutput(0); }
72  vtkArrayData* GetOutput(int index);
74 
76 
83  void SetInput(vtkDataObject * obj) { this->SetInput(0, obj); }
84  void SetInput(int index, vtkDataObject* obj);
86 
87 protected:
90 
91  // convenience method
92  virtual int RequestInformation(vtkInformation* request,
93  vtkInformationVector** inputVector,
94  vtkInformationVector* outputVector);
95 
97 
99  virtual int RequestData(vtkInformation* request,
100  vtkInformationVector** inputVector,
101  vtkInformationVector* outputVector);
103 
105 
107  virtual int RequestUpdateExtent(vtkInformation*,
111 
112  // see algorithm for more info
113  virtual int FillOutputPortInformation(int port, vtkInformation* info);
114  virtual int FillInputPortInformation(int port, vtkInformation* info);
115 
116 private:
117  vtkArrayDataAlgorithm(const vtkArrayDataAlgorithm&); // Not implemented.
118  void operator=(const vtkArrayDataAlgorithm&); // Not implemented.
119 };
120 
121 #endif
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
void SetInput(vtkDataObject *obj)
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:50
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int FillInputPortInformation(int port, vtkInformation *info)
Superclass for algorithms that produce vtkArrayDatas as output.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)