VTK  9.5.20250812
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
55#ifndef vtkUniformGrid_h
56#define vtkUniformGrid_h
57
58#include "vtkAMRBox.h" // Fox vtkAMRBox
59#include "vtkCommonDataModelModule.h" // For export macro
60#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_6_0
61#include "vtkImageData.h"
62#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
63
64VTK_ABI_NAMESPACE_BEGIN
65class vtkEmptyCell;
67
68class VTKCOMMONDATAMODEL_EXPORT VTK_MARSHALAUTO vtkUniformGrid : public vtkImageData
69{
70public:
72
78
82 int GetDataObjectType() VTK_FUTURE_CONST override { return VTK_UNIFORM_GRID; }
83
84 using Superclass::Initialize;
85
93 VTK_DEPRECATED_IN_9_6_0("Use vtkAMRBox::InitializeGrid instead")
94 int Initialize(const vtkAMRBox* def, double* origin, double* spacing)
95 {
96 return def->InitializeGrid(this, origin, spacing);
97 };
98
107 VTK_DEPRECATED_IN_9_6_0("Use vtkAMRBox::InitializeGrid instead")
108 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, int nGhosts)
109 {
110 return def->InitializeGrid(this, origin, spacing, nGhosts);
111 };
112
121 VTK_DEPRECATED_IN_9_6_0("Use vtkAMRBox::InitializeGrid instead")
122 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, const int nGhosts[3])
123 {
124 return def->InitializeGrid(this, origin, spacing, nGhosts);
125 };
126
136 VTK_DEPRECATED_IN_9_6_0("Use vtkAMRBox::InitializeGrid instead")
137 int Initialize(
138 const vtkAMRBox* def, double* origin, double* spacing, int nGhostsI, int nGhostsJ, int nGhostsK)
139 {
140 return def->InitializeGrid(this, origin, spacing, nGhostsI, nGhostsJ, nGhostsK);
141 };
142
143 VTK_DEPRECATED_IN_9_6_0("Will be removed, create a vtkImageData manually if needed")
144 virtual VTK_NEWINSTANCE vtkImageData* NewImageDataCopy();
145
147
150 VTK_DEPRECATED_IN_9_6_0("Use vtkImageData::GetData instead")
151 static vtkUniformGrid* GetData(vtkInformation* info);
152 VTK_DEPRECATED_IN_9_6_0("Use vtkImageData::GetData instead")
153 static vtkUniformGrid* GetData(vtkInformationVector* v, int i = 0);
155
156protected:
158 ~vtkUniformGrid() override;
159
160private:
161 vtkUniformGrid(const vtkUniformGrid&) = delete;
162 void operator=(const vtkUniformGrid&) = delete;
163};
164
165VTK_ABI_NAMESPACE_END
166#endif
Encloses a rectangular region of voxel like cells.
Definition vtkAMRBox.h:69
an empty cell used as a place-holder during processing
topologically and geometrically regular array of data
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Deprecated vtkImageData.
int GetDataObjectType() VTK_FUTURE_CONST override
Return what type of dataset this is.
static vtkUniformGrid * New()
Construct an empty uniform grid.
dynamic, self-adjusting array of unsigned char
#define VTK_DEPRECATED_IN_9_6_0(reason)
@ VTK_UNIFORM_GRID
Definition vtkType.h:86
#define VTK_MARSHALAUTO
#define VTK_NEWINSTANCE