VTK
vtkPiecewiseFunctionAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPiecewiseFunctionAlgorithm.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef vtkPiecewiseFunctionAlgorithm_h
33 #define vtkPiecewiseFunctionAlgorithm_h
34 
35 #include "vtkCommonExecutionModelModule.h" // For export macro
36 #include "vtkAlgorithm.h"
37 #include "vtkPiecewiseFunction.h" // makes things a bit easier
38 
39 class vtkDataSet;
40 class vtkDataObject;
41 
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkDataObject* GetOutput();
52  vtkDataObject* GetOutput(int);
53  virtual void SetOutput(vtkDataObject* d);
55 
57 
58  virtual int ProcessRequest(vtkInformation*,
62 
63  // this method is not recommended for use, but lots of old style filters
64  // use it
65  vtkDataObject* GetInput();
66  vtkDataObject *GetInput(int port);
67 
69 
72  void SetInputData(vtkDataObject *);
73  void SetInputData(int, vtkDataObject*);
75 
77 
80  void AddInputData(vtkDataObject *);
81  void AddInputData(int, vtkDataObject*);
83 
84 protected:
87 
89 
91  virtual int RequestData(vtkInformation* request,
92  vtkInformationVector** inputVector,
93  vtkInformationVector* outputVector);
95 
96  // see algorithm for more info
99 
100 private:
102  void operator=(const vtkPiecewiseFunctionAlgorithm&); // Not implemented.
103 };
104 
105 #endif
#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)
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
Superclass for algorithms that produce only piecewise function as output.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)