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 =========================================================================*/
35 #ifndef vtkHyperTreeGridAlgorithm_h
36 #define vtkHyperTreeGridAlgorithm_h
37 
38 #include "vtkCommonExecutionModelModule.h" // For export macro
39 #include "vtkAlgorithm.h"
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 
89  virtual int ProcessRequest( vtkInformation*,
91  vtkInformationVector*) override;
92 
94 
99  void SetInputData( vtkDataObject* );
100  void SetInputData( int, vtkDataObject* );
102 
104 
109  void AddInputData( vtkDataObject* );
110  void AddInputData( int, vtkDataObject* );
112 
113 protected:
115  ~vtkHyperTreeGridAlgorithm() override;
116 
120  int RequestDataObject( vtkInformation*,
121  vtkInformationVector** inputVector ,
122  vtkInformationVector* outputVector);
123 
124  // convenience method
125  virtual int RequestInformation( vtkInformation*,
128 
133  virtual int RequestData( vtkInformation*,
136 
141  virtual int RequestUpdateExtent( vtkInformation*,
144 
149  virtual int ProcessTrees( vtkHyperTreeGrid*,
150  vtkDataObject* ) = 0;
151 
153 
156  int FillInputPortInformation( int, vtkInformation* ) override;
157  int FillOutputPortInformation( int, vtkInformation* ) override;
159 
161 
167 
169 
174 
175 private:
177  void operator=(const vtkHyperTreeGridAlgorithm&) = delete;
178 };
179 
180 #endif
vtkDataSetAttributes * InData
Reference to input and output data.
Store vtkAlgorithm input/output information.
bool AppropriateOutput
JB Si a vrai, l'objet output aura le meme type que le type d'objet en entree input.
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...
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkDataSetAttributes * OutData
Reference to input and output data.
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
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
dataset represents arbitrary combinations of all possible cell types
represent and manipulate attribute data in a dataset
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36
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