VTK  9.3.0
vtkDataObjectGenerator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
28 #ifndef vtkDataObjectGenerator_h
29 #define vtkDataObjectGenerator_h
30 
31 #include "vtkDataObjectAlgorithm.h"
32 #include "vtkFiltersCoreModule.h" // For export macro
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class vtkInternalStructureCache;
36 
37 class VTKFILTERSCORE_EXPORT vtkDataObjectGenerator : public vtkDataObjectAlgorithm
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  vtkSetStringMacro(Program);
49  vtkGetStringMacro(Program);
51 
52 protected:
55 
57  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
59  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
61  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
63  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
64 
65  // the string to parse to create a structure
66  char* Program;
67  // a record of the structure
68  vtkInternalStructureCache* Structure;
69 
70  // Helper for RequestDataObject
71  vtkDataObject* CreateOutputDataObjects(vtkInternalStructureCache* structure);
72  // Helper for RequestData
74  vtkInternalStructureCache* structure, int level, int stripe = 0);
75 
76  // to determine which composite data stripe to fill in
79 
80  // create the templated atomic data sets
92 
93  // used to spatially separate sub data sets within composites
94  double XOffset; // increases for each dataset index
95  double YOffset; // increases for each sub data set
96  double ZOffset; // increases for each group index
97 
98  // used to filling in point and cell values with unique Ids
101 
102  // assign point and cell values to each point and cell
104 
105 private:
107  void operator=(const vtkDataObjectGenerator&) = delete;
108 };
109 
110 VTK_ABI_NAMESPACE_END
111 #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:55
abstract class to specify dataset behavior
Definition: vtkDataSet.h:53
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ level
Definition: vtkX3D.h:395
int vtkIdType
Definition: vtkType.h:315