14 #ifndef vtkGeoJSONWriter_h
15 #define vtkGeoJSONWriter_h
17 #include "vtkIOGeoJSONModule.h"
20 VTK_ABI_NAMESPACE_BEGIN
42 vtkSetMacro(WriteToOutputString,
bool);
43 vtkGetMacro(WriteToOutputString,
bool);
44 vtkBooleanMacro(WriteToOutputString,
bool);
53 vtkGetMacro(OutputStringLength,
int);
54 vtkGetStringMacro(OutputString);
57 return reinterpret_cast<unsigned char*
>(this->OutputString);
68 vtkSetMacro(ScalarFormat,
int);
69 vtkGetMacro(ScalarFormat,
int);
126 VTK_ABI_NAMESPACE_END
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.
char * RegisterAndGetOutputString()
This convenience method returns the string, sets the IVAR to nullptr, so that the user is responsible...
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteData() override
static vtkGeoJSONWriter * New()
vtkSetFilePathMacro(FileName)
Accessor for name of the file that will be opened on WriteData.
~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.
unsigned char * GetBinaryOutputString()
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with the...
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)