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;
std::string ArrayToString(T *data, int length) const
void Write(const std::string &folder, const std::string &file_prefix, const std::array< int, 6 > &whole_extent, const std::vector< std::array< int, 6 >> &piece_extents, vtkImageData *img, VtiWriter *vti)
void WritePrimaryElementAttributes(std::ostream &os, vtkIndent indent) override
vtkTypeMacro(VtiWriter, vtkXMLImageDataWriter)
void SetWholeExtent(const int *whole_extent)
const int * whole_extent_
void operator()(const std::string &folder, const std::string &file_prefix, const std::vector< vtkImageData * > &images, uint64_t num_pieces, const std::array< int, 6 > &whole_extent, const std::vector< std::array< int, 6 >> &piece_extents) const