VTK  9.0.20200604
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 =========================================================================*/
35 #ifndef vtkHyperTreeGridAlgorithm_h
36 #define vtkHyperTreeGridAlgorithm_h
37 
38 #include "vtkAlgorithm.h"
39 #include "vtkCommonExecutionModelModule.h" // For export macro
40 
41 class vtkBitArray;
43 class vtkHyperTreeGrid;
44 class vtkPolyData;
46 
47 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkHyperTreeGridAlgorithm : public vtkAlgorithm
48 {
49 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  vtkDataObject* GetOutput();
58  vtkDataObject* GetOutput(int);
59  virtual void SetOutput(vtkDataObject*);
61 
63 
66  vtkHyperTreeGrid* GetHyperTreeGridOutput();
67  vtkHyperTreeGrid* GetHyperTreeGridOutput(int);
69 
71 
74  vtkPolyData* GetPolyDataOutput();
75  vtkPolyData* GetPolyDataOutput(int);
77 
79 
82  vtkUnstructuredGrid* GetUnstructuredGridOutput();
83  vtkUnstructuredGrid* GetUnstructuredGridOutput(int);
85 
91 
93 
98  void SetInputData(vtkDataObject*);
99  void SetInputData(int, vtkDataObject*);
101 
103 
108  void AddInputData(vtkDataObject*);
109  void AddInputData(int, vtkDataObject*);
111 
112 protected:
114  ~vtkHyperTreeGridAlgorithm() override;
115 
119  int RequestDataObject(
120  vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector* outputVector);
121 
122  // convenience method
123  virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
124 
129  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
130 
135  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
136 
141  virtual int ProcessTrees(vtkHyperTreeGrid*, vtkDataObject*) = 0;
142 
144 
147  int FillInputPortInformation(int, vtkInformation*) override;
148  int FillOutputPortInformation(int, vtkInformation*) override;
150 
152 
158 
160 
165 
166 private:
168  void operator=(const vtkHyperTreeGridAlgorithm&) = delete;
169 };
170 
171 #endif
vtkHyperTreeGridAlgorithm::InData
vtkDataSetAttributes * InData
Reference to input and output data.
Definition: vtkHyperTreeGridAlgorithm.h:155
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:63
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:53
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkHyperTreeGridAlgorithm::OutData
vtkDataSetAttributes * OutData
Definition: vtkHyperTreeGridAlgorithm.h:156
vtkHyperTreeGridAlgorithm::AppropriateOutput
bool AppropriateOutput
JB Si a vrai, l'objet output aura le meme type que le type d'objet en entree input.
Definition: vtkHyperTreeGridAlgorithm.h:163
vtkAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:93
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkAlgorithm::ProcessRequest
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkHyperTreeGridAlgorithm
Superclass for algorithms that produce a hyper tree grid as output.
Definition: vtkHyperTreeGridAlgorithm.h:47
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition: vtkHyperTreeGrid.h:95