VTK  9.6.1
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
15
16#ifndef vtkUniformGrid_h
17#define vtkUniformGrid_h
18
19#include "vtkAMRBox.h" // Fox vtkAMRBox
20#include "vtkCommonDataModelModule.h" // For export macro
21#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_6_0
22#include "vtkImageData.h"
23#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24
25VTK_ABI_NAMESPACE_BEGIN
26class vtkEmptyCell;
28
29class VTKCOMMONDATAMODEL_EXPORT VTK_MARSHALAUTO vtkUniformGrid : public vtkImageData
30{
31public:
33
39
43 int GetDataObjectType() VTK_FUTURE_CONST override { return VTK_UNIFORM_GRID; }
44
46
54 VTK_DEPRECATED_IN_9_6_0("Use vtkAMRBox::InitializeGrid instead")
55 int Initialize(const vtkAMRBox* def, double* origin, double* spacing)
56 {
57 return def->InitializeGrid(this, origin, spacing);
58 };
59
68 VTK_DEPRECATED_IN_9_6_0("Use vtkAMRBox::InitializeGrid instead")
69 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, int nGhosts)
70 {
71 return def->InitializeGrid(this, origin, spacing, nGhosts);
72 };
73
82 VTK_DEPRECATED_IN_9_6_0("Use vtkAMRBox::InitializeGrid instead")
83 int Initialize(const vtkAMRBox* def, double* origin, double* spacing, const int nGhosts[3])
84 {
85 return def->InitializeGrid(this, origin, spacing, nGhosts);
86 };
87
97 VTK_DEPRECATED_IN_9_6_0("Use vtkAMRBox::InitializeGrid instead")
99 const vtkAMRBox* def, double* origin, double* spacing, int nGhostsI, int nGhostsJ, int nGhostsK)
100 {
101 return def->InitializeGrid(this, origin, spacing, nGhostsI, nGhostsJ, nGhostsK);
102 };
103
104 VTK_DEPRECATED_IN_9_6_0("Will be removed, create a vtkImageData manually if needed")
106
108
111 VTK_DEPRECATED_IN_9_6_0("Use vtkImageData::GetData instead")
113 VTK_DEPRECATED_IN_9_6_0("Use vtkImageData::GetData instead")
116
117protected:
119 ~vtkUniformGrid() override;
120
121private:
122 vtkUniformGrid(const vtkUniformGrid&) = delete;
123 void operator=(const vtkUniformGrid&) = delete;
124};
125
126VTK_ABI_NAMESPACE_END
127#endif
Encloses a rectangular region of voxel like cells.
Definition vtkAMRBox.h:30
void Initialize(int npts, const vtkIdType *pts, vtkPoints *p)
Initialize cell from outside with point ids and point coordinates specified.
an empty cell used as a place-holder during processing
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()
static vtkUniformGrid * New()
Construct an empty uniform grid.
static vtkUniformGrid * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
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_DEPRECATED_IN_9_6_0(reason)
@ VTK_UNIFORM_GRID
Definition vtkType.h:119
#define VTK_MARSHALAUTO
#define VTK_NEWINSTANCE