VTK  9.4.20241117
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
32#include "vtkFiltersCoreModule.h" // For export macro
33
34VTK_ABI_NAMESPACE_BEGIN
35class vtkInternalStructureCache;
36
37class VTKFILTERSCORE_EXPORT vtkDataObjectGenerator : public vtkDataObjectAlgorithm
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
48 vtkSetStringMacro(Program);
49 vtkGetStringMacro(Program);
51
52protected:
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
105private:
107 void operator=(const vtkDataObjectGenerator&) = delete;
108};
109
110VTK_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)
vtkDataObject * FillOutputDataObjects(vtkInternalStructureCache *structure, int level, int stripe=0)
~vtkDataObjectGenerator() override
int RequestDataObject(vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV) override
This is called by the superclass.
vtkDataObject * CreateOutputDataObjects(vtkInternalStructureCache *structure)
void MakeValues(vtkDataSet *ds)
int RequestInformation(vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV) override
void MakeUniformGrid1(vtkDataSet *ds)
void MakeUnstructuredGrid4(vtkDataSet *ds)
static vtkDataObjectGenerator * New()
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
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkIdType
Definition vtkType.h:315