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 =========================================================================*/
36 #ifndef __vtkPiecewiseFunctionAlgorithm_h
37 #define __vtkPiecewiseFunctionAlgorithm_h
38 
39 #include "vtkAlgorithm.h"
40 #include "vtkPiecewiseFunction.h" // makes things a bit easier
41 
42 class vtkDataSet;
43 class vtkDataObject;
44 
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
54  vtkDataObject* GetOutput();
55  vtkDataObject* GetOutput(int);
56  virtual void SetOutput(vtkDataObject* d);
58 
60 
61  virtual int ProcessRequest(vtkInformation*,
65 
66  // this method is not recommended for use, but lots of old style filters
67  // use it
68  vtkDataObject* GetInput();
69  vtkDataObject *GetInput(int port);
70 
72 
79  void SetInput(vtkDataObject *);
80  void SetInput(int, vtkDataObject*);
82 
84 
88  void AddInput(vtkDataObject *);
89  void AddInput(int, vtkDataObject*);
91 
92 protected:
95 
97 
99  virtual int RequestData(vtkInformation* request,
100  vtkInformationVector** inputVector,
101  vtkInformationVector* outputVector);
103 
108  int UpdateExtentIsEmpty(vtkDataObject *output);
109 
111 
112  virtual void ExecuteData(vtkDataObject *output);
113  virtual void Execute();
115 
116  // see algorithm for more info
119 
120 private:
122  void operator=(const vtkPiecewiseFunctionAlgorithm&); // Not implemented.
123 };
124 
125 #endif