VTK
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 =========================================================================*/
36 #ifndef __vtkHyperOctreeAlgorithm_h
37 #define __vtkHyperOctreeAlgorithm_h
38 
39 #include "vtkAlgorithm.h"
40 #include "vtkHyperOctree.h" // makes things a bit easier
41 
42 class vtkDataSet;
43 class vtkHyperOctree;
44 
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
53  vtkHyperOctree *GetOutput();
54  vtkHyperOctree *GetOutput(int);
55  virtual void SetOutput(vtkDataObject* d);
57 
59 
60  virtual int ProcessRequest(vtkInformation*,
64 
65  // this method is not recommended for use, but lots of old style filters
66  // use it
67  vtkDataObject* GetInput();
68  vtkDataObject *GetInput(int port);
69  vtkHyperOctree *GetHyperOctreeInput(int port);
70 
72 
73  void SetInput(vtkDataObject *);
74  void SetInput(int, vtkDataObject*);
76 
78 
79  void AddInput(vtkDataObject *);
80  void AddInput(int, vtkDataObject*);
82 
83 protected:
86 
87  // convenience method
88  virtual int RequestInformation(vtkInformation* request,
89  vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
93 
95  virtual int RequestData(vtkInformation* request,
96  vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector);
99 
101 
103  virtual int RequestUpdateExtent(vtkInformation*,
107 
108 
109 
111 
112  virtual void ExecuteData(vtkDataObject *output);
113  virtual void Execute();
115 
116  // see algorithm for more info
117  virtual int FillOutputPortInformation(int port, vtkInformation* info);
118  virtual int FillInputPortInformation(int port, vtkInformation* info);
119 
120 private:
121  vtkHyperOctreeAlgorithm(const vtkHyperOctreeAlgorithm&); // Not implemented.
122  void operator=(const vtkHyperOctreeAlgorithm&); // Not implemented.
123 };
124 
125 #endif
Superclass for algorithms that produce only octree as output.
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)
A dataset structured as a tree where each node has exactly 2^n children.
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)
Store zero or more vtkInformation instances.
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)