VTK  9.0.2
vtkDataObjectGenerator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataObjectGenerator.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 =========================================================================*/
37 #ifndef vtkDataObjectGenerator_h
38 #define vtkDataObjectGenerator_h
39 
40 #include "vtkDataObjectAlgorithm.h"
41 #include "vtkFiltersCoreModule.h" // For export macro
42 
43 class vtkInternalStructureCache;
44 
45 class VTKFILTERSCORE_EXPORT vtkDataObjectGenerator : public vtkDataObjectAlgorithm
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  vtkSetStringMacro(Program);
57  vtkGetStringMacro(Program);
59 
60 protected:
63 
65  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
67  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
69  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
71  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
72 
73  // the string to parse to create a structure
74  char* Program;
75  // a record of the structure
76  vtkInternalStructureCache* Structure;
77 
78  // Helper for RequestDataObject
79  vtkDataObject* CreateOutputDataObjects(vtkInternalStructureCache* structure);
80  // Helper for RequestData
82  vtkInternalStructureCache* structure, int level, int stripe = 0);
83 
84  // to determine which composite data stripe to fill in
87 
88  // create the templated atomic data sets
100 
101  // used to spatially separate sub data sets within composites
102  double XOffset; // increases for each dataset index
103  double YOffset; // increases for each sub data set
104  double ZOffset; // increases for each group index
105 
106  // used to filling in point and cell values with unique Ids
109 
110  // assign point and cell values to each point and cell
112 
113 private:
115  void operator=(const vtkDataObjectGenerator&) = delete;
116 };
117 
118 #endif
Superclass for algorithms that produce only data object as output.
produces simple (composite or atomic) data sets for testing.
void MakeUnstructuredGrid1(vtkDataSet *ds)
vtkInternalStructureCache * Structure
void MakeUnstructuredGrid2(vtkDataSet *ds)
void MakeImageData1(vtkDataSet *ds)
void MakeStructuredGrid1(vtkDataSet *ds)
void MakeImageData2(vtkDataSet *ds)
void MakeRectilinearGrid1(vtkDataSet *ds)
void MakePolyData2(vtkDataSet *ds)
~vtkDataObjectGenerator() override
int RequestDataObject(vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV) override
This is called by the superclass.
static vtkDataObjectGenerator * New()
void MakeValues(vtkDataSet *ds)
vtkDataObject * CreateOutputDataObjects(vtkInternalStructureCache *structure)
int RequestInformation(vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV) override
void MakeUniformGrid1(vtkDataSet *ds)
vtkDataObject * FillOutputDataObjects(vtkInternalStructureCache *structure, int level, int stripe=0)
void MakeUnstructuredGrid4(vtkDataSet *ds)
int RequestData(vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV) override
void MakePolyData1(vtkDataSet *ds)
void MakeUnstructuredGrid3(vtkDataSet *ds)
int RequestUpdateExtent(vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:60
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ level
Definition: vtkX3D.h:401
int vtkIdType
Definition: vtkType.h:338