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 =========================================================================*/
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 
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*,
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*,
106 
107  // see algorithm for more info
110 
111 private:
112  vtkHyperOctreeAlgorithm(const vtkHyperOctreeAlgorithm&); // Not implemented.
113  void operator=(const vtkHyperOctreeAlgorithm&); // Not implemented.
114 };
115 
116 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Superclass for algorithms that produce only octree as output.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
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:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)