VTK  9.4.20250114
vtkUniformGrid.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
56#ifndef vtkUniformGrid_h
57#define vtkUniformGrid_h
58
59#include "vtkCommonDataModelModule.h" // For export macro
60#include "vtkImageData.h"
61
62VTK_ABI_NAMESPACE_BEGIN
63class vtkEmptyCell;
65class vtkAMRBox;
66
67class VTKCOMMONDATAMODEL_EXPORT vtkUniformGrid : public vtkImageData
68{
69public:
71
76 void PrintSelf(ostream& os, vtkIndent indent) override;
78
83 void CopyStructure(vtkDataSet* ds) override;
84
88 int GetDataObjectType() override { return VTK_UNIFORM_GRID; }
89
91
94 void Initialize() override;
96
103 int Initialize(const vtkAMRBox* def, double* origin, double* spacing);
111 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, int nGhosts);
112
120 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, const int nGhosts[3]);
129 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, int nGhostsI, int nGhostsJ,
130 int nGhostsK);
131
133
135
141
142protected:
144 ~vtkUniformGrid() override;
145
149 void ComputeScalarRange() override;
150
151private:
152 vtkUniformGrid(const vtkUniformGrid&) = delete;
153 void operator=(const vtkUniformGrid&) = delete;
154};
155
156VTK_ABI_NAMESPACE_END
157#endif
Encloses a rectangular region of voxel like cells.
Definition vtkAMRBox.h:68
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
an empty cell used as a place-holder during processing
topologically and geometrically regular array of data
friend class vtkUniformGrid
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
image data with blanking
virtual vtkImageData * NewImageDataCopy()
int Initialize(const vtkAMRBox *def, double *origin, double *spacing, int nGhostsI, int nGhostsJ, int nGhostsK)
Construct a uniform grid, from the definition in the given box "def", with ghost cell arrays of the t...
void CopyStructure(vtkDataSet *ds) override
Copy the geometric and topological structure of an input image data object.
int GetDataObjectType() override
Return what type of dataset this is.
static vtkUniformGrid * GetData(vtkInformationVector *v, int i=0)
Retrieve an instance of this class from an information object.
~vtkUniformGrid() override
int Initialize(const vtkAMRBox *def, double *origin, double *spacing, int nGhosts)
Initialize from the definition in the given box, with ghost cell arrays nGhosts cells thick in all di...
void ComputeScalarRange() override
Override this method because of blanking.
int Initialize(const vtkAMRBox *def, double *origin, double *spacing, const int nGhosts[3])
Initialize from the definition in the given box, with ghost cell arrays of the thickness given in eac...
static vtkUniformGrid * New()
Construct an empty uniform grid.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct an empty uniform grid.
static vtkUniformGrid * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
void Initialize() override
Standard vtkDataSet API methods.
int Initialize(const vtkAMRBox *def, double *origin, double *spacing)
Initialize with no ghost cell arrays, from the definition in the given box.
dynamic, self-adjusting array of unsigned char
#define VTK_UNIFORM_GRID
Definition vtkType.h:75
#define VTK_NEWINSTANCE