VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkGeoJSONWriter Class Reference

Convert vtkPolyData to Geo JSON format. More...

#include <vtkGeoJSONWriter.h>

Inheritance diagram for vtkGeoJSONWriter:
Inheritance graph
[legend]
Collaboration diagram for vtkGeoJSONWriter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkWriter Superclass

Public Member Functions

virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual int IsA (const char *type)
vtkGeoJSONWriterNewInstance () const
vtkStdString GetOutputStdString ()
char * RegisterAndGetOutputString ()
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual void SetWriteToOutputString (bool)
virtual bool GetWriteToOutputString ()
virtual void WriteToOutputStringOn ()
virtual void WriteToOutputStringOff ()
virtual int GetOutputStringLength ()
virtual char * GetOutputString ()
unsigned char * GetBinaryOutputString ()
virtual void SetScalarFormat (int)
virtual int GetScalarFormat ()
void SetLookupTable (vtkLookupTable *lut)
virtual vtkLookupTableGetLookupTable ()

Static Public Member Functions

static vtkGeoJSONWriterNew ()
static int IsTypeOf (const char *type)
static vtkGeoJSONWriterSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkGeoJSONWriter ()
virtual ~vtkGeoJSONWriter ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
void WriteData ()
void WriteScalar (vtkDataArray *da, vtkIdType ptId)
ostream * OpenFile ()
void ConditionalComma (vtkIdType, vtkIdType)
void CloseFile (ostream *)

Protected Attributes

vtkLookupTableLookupTable
bool WriteToOutputString
char * OutputString
int OutputStringLength
int ScalarFormat
Internals * WriterHelper
char * FileName

Detailed Description

Convert vtkPolyData to Geo JSON format.

Outputs a Geo JSON (http://www.geojson.org) description of the input polydata data set.

Tests:
vtkGeoJSONWriter (Tests)

Definition at line 33 of file vtkGeoJSONWriter.h.


Member Typedef Documentation

Reimplemented from vtkWriter.

Definition at line 38 of file vtkGeoJSONWriter.h.


Constructor & Destructor Documentation

virtual vtkGeoJSONWriter::~vtkGeoJSONWriter ( ) [protected, virtual]

Member Function Documentation

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]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkWriter.

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.

Reimplemented from vtkWriter.

virtual vtkObjectBase* vtkGeoJSONWriter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkWriter.

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.

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.

Controls the lookup table to use when ValueMode is set to map colors;

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::CloseFile ( ostream *  ) [protected]

Member Data Documentation

Definition at line 101 of file vtkGeoJSONWriter.h.

Definition at line 103 of file vtkGeoJSONWriter.h.

char* vtkGeoJSONWriter::OutputString [protected]

Definition at line 104 of file vtkGeoJSONWriter.h.

Definition at line 105 of file vtkGeoJSONWriter.h.

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.


The documentation for this class was generated from the following file: