13#ifndef vtkCellGridWriter_h
14#define vtkCellGridWriter_h
16#include "vtkIOCellGridModule.h"
20#include <vtk_nlohmannjson.h>
21#include VTK_NLOHMANN_JSON(json.hpp)
24VTK_ABI_NAMESPACE_BEGIN
40 vtkSetStringMacro(FileName);
41 vtkGetStringMacro(FileName);
76 char* FileName{
nullptr };
77 Format FileFormat{ Format::PlainText };
static vtkCellGridWriter * New()
~vtkCellGridWriter() override
bool ToJSON(nlohmann::json &data, vtkCellGrid *grid)
Populate the JSON data with a representation of the input grid.
vtkCellGrid * GetInput(int port)
vtkGetEnumMacro(FileFormat, Format)
Format
On-disk formats for the cell-grid data.
@ PlainText
Human-readable text.
@ MessagePack
Binary message-pack data.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetEnumMacro(FileFormat, Format)
void WriteData() override
Visualization data composed of cells of arbitrary type.
a simple class to control print indentation
abstract class to write data to file(s)