#include <vtkXMLWriter.h>
Inheritance diagram for vtkXMLWriter:
vtkXMLWriter provides methods implementing most of the functionality needed to write VTK XML file formats. Concrete subclasses provide actual writer implementations calling upon this functionality.
Definition at line 44 of file vtkXMLWriter.h.
enum | { BigEndian, LittleEndian } |
void | PrintSelf (ostream &os, vtkIndent indent) |
Public Types | |
typedef vtkAlgorithm | Superclass |
enum | { Ascii, Binary, Appended } |
enum | { Int32 = 32, Int64 = 64 } |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual const char * | GetDefaultFileExtension ()=0 |
int | Write () |
virtual void | SetByteOrder (int) |
virtual int | GetByteOrder () |
void | SetByteOrderToBigEndian () |
void | SetByteOrderToLittleEndian () |
virtual void | SetIdType (int) |
virtual int | GetIdType () |
void | SetIdTypeToInt32 () |
void | SetIdTypeToInt64 () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetCompressor (vtkDataCompressor *) |
virtual vtkDataCompressor * | GetCompressor () |
virtual void | SetBlockSize (unsigned int blockSize) |
virtual unsigned int | GetBlockSize () |
virtual void | SetDataMode (int) |
virtual int | GetDataMode () |
void | SetDataModeToAscii () |
void | SetDataModeToBinary () |
void | SetDataModeToAppended () |
virtual void | SetEncodeAppendedData (int) |
virtual int | GetEncodeAppendedData () |
virtual void | EncodeAppendedDataOn () |
virtual void | EncodeAppendedDataOff () |
void | SetInput (vtkDataObject *) |
void | SetInput (int, vtkDataObject *) |
vtkDataObject * | GetInput (int port) |
vtkDataObject * | GetInput () |
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual void | SetTimeStep (int) |
virtual int | GetTimeStep () |
virtual int * | GetTimeStepRange () |
virtual void | GetTimeStepRange (int &, int &) |
virtual void | GetTimeStepRange (int[2]) |
virtual void | SetTimeStepRange (int, int) |
void | SetTimeStepRange (int[2]) |
virtual int | GetNumberOfTimeSteps () |
virtual void | SetNumberOfTimeSteps (int) |
void | Start () |
void | Stop () |
void | WriteNextTime (double time) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkXMLWriter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkXMLWriter () | |
~vtkXMLWriter () | |
virtual int | RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual void | SetDataStream (vtkOutputStream *) |
virtual vtkOutputStream * | GetDataStream () |
virtual int | WriteInternal () |
virtual int | WriteData () |
virtual const char * | GetDataSetName ()=0 |
virtual int | GetDataSetMajorVersion () |
virtual int | GetDataSetMinorVersion () |
vtkDataSet * | GetInputAsDataSet () |
int | StartFile () |
virtual void | WriteFileAttributes () |
int | EndFile () |
void | DeleteAFile () |
void | DeleteAFile (const char *name) |
virtual int | WritePrimaryElement (ostream &os, vtkIndent indent) |
virtual void | WritePrimaryElementAttributes (ostream &os, vtkIndent indent) |
void | StartAppendedData () |
void | EndAppendedData () |
unsigned long | ReserveAttributeSpace (const char *attr, int length=20) |
unsigned long | GetAppendedDataOffset () |
unsigned long | WriteAppendedDataOffset (unsigned long streamPos, unsigned long &lastoffset, const char *attr=0) |
unsigned long | ForwardAppendedDataOffset (unsigned long streamPos, unsigned long offset, const char *attr=0) |
int | WriteBinaryData (void *data, int numWords, int wordType) |
int | WriteBinaryData (char *data) |
int | WriteBinaryData (char *data, int numWords) |
int | WriteBinaryData (unsigned char *data, int numWords) |
int | WriteBinaryData (short *data, int numWords) |
int | WriteBinaryData (unsigned short *data, int numWords) |
int | WriteBinaryData (int *data, int numWords) |
int | WriteBinaryData (unsigned int *data, int numWords) |
int | WriteAsciiData (void *data, int numWords, int wordType, vtkIndent indent) |
int | WriteAsciiData (char *data, vtkIndent indent) |
int | WriteAsciiData (char *data, int numWords, vtkIndent indent) |
int | WriteAsciiData (unsigned char *data, int numWords, vtkIndent indent) |
int | WriteAsciiData (short *data, int numWords, vtkIndent indent) |
int | WriteAsciiData (unsigned short *data, int numWords, vtkIndent indent) |
int | WriteAsciiData (int *data, int numWords, vtkIndent indent) |
int | WriteAsciiData (unsigned int *data, int numWords, vtkIndent indent) |
int | WriteScalarAttribute (const char *name, int data) |
int | WriteScalarAttribute (const char *name, float data) |
int | WriteVectorAttribute (const char *name, int length, int *data) |
int | WriteVectorAttribute (const char *name, int length, float *data) |
int | WriteVectorAttribute (const char *name, int length, double *data) |
int | WriteDataModeAttribute (const char *name) |
int | WriteWordTypeAttribute (const char *name, int dataType) |
int | WriteStringAttribute (const char *name, const char *value) |
unsigned long | WriteDataArrayAppended (vtkDataArray *a, vtkIndent indent, const char *alternateName=0, int writeNumTuples=0, int timestep=-1) |
void | WriteDataArrayAppendedData (vtkDataArray *a, unsigned long pos, unsigned long &lastoffset) |
void | WriteDataArrayInline (vtkDataArray *a, vtkIndent indent, const char *alternateName=0, int writeNumTuples=0) |
void | WriteInlineData (void *data, int numWords, int wordType, vtkIndent indent) |
void | WriteDataArrayHeader (vtkDataArray *a, vtkIndent indent, const char *alternateName, int writeNumTuples, int timestep) |
void | WriteDataArrayFooter (ostream &os, vtkIndent indent) |
void | WriteFieldData (vtkIndent indent) |
void | WriteFieldDataInline (vtkFieldData *fd, vtkIndent indent) |
void | WritePointDataInline (vtkPointData *pd, vtkIndent indent) |
void | WriteCellDataInline (vtkCellData *cd, vtkIndent indent) |
void | WriteFieldDataAppended (vtkFieldData *fd, vtkIndent indent, OffsetsManagerGroup *fdManager) |
void | WriteFieldDataAppendedData (vtkFieldData *fd, int timestep, OffsetsManagerGroup *fdManager) |
void | WritePointDataAppended (vtkPointData *pd, vtkIndent indent, OffsetsManagerGroup *pdManager) |
void | WritePointDataAppendedData (vtkPointData *pd, int timestep, OffsetsManagerGroup *pdManager) |
void | WriteCellDataAppended (vtkCellData *cd, vtkIndent indent, OffsetsManagerGroup *cdManager) |
void | WriteCellDataAppendedData (vtkCellData *cd, int timestep, OffsetsManagerGroup *cdManager) |
void | WriteAttributeIndices (vtkDataSetAttributes *dsa, char **names) |
void | WritePointsAppended (vtkPoints *points, vtkIndent indent, OffsetsManager *manager) |
void | WritePointsAppendedData (vtkPoints *points, int timestep, OffsetsManager *pdManager) |
void | WritePointsInline (vtkPoints *points, vtkIndent indent) |
void | WriteCoordinatesInline (vtkDataArray *xc, vtkDataArray *yc, vtkDataArray *zc, vtkIndent indent) |
void | WriteCoordinatesAppended (vtkDataArray *xc, vtkDataArray *yc, vtkDataArray *zc, vtkIndent indent, OffsetsManagerGroup *coordManager) |
void | WriteCoordinatesAppendedData (vtkDataArray *xc, vtkDataArray *yc, vtkDataArray *zc, int timestep, OffsetsManagerGroup *coordManager) |
virtual vtkDataArray * | CreateArrayForPoints (vtkDataArray *inArray) |
virtual vtkDataArray * | CreateArrayForCells (vtkDataArray *inArray) |
virtual vtkDataArray * | CreateExactCoordinates (vtkDataArray *inArray, int xyz) |
void | WritePPointData (vtkPointData *pd, vtkIndent indent) |
void | WritePCellData (vtkCellData *cd, vtkIndent indent) |
void | WritePPoints (vtkPoints *points, vtkIndent indent) |
void | WritePDataArray (vtkDataArray *a, vtkIndent indent, const char *alternateName=0) |
void | WritePCoordinates (vtkDataArray *xc, vtkDataArray *yc, vtkDataArray *zc, vtkIndent indent) |
int | WriteBinaryDataInternal (void *data, int numWords, int wordType) |
int | WriteBinaryDataBlock (unsigned char *in_data, int numWords, int wordType) |
void | PerformByteSwap (void *data, int numWords, int wordSize) |
int | CreateCompressionHeader (unsigned long size) |
int | WriteCompressionBlock (unsigned char *data, unsigned long size) |
int | WriteCompressionHeader () |
unsigned long | GetWordTypeSize (int dataType) |
const char * | GetWordTypeName (int dataType) |
unsigned long | GetOutputWordTypeSize (int dataType) |
char ** | CreateStringArray (int numStrings) |
void | DestroyStringArray (int numStrings, char **strings) |
virtual void | GetProgressRange (float *range) |
virtual void | SetProgressRange (float *range, int curStep, int numSteps) |
virtual void | SetProgressRange (float *range, int curStep, float *fractions) |
virtual void | SetProgressPartial (float fraction) |
virtual void | UpdateProgressDiscrete (float progress) |
int | OpenFile () |
void | CloseFile () |
Protected Attributes | |
char * | FileName |
ostream * | Stream |
int | ByteOrder |
int | IdType |
int | DataMode |
int | EncodeAppendedData |
unsigned long | AppendedDataPosition |
OffsetsManagerGroup * | FieldDataOM |
Int32IdType * | Int32IdTypeBuffer |
unsigned char * | ByteSwapBuffer |
vtkDataCompressor * | Compressor |
unsigned int | BlockSize |
unsigned long | CompressionBlockNumber |
HeaderType * | CompressionHeader |
unsigned int | CompressionHeaderLength |
unsigned long | CompressionHeaderPosition |
vtkOutputStream * | DataStream |
float | ProgressRange [2] |
ofstream * | OutFile |
int | TimeStep |
int | CurrentTimeIndex |
int | NumberOfTimeSteps |
int | TimeStepRange [2] |
int | UserContinueExecuting |
unsigned long * | NumberOfTimeValues |
|
|
Enumerate big and little endian byte order settings. Definition at line 53 of file vtkXMLWriter.h. |
|
Enumerate the supported data modes. Ascii = Inline ascii data. Binary = Inline binary data (base64 encoded, possibly compressed). Appended = Appended binary data (possibly compressed and/or base64). Definition at line 62 of file vtkXMLWriter.h. |
|
Enumerate the supported vtkIdType bit lengths. Int32 = File stores 32-bit values for vtkIdType. Int64 = File stores 64-bit values for vtkIdType. Definition at line 71 of file vtkXMLWriter.h. |
|
|
|
|
|
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkAlgorithm. Reimplemented in vtkXMLDataSetWriter, vtkXMLImageDataWriter, vtkXMLPDataSetWriter, vtkXMLPDataWriter, vtkXMLPImageDataWriter, vtkXMLPolyDataWriter, vtkXMLPPolyDataWriter, vtkXMLPRectilinearGridWriter, vtkXMLPStructuredDataWriter, vtkXMLPStructuredGridWriter, vtkXMLPUnstructuredDataWriter, vtkXMLPUnstructuredGridWriter, vtkXMLRectilinearGridWriter, vtkXMLStructuredDataWriter, vtkXMLStructuredGridWriter, vtkXMLUnstructuredDataWriter, and vtkXMLUnstructuredGridWriter. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkAlgorithm. Reimplemented in vtkXMLDataSetWriter, vtkXMLImageDataWriter, vtkXMLPDataSetWriter, vtkXMLPDataWriter, vtkXMLPImageDataWriter, vtkXMLPolyDataWriter, vtkXMLPPolyDataWriter, vtkXMLPRectilinearGridWriter, vtkXMLPStructuredDataWriter, vtkXMLPStructuredGridWriter, vtkXMLPUnstructuredDataWriter, vtkXMLPUnstructuredGridWriter, vtkXMLRectilinearGridWriter, vtkXMLStructuredDataWriter, vtkXMLStructuredGridWriter, vtkXMLUnstructuredDataWriter, and vtkXMLUnstructuredGridWriter. |
|
|
Enumerate big and little endian byte order settings. Reimplemented from vtkAlgorithm. Reimplemented in vtkXMLDataSetWriter, vtkXMLImageDataWriter, vtkXMLPDataSetWriter, vtkXMLPDataWriter, vtkXMLPImageDataWriter, vtkXMLPolyDataWriter, vtkXMLPPolyDataWriter, vtkXMLPRectilinearGridWriter, vtkXMLPStructuredDataWriter, vtkXMLPStructuredGridWriter, vtkXMLPUnstructuredDataWriter, vtkXMLPUnstructuredGridWriter, vtkXMLRectilinearGridWriter, vtkXMLStructuredDataWriter, vtkXMLStructuredGridWriter, vtkXMLUnstructuredDataWriter, and vtkXMLUnstructuredGridWriter. |
|
Get/Set the byte order of data written to the file. The default is the machine's hardware byte order. |
|
Get/Set the byte order of data written to the file. The default is the machine's hardware byte order. |
|
Get/Set the byte order of data written to the file. The default is the machine's hardware byte order. |
|
Get/Set the byte order of data written to the file. The default is the machine's hardware byte order. |
|
Get/Set the size of the vtkIdType values stored in the file. The default is the real size of vtkIdType. |
|
Get/Set the size of the vtkIdType values stored in the file. The default is the real size of vtkIdType. |
|
Get/Set the size of the vtkIdType values stored in the file. The default is the real size of vtkIdType. |
|
Get/Set the size of the vtkIdType values stored in the file. The default is the real size of vtkIdType. |
|
Get/Set the name of the output file. |
|
Get/Set the name of the output file. |
|
Get/Set the compressor used to compress binary and appended data before writing to the file. Default is no compression. |
|
Get/Set the compressor used to compress binary and appended data before writing to the file. Default is no compression. |
|
Get/Set the block size used in compression. When reading, this controls the granularity of how much extra information must be read when only part of the data are requested. The value should be a multiple of the largest scalar data type. |
|
Get/Set the block size used in compression. When reading, this controls the granularity of how much extra information must be read when only part of the data are requested. The value should be a multiple of the largest scalar data type. |
|
Get/Set the data mode used for the file's data. The options are vtkXMLWriter::Ascii, vtkXMLWriter::Binary, and vtkXMLWriter::Appended. |
|
Get/Set the data mode used for the file's data. The options are vtkXMLWriter::Ascii, vtkXMLWriter::Binary, and vtkXMLWriter::Appended. |
|
Get/Set the data mode used for the file's data. The options are vtkXMLWriter::Ascii, vtkXMLWriter::Binary, and vtkXMLWriter::Appended. |
|
Get/Set the data mode used for the file's data. The options are vtkXMLWriter::Ascii, vtkXMLWriter::Binary, and vtkXMLWriter::Appended. |
|
Get/Set the data mode used for the file's data. The options are vtkXMLWriter::Ascii, vtkXMLWriter::Binary, and vtkXMLWriter::Appended. |
|
Get/Set whether the appended data section is base64 encoded. If encoded, reading and writing will be slower, but the file will be fully valid XML and text-only. If not encoded, the XML specification will be violated, but reading and writing will be fast. The default is to do the encoding. |
|
Get/Set whether the appended data section is base64 encoded. If encoded, reading and writing will be slower, but the file will be fully valid XML and text-only. If not encoded, the XML specification will be violated, but reading and writing will be fast. The default is to do the encoding. |
|
Get/Set whether the appended data section is base64 encoded. If encoded, reading and writing will be slower, but the file will be fully valid XML and text-only. If not encoded, the XML specification will be violated, but reading and writing will be fast. The default is to do the encoding. |
|
Get/Set whether the appended data section is base64 encoded. If encoded, reading and writing will be slower, but the file will be fully valid XML and text-only. If not encoded, the XML specification will be violated, but reading and writing will be fast. The default is to do the encoding. |
|
Set/Get an input of this algorithm. You should not override these methods because they are not the only way to connect a pipeline |
|
Set/Get an input of this algorithm. You should not override these methods because they are not the only way to connect a pipeline |
|
Set/Get an input of this algorithm. You should not override these methods because they are not the only way to connect a pipeline |
|
Set/Get an input of this algorithm. You should not override these methods because they are not the only way to connect a pipeline Reimplemented in vtkXMLDataSetWriter, vtkXMLImageDataWriter, vtkXMLPDataSetWriter, vtkXMLPImageDataWriter, vtkXMLPolyDataWriter, vtkXMLPPolyDataWriter, vtkXMLPRectilinearGridWriter, vtkXMLPStructuredGridWriter, vtkXMLPUnstructuredGridWriter, vtkXMLRectilinearGridWriter, vtkXMLStructuredGridWriter, and vtkXMLUnstructuredGridWriter. Definition at line 143 of file vtkXMLWriter.h. |
|
Get the default file extension for files written by this writer. Implemented in vtkXMLDataSetWriter, vtkXMLImageDataWriter, vtkXMLPDataSetWriter, vtkXMLPImageDataWriter, vtkXMLPolyDataWriter, vtkXMLPPolyDataWriter, vtkXMLPRectilinearGridWriter, vtkXMLPStructuredGridWriter, vtkXMLPUnstructuredGridWriter, vtkXMLRectilinearGridWriter, vtkXMLStructuredGridWriter, and vtkXMLUnstructuredGridWriter. |
|
Invoke the writer. Returns 1 for success, 0 for failure. |
|
Upstream/Downstream requests form the generalized interface through which executives invoke a algorithm's functionality. Upstream requests correspond to information flow from the algorithm's outputs to its inputs. Downstream requests correspond to information flow from the algorithm's inputs to its outputs. A downstream request is defined by the contents of the request information object. The input to the request is stored in the input information vector passed to ProcessRequest. The results of an downstream request are stored in the output information vector passed to ProcessRequest. An upstream request is defined by the contents of the request information object. The input to the request is stored in the output information vector passed to ProcessRequest. The results of an upstream request are stored in the input information vector passed to ProcessRequest. It returns the boolean status of the pipeline (false means failure). Reimplemented from vtkAlgorithm. Reimplemented in vtkXMLPUnstructuredDataWriter, vtkXMLStructuredDataWriter, and vtkXMLUnstructuredDataWriter. |
|
Which TimeStep to write. |
|
|
|
Which TimeStepRange to write. |
|
Which TimeStepRange to write. |
|
Which TimeStepRange to write. |
|
Which TimeStepRange to write. |
|
Which TimeStepRange to write. |
|
Set the number of time steps |
|
Set the number of time steps |
|
API to interface an outside the VTK pipeline control |
|
API to interface an outside the VTK pipeline control |
|
API to interface an outside the VTK pipeline control |
|
|
|
|
|
|
|
|
|
Reimplemented in vtkXMLDataSetWriter, vtkXMLPDataSetWriter, and vtkXMLPDataWriter. |
|
Reimplemented in vtkXMLPDataWriter. Definition at line 276 of file vtkXMLWriter.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in vtkXMLImageDataWriter, vtkXMLPDataWriter, vtkXMLPImageDataWriter, vtkXMLPStructuredDataWriter, and vtkXMLStructuredDataWriter. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 316 of file vtkXMLWriter.h. References VTK_CHAR. |
|
Definition at line 319 of file vtkXMLWriter.h. References VTK_CHAR. |
|
Definition at line 321 of file vtkXMLWriter.h. References VTK_UNSIGNED_CHAR. |
|
Definition at line 323 of file vtkXMLWriter.h. References VTK_SHORT. |
|
Definition at line 325 of file vtkXMLWriter.h. References VTK_UNSIGNED_SHORT. |
|
Definition at line 327 of file vtkXMLWriter.h. References VTK_INT. |
|
Definition at line 329 of file vtkXMLWriter.h. References VTK_UNSIGNED_INT. |
|
|
|
Definition at line 334 of file vtkXMLWriter.h. References VTK_CHAR. |
|
Definition at line 337 of file vtkXMLWriter.h. References VTK_CHAR. |
|
Definition at line 339 of file vtkXMLWriter.h. References VTK_UNSIGNED_CHAR. |
|
Definition at line 341 of file vtkXMLWriter.h. References VTK_SHORT. |
|
Definition at line 343 of file vtkXMLWriter.h. References VTK_UNSIGNED_SHORT. |
|
Definition at line 345 of file vtkXMLWriter.h. References VTK_INT. |
|
Definition at line 347 of file vtkXMLWriter.h. References VTK_UNSIGNED_INT. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in vtkXMLStructuredDataWriter. |
|
Reimplemented in vtkXMLStructuredDataWriter. |
|
Reimplemented in vtkXMLRectilinearGridWriter. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 195 of file vtkXMLWriter.h. |
|
Definition at line 198 of file vtkXMLWriter.h. |
|
Definition at line 201 of file vtkXMLWriter.h. |
|
Definition at line 204 of file vtkXMLWriter.h. |
|
Definition at line 208 of file vtkXMLWriter.h. |
|
Definition at line 211 of file vtkXMLWriter.h. |
|
Definition at line 214 of file vtkXMLWriter.h. |
|
Definition at line 217 of file vtkXMLWriter.h. |
|
Definition at line 250 of file vtkXMLWriter.h. |
|
Definition at line 253 of file vtkXMLWriter.h. |
|
Definition at line 256 of file vtkXMLWriter.h. |
|
Definition at line 257 of file vtkXMLWriter.h. |
|
Definition at line 258 of file vtkXMLWriter.h. |
|
Definition at line 259 of file vtkXMLWriter.h. |
|
Definition at line 260 of file vtkXMLWriter.h. |
|
Definition at line 261 of file vtkXMLWriter.h. |
|
Definition at line 265 of file vtkXMLWriter.h. |
|
Definition at line 441 of file vtkXMLWriter.h. |
|
Definition at line 443 of file vtkXMLWriter.h. |
|
Definition at line 449 of file vtkXMLWriter.h. |
|
Definition at line 450 of file vtkXMLWriter.h. |
|
Definition at line 451 of file vtkXMLWriter.h. |
|
Definition at line 453 of file vtkXMLWriter.h. |
|
Definition at line 457 of file vtkXMLWriter.h. |
|
Definition at line 459 of file vtkXMLWriter.h. |