VTK
|
Convert vtkPolyData to Geo JSON format. More...
#include <vtkGeoJSONWriter.h>
Convert vtkPolyData to Geo JSON format.
Outputs a Geo JSON (http://www.geojson.org) description of the input polydata data set.
Definition at line 33 of file vtkGeoJSONWriter.h.
Reimplemented from vtkWriter.
Definition at line 38 of file vtkGeoJSONWriter.h.
vtkGeoJSONWriter::vtkGeoJSONWriter | ( | ) | [protected] |
virtual vtkGeoJSONWriter::~vtkGeoJSONWriter | ( | ) | [protected, virtual] |
static vtkGeoJSONWriter* vtkGeoJSONWriter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
virtual void vtkGeoJSONWriter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
static int vtkGeoJSONWriter::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkWriter.
virtual int vtkGeoJSONWriter::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkWriter.
static vtkGeoJSONWriter* vtkGeoJSONWriter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkWriter.
virtual vtkObjectBase* vtkGeoJSONWriter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkWriter.
vtkGeoJSONWriter* vtkGeoJSONWriter::NewInstance | ( | ) | const |
Reimplemented from vtkWriter.
virtual void vtkGeoJSONWriter::SetFileName | ( | const char * | ) | [virtual] |
Accessor for name of the file that will be opened on WriteData
virtual char* vtkGeoJSONWriter::GetFileName | ( | ) | [virtual] |
Accessor for name of the file that will be opened on WriteData
virtual void vtkGeoJSONWriter::SetWriteToOutputString | ( | bool | ) | [virtual] |
Enable writing to an OutputString instead of the default, a file.
virtual bool vtkGeoJSONWriter::GetWriteToOutputString | ( | ) | [virtual] |
Enable writing to an OutputString instead of the default, a file.
virtual void vtkGeoJSONWriter::WriteToOutputStringOn | ( | ) | [virtual] |
Enable writing to an OutputString instead of the default, a file.
virtual void vtkGeoJSONWriter::WriteToOutputStringOff | ( | ) | [virtual] |
Enable writing to an OutputString instead of the default, a file.
virtual int vtkGeoJSONWriter::GetOutputStringLength | ( | ) | [virtual] |
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with these methods. The string is deleted during the next call to write ...
virtual char* vtkGeoJSONWriter::GetOutputString | ( | ) | [virtual] |
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with these methods. The string is deleted during the next call to write ...
unsigned char* vtkGeoJSONWriter::GetBinaryOutputString | ( | ) | [inline] |
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with these methods. The string is deleted during the next call to write ...
Definition at line 59 of file vtkGeoJSONWriter.h.
virtual void vtkGeoJSONWriter::SetScalarFormat | ( | int | ) | [virtual] |
Controls how data attributes are written out. When 0, data attributes are ignored and not written at all. When 1, values are mapped through a lookup table and colors are written to the output. When 2, which is the default, the values are written directly.
virtual int vtkGeoJSONWriter::GetScalarFormat | ( | ) | [virtual] |
Controls how data attributes are written out. When 0, data attributes are ignored and not written at all. When 1, values are mapped through a lookup table and colors are written to the output. When 2, which is the default, the values are written directly.
void vtkGeoJSONWriter::SetLookupTable | ( | vtkLookupTable * | lut | ) |
Controls the lookup table to use when ValueMode is set to map colors;
virtual vtkLookupTable* vtkGeoJSONWriter::GetLookupTable | ( | ) | [virtual] |
Controls the lookup table to use when ValueMode is set to map colors;
When WriteToOutputString is on, this method returns a copy of the output string in a vtkStdString.
This convenience method returns the string, sets the IVAR to NULL, so that the user is responsible for deleting the string. I am not sure what the name should be, so it may change in the future.
virtual int vtkGeoJSONWriter::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkAlgorithm.
void vtkGeoJSONWriter::WriteData | ( | ) | [protected, virtual] |
Implements vtkWriter.
void vtkGeoJSONWriter::WriteScalar | ( | vtkDataArray * | da, |
vtkIdType | ptId | ||
) | [protected] |
ostream* vtkGeoJSONWriter::OpenFile | ( | ) | [protected] |
void vtkGeoJSONWriter::ConditionalComma | ( | vtkIdType | , |
vtkIdType | |||
) | [protected] |
void vtkGeoJSONWriter::CloseFile | ( | ostream * | ) | [protected] |
vtkLookupTable* vtkGeoJSONWriter::LookupTable [protected] |
Definition at line 101 of file vtkGeoJSONWriter.h.
bool vtkGeoJSONWriter::WriteToOutputString [protected] |
Definition at line 103 of file vtkGeoJSONWriter.h.
char* vtkGeoJSONWriter::OutputString [protected] |
Definition at line 104 of file vtkGeoJSONWriter.h.
int vtkGeoJSONWriter::OutputStringLength [protected] |
Definition at line 105 of file vtkGeoJSONWriter.h.
int vtkGeoJSONWriter::ScalarFormat [protected] |
Definition at line 107 of file vtkGeoJSONWriter.h.
Internals* vtkGeoJSONWriter::WriterHelper [protected] |
Definition at line 113 of file vtkGeoJSONWriter.h.
char* vtkGeoJSONWriter::FileName [protected] |
Definition at line 115 of file vtkGeoJSONWriter.h.