VTK  9.3.0
vtkPixelExtentIO.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
11 #ifndef vtkPixelExtentIO_h
12 #define vtkPixelExtentIO_h
13 
14 #include "vtkIOLegacyModule.h" // for export
15 #include "vtkPixelExtent.h" // for pixel extent
16 #include <deque> // for std::deque
17 
18 VTK_ABI_NAMESPACE_BEGIN
20 
21 class VTKIOLEGACY_EXPORT vtkPixelExtentIO
22 {
23 public:
31  static void Write(int commRank, VTK_FILEPATH const char* fileName,
32  const std::deque<std::deque<vtkPixelExtent>>& exts);
33 
42  static void Write(
43  int commRank, VTK_FILEPATH const char* fileName, const std::deque<vtkPixelExtent>& exts);
44 
46 
51  static void Write(int commRank, VTK_FILEPATH const char* fileName, const vtkPixelExtent& ext);
53 };
54 
58 VTKIOLEGACY_EXPORT
60 
61 VTK_ABI_NAMESPACE_END
62 #endif
63 // VTK-HeaderTest-Exclude: vtkPixelExtentIO.h
A small collection of I/O routines that can write vtkPixelExtent's or collections of them to disk for...
static void Write(int commRank, VTK_FILEPATH const char *fileName, const std::deque< std::deque< vtkPixelExtent >> &exts)
Writes deque of extents for each MPI rank to disk as an unstructured grid.
static void Write(int commRank, VTK_FILEPATH const char *fileName, const vtkPixelExtent &ext)
Write an extent per MPI rank to disk.
static void Write(int commRank, VTK_FILEPATH const char *fileName, const std::deque< vtkPixelExtent > &exts)
Writes an extent for each MPI rank to disk as an unstructured grid.
Representation of a cartesian pixel plane and common operations on it.
dataset represents arbitrary combinations of all possible cell types
@ data
Definition: vtkX3D.h:315
VTKIOLEGACY_EXPORT vtkUnstructuredGrid & operator<<(vtkUnstructuredGrid &data, const vtkPixelExtent &ext)
Insert the extent into an unstructured grid.
#define VTK_FILEPATH