VTK  9.5.20251015
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkInternalStructureCache;
37
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
49 vtkSetStringMacro(Program);
50 vtkGetStringMacro(Program);
52
53protected:
56
58 vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
60 vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
62 vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
64 vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
65
66 // the string to parse to create a structure
67 char* Program;
68 // a record of the structure
69 vtkInternalStructureCache* Structure;
70
71 // Helper for RequestDataObject
72 vtkDataObject* CreateOutputDataObjects(vtkInternalStructureCache* structure);
73 // Helper for RequestData
75 vtkInternalStructureCache* structure, int level, int stripe = 0);
76
77 // to determine which composite data stripe to fill in
80
81 // create the templated atomic data sets
93
94 // used to spatially separate sub data sets within composites
95 double XOffset; // increases for each dataset index
96 double YOffset; // increases for each sub data set
97 double ZOffset; // increases for each group index
98
99 // used to filling in point and cell values with unique Ids
102
103 // assign point and cell values to each point and cell
105
106private:
108 void operator=(const vtkDataObjectGenerator&) = delete;
109};
110
111VTK_ABI_NAMESPACE_END
112#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:367
#define VTK_MARSHALAUTO