23#ifndef vtkGeoJSONWriter_h
24#define vtkGeoJSONWriter_h
26#include "vtkIOGeoJSONModule.h"
50 vtkSetMacro(WriteToOutputString,
bool);
51 vtkGetMacro(WriteToOutputString,
bool);
52 vtkBooleanMacro(WriteToOutputString,
bool);
61 vtkGetMacro(OutputStringLength,
int);
62 vtkGetStringMacro(OutputString);
65 return reinterpret_cast<unsigned char*
>(this->OutputString);
76 vtkSetMacro(ScalarFormat,
int);
77 vtkGetMacro(ScalarFormat,
int);
abstract superclass for arrays of numeric data
Convert vtkPolyData to Geo JSON format.
void SetLookupTable(vtkLookupTable *lut)
Controls the lookup table to use when ValueMode is set to map colors;.
void CloseFile(ostream *)
vtkGetFilePathMacro(FileName)
Accessor for name of the file that will be opened on WriteData.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteData() override
char * RegisterAndGetOutputString()
This convenience method returns the string, sets the IVAR to nullptr, so that the user is responsible...
vtkSetFilePathMacro(FileName)
Accessor for name of the file that will be opened on WriteData.
unsigned char * GetBinaryOutputString()
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with the...
~vtkGeoJSONWriter() override
void WriteScalar(vtkDataArray *da, vtkIdType ptId)
void ConditionalComma(vtkIdType, vtkIdType)
vtkStdString GetOutputStdString()
When WriteToOutputString is on, this method returns a copy of the output string in a vtkStdString.
static vtkGeoJSONWriter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLookupTable * LookupTable
a simple class to control print indentation
map scalar values into colors via a lookup table
Wrapper around std::string to keep symbols short.
abstract class to write data to file(s)