VTK
vtkHyperTreeGridAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperTreeGridAlgorithm.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 vtkHyperTreeGridAlgorithm_h
37 #define vtkHyperTreeGridAlgorithm_h
38 
39 #include "vtkCommonExecutionModelModule.h" // For export macro
40 #include "vtkAlgorithm.h"
41 #include "vtkHyperTreeGrid.h" // makes things a bit easier
42 
43 class vtkDataSet;
44 class vtkHyperTreeGrid;
45 
46 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkHyperTreeGridAlgorithm : public vtkAlgorithm
47 {
48 public:
50  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
51 
53 
56  vtkHyperTreeGrid *GetOutput();
57  vtkHyperTreeGrid *GetOutput(int);
58  virtual void SetOutput(vtkDataObject* d);
60 
66  vtkInformationVector*) VTK_OVERRIDE;
67 
68  // this method is not recommended for use, but lots of old style filters
69  // use it
70  vtkDataObject* GetInput();
71  vtkDataObject *GetInput(int port);
72  vtkHyperTreeGrid *GetHyperTreeGridInput(int port);
73 
75 
80  void SetInputData(vtkDataObject *);
81  void SetInputData(int, vtkDataObject*);
83 
85 
90  void AddInputData(vtkDataObject *);
91  void AddInputData(int, vtkDataObject*);
93 
94 protected:
96  ~vtkHyperTreeGridAlgorithm() VTK_OVERRIDE;
97 
98  // convenience method
99  virtual int RequestInformation(vtkInformation* request,
100  vtkInformationVector** inputVector,
101  vtkInformationVector* outputVector);
102 
107  virtual int RequestData(vtkInformation* request,
108  vtkInformationVector** inputVector,
109  vtkInformationVector* outputVector);
110 
115  virtual int RequestUpdateExtent(vtkInformation*,
117  vtkInformationVector*);
118 
119  // see algorithm for more info
120  int FillOutputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
121  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
122 
123 private:
124  vtkHyperTreeGridAlgorithm(const vtkHyperTreeGridAlgorithm&) VTK_DELETE_FUNCTION;
125  void operator=(const vtkHyperTreeGridAlgorithm&) VTK_DELETE_FUNCTION;
126 };
127 
128 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce a hyper tree grid as output.
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64