VTK  9.5.2
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
16
17#ifndef vtkUniformGrid_h
18#define vtkUniformGrid_h
19
20#include "vtkCommonDataModelModule.h" // For export macro
21#include "vtkImageData.h"
22
23VTK_ABI_NAMESPACE_BEGIN
24class vtkEmptyCell;
26class vtkAMRBox;
27
28class VTKCOMMONDATAMODEL_EXPORT vtkUniformGrid : public vtkImageData
29{
30public:
32
37 void PrintSelf(ostream& os, vtkIndent indent) override;
39
44 void CopyStructure(vtkDataSet* ds) override;
45
49 int GetDataObjectType() VTK_FUTURE_CONST override { return VTK_UNIFORM_GRID; }
50
52
55 void Initialize() override;
57
64 int Initialize(const vtkAMRBox* def, double* origin, double* spacing);
72 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, int nGhosts);
73
81 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, const int nGhosts[3]);
90 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, int nGhostsI, int nGhostsJ,
91 int nGhostsK);
92
94
96
102
103protected:
105 ~vtkUniformGrid() override;
106
110 void ComputeScalarRange() override;
111
112private:
113 vtkUniformGrid(const vtkUniformGrid&) = delete;
114 void operator=(const vtkUniformGrid&) = delete;
115};
116
117VTK_ABI_NAMESPACE_END
118#endif
Encloses a rectangular region of voxel like cells.
Definition vtkAMRBox.h:29
an empty cell used as a place-holder during processing
friend class vtkUniformGrid
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int GetDataObjectType() VTK_FUTURE_CONST override
Return what type of dataset this is.
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.
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
@ VTK_UNIFORM_GRID
Definition vtkType.h:86
#define VTK_NEWINSTANCE