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

Manages writing pieces of a data set. More...

#include <vtkPDataSetWriter.h>

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

List of all members.

Public Types

typedef vtkDataSetWriter Superclass

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
virtual int IsA (const char *type)
vtkPDataSetWriterNewInstance () const
virtual int Write ()
void SetNumberOfPieces (int num)
virtual int GetNumberOfPieces ()
virtual void SetGhostLevel (int)
virtual int GetGhostLevel ()
virtual void SetStartPiece (int)
virtual int GetStartPiece ()
virtual void SetEndPiece (int)
virtual int GetEndPiece ()
virtual void SetFilePattern (const char *)
virtual char * GetFilePattern ()
virtual void SetUseRelativeFileNames (int)
virtual int GetUseRelativeFileNames ()
virtual void UseRelativeFileNamesOn ()
virtual void UseRelativeFileNamesOff ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkPDataSetWriterSafeDownCast (vtkObjectBase *o)
static vtkPDataSetWriterNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkPDataSetWriter ()
 ~vtkPDataSetWriter ()
ostream * OpenFile ()
int WriteUnstructuredMetaData (vtkDataSet *input, char *root, char *str, ostream *fptr)
int WriteImageMetaData (vtkImageData *input, char *root, char *str, ostream *fptr)
int WriteRectilinearGridMetaData (vtkRectilinearGrid *input, char *root, char *str, ostream *fptr)
int WriteStructuredGridMetaData (vtkStructuredGrid *input, char *root, char *str, ostream *fptr)
void DeleteFiles ()

Protected Attributes

int StartPiece
int EndPiece
int NumberOfPieces
int GhostLevel
int UseRelativeFileNames
char * FilePattern

Detailed Description

Manages writing pieces of a data set.

vtkPDataSetWriter will write a piece of a file, and will also create a metadata file that lists all of the files in a data set.

Tests:
vtkPDataSetWriter (Tests)

Definition at line 35 of file vtkPDataSetWriter.h.


Member Typedef Documentation

Reimplemented from vtkDataSetWriter.

Definition at line 39 of file vtkPDataSetWriter.h.


Constructor & Destructor Documentation


Member Function Documentation

void vtkPDataSetWriter::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 vtkDataSetWriter.

static int vtkPDataSetWriter::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 vtkDataSetWriter.

virtual int vtkPDataSetWriter::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 vtkDataSetWriter.

Reimplemented from vtkDataSetWriter.

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

Reimplemented from vtkDataSetWriter.

Reimplemented from vtkDataSetWriter.

Created object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates.

Reimplemented from vtkDataSetWriter.

virtual int vtkPDataSetWriter::Write ( ) [virtual]

Write the pvtk file and cooresponding vtk files.

Reimplemented from vtkWriter.

This is how many pieces the whole data set will be divided into.

This is how many pieces the whole data set will be divided into.

virtual void vtkPDataSetWriter::SetGhostLevel ( int  ) [virtual]

Extra ghost cells will be written out to each piece file if this value is larger than 0.

virtual int vtkPDataSetWriter::GetGhostLevel ( ) [virtual]

Extra ghost cells will be written out to each piece file if this value is larger than 0.

virtual void vtkPDataSetWriter::SetStartPiece ( int  ) [virtual]

This is the range of pieces that that this writer is responsible for writing. All pieces must be written by some process. The process that writes piece 0 also writes the pvtk file that lists all the piece file names.

virtual int vtkPDataSetWriter::GetStartPiece ( ) [virtual]

This is the range of pieces that that this writer is responsible for writing. All pieces must be written by some process. The process that writes piece 0 also writes the pvtk file that lists all the piece file names.

virtual void vtkPDataSetWriter::SetEndPiece ( int  ) [virtual]

This is the range of pieces that that this writer is responsible for writing. All pieces must be written by some process. The process that writes piece 0 also writes the pvtk file that lists all the piece file names.

virtual int vtkPDataSetWriter::GetEndPiece ( ) [virtual]

This is the range of pieces that that this writer is responsible for writing. All pieces must be written by some process. The process that writes piece 0 also writes the pvtk file that lists all the piece file names.

virtual void vtkPDataSetWriter::SetFilePattern ( const char *  ) [virtual]

This file pattern uses the file name and piece number to contruct a file name for the piece file.

virtual char* vtkPDataSetWriter::GetFilePattern ( ) [virtual]

This file pattern uses the file name and piece number to contruct a file name for the piece file.

virtual void vtkPDataSetWriter::SetUseRelativeFileNames ( int  ) [virtual]

This flag determines whether to use absolute paths for the piece files. By default the pieces are put in the main directory, and the piece file names in the meta data pvtk file are relative to this directory. This should make moving the whole lot to another directory, an easier task.

This flag determines whether to use absolute paths for the piece files. By default the pieces are put in the main directory, and the piece file names in the meta data pvtk file are relative to this directory. This should make moving the whole lot to another directory, an easier task.

virtual void vtkPDataSetWriter::UseRelativeFileNamesOn ( ) [virtual]

This flag determines whether to use absolute paths for the piece files. By default the pieces are put in the main directory, and the piece file names in the meta data pvtk file are relative to this directory. This should make moving the whole lot to another directory, an easier task.

virtual void vtkPDataSetWriter::UseRelativeFileNamesOff ( ) [virtual]

This flag determines whether to use absolute paths for the piece files. By default the pieces are put in the main directory, and the piece file names in the meta data pvtk file are relative to this directory. This should make moving the whole lot to another directory, an easier task.

ostream* vtkPDataSetWriter::OpenFile ( ) [protected]
int vtkPDataSetWriter::WriteUnstructuredMetaData ( vtkDataSet input,
char *  root,
char *  str,
ostream *  fptr 
) [protected]
int vtkPDataSetWriter::WriteImageMetaData ( vtkImageData input,
char *  root,
char *  str,
ostream *  fptr 
) [protected]
int vtkPDataSetWriter::WriteRectilinearGridMetaData ( vtkRectilinearGrid input,
char *  root,
char *  str,
ostream *  fptr 
) [protected]
int vtkPDataSetWriter::WriteStructuredGridMetaData ( vtkStructuredGrid input,
char *  root,
char *  str,
ostream *  fptr 
) [protected]
void vtkPDataSetWriter::DeleteFiles ( ) [protected]

Member Data Documentation

Definition at line 103 of file vtkPDataSetWriter.h.

Definition at line 104 of file vtkPDataSetWriter.h.

Definition at line 105 of file vtkPDataSetWriter.h.

Definition at line 106 of file vtkPDataSetWriter.h.

Definition at line 108 of file vtkPDataSetWriter.h.

char* vtkPDataSetWriter::FilePattern [protected]

Definition at line 110 of file vtkPDataSetWriter.h.


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