15 #ifndef CORE_VISUALIZATION_PARAVIEW_PARALLEL_VTI_WRITER_H_
16 #define CORE_VISUALIZATION_PARAVIEW_PARALLEL_VTI_WRITER_H_
25 #include <vtkImageData.h>
26 #include <vtkXMLImageDataWriter.h>
41 vtkIndent indent)
override;
50 void Write(
const std::string& folder,
const std::string& file_prefix,
51 const std::array<int, 6>& whole_extent,
52 const std::vector<std::array<int, 6>>& piece_extents,
58 std::stringstream stream;
60 for (
int i = 1; i < length; ++i) {
61 stream <<
" " << data[i];
69 void operator()(
const std::string& folder,
const std::string& file_prefix,
70 const std::vector<vtkImageData*>& images, uint64_t num_pieces,
71 const std::array<int, 6>& whole_extent,
72 const std::vector<std::array<int, 6>>& piece_extents)
const;
77 #endif // CORE_VISUALIZATION_PARAVIEW_PARALLEL_VTI_WRITER_H_