VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkHyperOctreeAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperOctreeAlgorithm.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 =========================================================================*/
30 #ifndef __vtkHyperOctreeAlgorithm_h
31 #define __vtkHyperOctreeAlgorithm_h
32 
33 #include "vtkCommonExecutionModelModule.h" // For export macro
34 #include "vtkAlgorithm.h"
35 #include "vtkHyperOctree.h" // makes things a bit easier
36 
37 class vtkDataSet;
38 class vtkHyperOctree;
39 
40 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkHyperOctreeAlgorithm : public vtkAlgorithm
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkHyperOctree *GetOutput();
49  vtkHyperOctree *GetOutput(int);
50  virtual void SetOutput(vtkDataObject* d);
52 
54 
55  virtual int ProcessRequest(vtkInformation*,
56  vtkInformationVector**,
57  vtkInformationVector*);
59 
60  // this method is not recommended for use, but lots of old style filters
61  // use it
62  vtkDataObject* GetInput();
63  vtkDataObject *GetInput(int port);
64  vtkHyperOctree *GetHyperOctreeInput(int port);
65 
67 
70  void SetInputData(vtkDataObject *);
71  void SetInputData(int, vtkDataObject*);
73 
75 
78  void AddInputData(vtkDataObject *);
79  void AddInputData(int, vtkDataObject*);
81 
82 protected:
85 
86  // convenience method
87  virtual int RequestInformation(vtkInformation* request,
88  vtkInformationVector** inputVector,
89  vtkInformationVector* outputVector);
90 
92 
94  virtual int RequestData(vtkInformation* request,
95  vtkInformationVector** inputVector,
96  vtkInformationVector* outputVector);
98 
100 
102  virtual int RequestUpdateExtent(vtkInformation*,
103  vtkInformationVector**,
104  vtkInformationVector*);
106 
107  // see algorithm for more info
108  virtual int FillOutputPortInformation(int port, vtkInformation* info);
109  virtual int FillInputPortInformation(int port, vtkInformation* info);
110 
111 private:
112  vtkHyperOctreeAlgorithm(const vtkHyperOctreeAlgorithm&); // Not implemented.
113  void operator=(const vtkHyperOctreeAlgorithm&); // Not implemented.
114 };
115 
116 #endif
Superclass for algorithms that produce only octree as output.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
virtual int FillOutputPortInformation(int port, vtkInformation *info)
virtual int FillInputPortInformation(int port, vtkInformation *info)
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)