VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkXMLPMultiBlockDataWriter Class Reference

parallel writer for vtkHierarchicalBoxDataSet. More...

#include <vtkXMLPMultiBlockDataWriter.h>

Inheritance diagram for vtkXMLPMultiBlockDataWriter:
[legend]
Collaboration diagram for vtkXMLPMultiBlockDataWriter:
[legend]

Public Types

typedef vtkXMLMultiBlockDataWriter Superclass
 
- Public Types inherited from vtkXMLMultiBlockDataWriter
typedef vtkXMLCompositeDataWriter Superclass
 
- Public Types inherited from vtkXMLCompositeDataWriter
typedef vtkXMLWriter Superclass
 
- Public Types inherited from vtkXMLWriter
enum  CompressorType { NONE, ZLIB }
 
typedef vtkAlgorithm Superclass
 
enum  { BigEndian, LittleEndian }
 
enum  { Ascii, Binary, Appended }
 
enum  { Int32 =32, Int64 =64 }
 
typedef vtkIdType OffsetType
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetWriteMetaFile (int flag)
 
virtual void SetController (vtkMultiProcessController *)
 
virtual vtkMultiProcessControllerGetController ()
 
- Public Member Functions inherited from vtkXMLMultiBlockDataWriter
virtual const char * GetDefaultFileExtension ()
 
- Public Member Functions inherited from vtkXMLCompositeDataWriter
virtual int GetGhostLevel ()
 
virtual void SetGhostLevel (int)
 
virtual int GetWriteMetaFile ()
 
int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Public Member Functions inherited from vtkXMLWriter
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 vtkDataCompressorGetCompressor ()
 
void SetCompressorType (int compressorType)
 
void SetCompressorTypeToNone ()
 
void SetCompressorTypeToZLib ()
 
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 *)
 
vtkDataObjectGetInput (int port)
 
vtkDataObjectGetInput ()
 
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)
 
- Public Member Functions inherited from vtkAlgorithm
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
virtual void Update ()
 
virtual void UpdateInformation ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
virtual double ComputePriority ()
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
 
virtual void DebugOff ()
 
unsigned char GetDebug ()
 
void SetDebug (unsigned char debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &os)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static
vtkXMLPMultiBlockDataWriter
New ()
 
static int IsTypeOf (const char *type)
 
static
vtkXMLPMultiBlockDataWriter
SafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkXMLMultiBlockDataWriter
static vtkXMLMultiBlockDataWriterNew ()
 
static int IsTypeOf (const char *type)
 
static vtkXMLMultiBlockDataWriterSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkXMLCompositeDataWriter
static int IsTypeOf (const char *type)
 
static vtkXMLCompositeDataWriterSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkXMLWriter
static int IsTypeOf (const char *type)
 
static vtkXMLWriterSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObject *o)
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static
vtkInformationInformationVectorKey
INPUT_REQUIRED_FIELDS ()
 
static
vtkInformationStringVectorKey
INPUT_REQUIRED_DATA_TYPE ()
 
static
vtkInformationInformationVectorKey
INPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyPRESERVES_DATASET ()
 
static vtkInformationIntegerKeyPRESERVES_GEOMETRY ()
 
static vtkInformationIntegerKeyPRESERVES_BOUNDS ()
 
static vtkInformationIntegerKeyPRESERVES_TOPOLOGY ()
 
static vtkInformationIntegerKeyPRESERVES_ATTRIBUTES ()
 
static vtkInformationIntegerKeyPRESERVES_RANGES ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObject *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkXMLPMultiBlockDataWriter ()
 
 ~vtkXMLPMultiBlockDataWriter ()
 
virtual void FillDataTypes (vtkCompositeDataSet *)
 
virtual void RemoveWrittenFiles (const char *subDirectory)
 
virtual int WriteComposite (vtkCompositeDataSet *compositeData, vtkXMLDataElement *parent, int &currentFileIndex)
 
int ParallelWriteNonCompositeData (vtkDataObject *dObj, vtkXMLDataElement *parentXML, int currentFileIndex)
 
virtual vtkStdString CreatePieceFileName (int currentFileIndex, int procId, int dataSetType)
 
- Protected Member Functions inherited from vtkXMLMultiBlockDataWriter
 vtkXMLMultiBlockDataWriter ()
 
 ~vtkXMLMultiBlockDataWriter ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
- Protected Member Functions inherited from vtkXMLCompositeDataWriter
 vtkXMLCompositeDataWriter ()
 
 ~vtkXMLCompositeDataWriter ()
 
vtkStdString CreatePieceFileName (int Piece)
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int WriteData ()
 
virtual const char * GetDataSetName ()
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
unsigned int GetNumberOfDataTypes ()
 
int * GetDataTypesPointer ()
 
void CreateWriters (vtkCompositeDataSet *)
 
vtkXMLWriterGetWriter (int index)
 
void SplitFileName ()
 
const char * GetFilePrefix ()
 
const char * GetFilePath ()
 
int WriteMetaFileIfRequested ()
 
void MakeDirectory (const char *name)
 
void RemoveADirectory (const char *name)
 
virtual void ProgressCallback (vtkAlgorithm *w)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual int GetDataSetMajorVersion ()
 
virtual int GetDataSetMinorVersion ()
 
virtual int WriteNonCompositeData (vtkDataObject *dObj, vtkXMLDataElement *element, int &writerIdx, const char *FileName)
 
- Protected Member Functions inherited from vtkXMLWriter
 vtkXMLWriter ()
 
 ~vtkXMLWriter ()
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual void SetDataStream (vtkOutputStream *)
 
virtual vtkOutputStreamGetDataStream ()
 
virtual int WriteInternal ()
 
vtkDataSetGetInputAsDataSet ()
 
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 ()
 
OffsetType ReserveAttributeSpace (const char *attr, int length=20)
 
OffsetType GetAppendedDataOffset ()
 
OffsetType WriteAppendedDataOffset (OffsetType streamPos, OffsetType &lastoffset, const char *attr=0)
 
OffsetType ForwardAppendedDataOffset (OffsetType streamPos, OffsetType offset, const char *attr=0)
 
OffsetType ForwardAppendedDataDouble (OffsetType streamPos, double value, const char *attr)
 
int WriteScalarAttribute (const char *name, int data)
 
int WriteScalarAttribute (const char *name, float data)
 
int WriteScalarAttribute (const char *name, double 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)
 
void WriteArrayHeader (vtkAbstractArray *a, vtkIndent indent, const char *alternateName, int writeNumTuples, int timestep)
 
void WriteArrayFooter (ostream &os, vtkIndent indent, vtkAbstractArray *a, int shortFormat)
 
void WriteArrayInline (vtkAbstractArray *a, vtkIndent indent, const char *alternateName=0, int writeNumTuples=0)
 
void WriteInlineData (vtkAbstractArray *a, vtkIndent indent)
 
void WriteArrayAppended (vtkAbstractArray *a, vtkIndent indent, OffsetsManager &offs, const char *alternateName=0, int writeNumTuples=0, int timestep=0)
 
int WriteAsciiData (vtkAbstractArray *a, vtkIndent indent)
 
int WriteBinaryData (vtkAbstractArray *a)
 
int WriteBinaryDataInternal (vtkAbstractArray *a, OffsetType data_size)
 
void WriteArrayAppendedData (vtkAbstractArray *a, OffsetType pos, OffsetType &lastoffset)
 
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 vtkAbstractArrayCreateArrayForPoints (vtkAbstractArray *inArray)
 
virtual vtkAbstractArrayCreateArrayForCells (vtkAbstractArray *inArray)
 
virtual vtkDataArrayCreateExactCoordinates (vtkDataArray *inArray, int xyz)
 
void WritePPointData (vtkPointData *pd, vtkIndent indent)
 
void WritePCellData (vtkCellData *cd, vtkIndent indent)
 
void WritePPoints (vtkPoints *points, vtkIndent indent)
 
void WritePArray (vtkAbstractArray *a, vtkIndent indent, const char *alternateName=0)
 
void WritePCoordinates (vtkDataArray *xc, vtkDataArray *yc, vtkDataArray *zc, vtkIndent indent)
 
int WriteBinaryDataInternal (void *data, OffsetType numWords, int wordType)
 
int WriteBinaryDataBlock (unsigned char *in_data, OffsetType numWords, int wordType)
 
void PerformByteSwap (void *data, OffsetType numWords, int wordSize)
 
int CreateCompressionHeader (OffsetType size)
 
int WriteCompressionBlock (unsigned char *data, OffsetType size)
 
int WriteCompressionHeader ()
 
OffsetType GetWordTypeSize (int dataType)
 
const char * GetWordTypeName (int dataType)
 
OffsetType 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 Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &os)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkMultiProcessControllerController
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkXMLCompositeDataWriter
static void ProgressCallbackFunction (vtkObject *, unsigned long, void *, void *)
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 
- Friends inherited from vtkObject

Detailed Description

parallel writer for vtkHierarchicalBoxDataSet.

vtkXMLPCompositeDataWriter writes (in parallel or serially) the VTK XML multi-group, multi-block hierarchical and hierarchical box files. XML multi-group data files are meta-files that point to a list of serial VTK XML files.

Definition at line 33 of file vtkXMLPMultiBlockDataWriter.h.

Member Typedef Documentation

Definition at line 37 of file vtkXMLPMultiBlockDataWriter.h.

Constructor & Destructor Documentation

vtkXMLPMultiBlockDataWriter::vtkXMLPMultiBlockDataWriter ( )
protected
vtkXMLPMultiBlockDataWriter::~vtkXMLPMultiBlockDataWriter ( )
protected

Member Function Documentation

static vtkXMLPMultiBlockDataWriter* vtkXMLPMultiBlockDataWriter::New ( )
static
virtual const char* vtkXMLPMultiBlockDataWriter::GetClassName ( )
virtual

Reimplemented from vtkXMLMultiBlockDataWriter.

static int vtkXMLPMultiBlockDataWriter::IsTypeOf ( const char *  type)
static
virtual int vtkXMLPMultiBlockDataWriter::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 vtkXMLMultiBlockDataWriter.

static vtkXMLPMultiBlockDataWriter* vtkXMLPMultiBlockDataWriter::SafeDownCast ( vtkObject o)
static
void vtkXMLPMultiBlockDataWriter::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 vtkXMLMultiBlockDataWriter.

virtual void vtkXMLPMultiBlockDataWriter::SetController ( vtkMultiProcessController )
virtual

Controller used to communicate data type of blocks. By default, the global controller is used. If you want another controller to be used, set it with this. If no controller is set, only the local blocks will be written to the meta-file.

virtual vtkMultiProcessController* vtkXMLPMultiBlockDataWriter::GetController ( )
virtual

Controller used to communicate data type of blocks. By default, the global controller is used. If you want another controller to be used, set it with this. If no controller is set, only the local blocks will be written to the meta-file.

virtual void vtkXMLPMultiBlockDataWriter::SetWriteMetaFile ( int  flag)
virtual

Set whether this instance will write the meta-file. WriteMetaFile is set to flag only on process 0 and all other processes have WriteMetaFile set to 0 by default.

Reimplemented from vtkXMLCompositeDataWriter.

virtual void vtkXMLPMultiBlockDataWriter::FillDataTypes ( vtkCompositeDataSet )
protectedvirtual

Determine the data types for each of the leaf nodes. Currently each process requires this information in order to simplify creating the file names for both the metadata file as well as the actual dataset files. It takes into account that a piece of a dataset may be distributed in multiple pieces over multiple processes.

Reimplemented from vtkXMLCompositeDataWriter.

virtual int vtkXMLPMultiBlockDataWriter::WriteComposite ( vtkCompositeDataSet compositeData,
vtkXMLDataElement parent,
int &  currentFileIndex 
)
protectedvirtual

Internal method called recursively to create the xml tree for the children of compositeData as well as write the actual data set files. element will only have added nested information. writerIdx is the global piece index used to create unique filenames for each file written. This function returns 0 if no files were written from compositeData. Process 0 creates the metadata for all of the processes/files.

Reimplemented from vtkXMLMultiBlockDataWriter.

int vtkXMLPMultiBlockDataWriter::ParallelWriteNonCompositeData ( vtkDataObject dObj,
vtkXMLDataElement parentXML,
int  currentFileIndex 
)
protected

Internal method to write a non vtkCompositeDataSet subclass as well as add in the file name to the metadata file. Element is the containing XML metadata element that may have data overwritten and added to (the index XML attribute should not be touched though). writerIdx is the piece index that gets incremented for the globally numbered piece. If this piece exists on multiple processes than it also takes care of that in the metadata description. This function returns 0 if no file was written.

virtual vtkStdString vtkXMLPMultiBlockDataWriter::CreatePieceFileName ( int  currentFileIndex,
int  procId,
int  dataSetType 
)
protectedvirtual

Return the name of the file given the currentFileIndex (also the current globally numbered piece index), the procId the file exists on, and the dataSetType.

virtual void vtkXMLPMultiBlockDataWriter::RemoveWrittenFiles ( const char *  subDirectory)
protectedvirtual

Utility function to remove any already written files in case writer failed.

Reimplemented from vtkXMLCompositeDataWriter.

Member Data Documentation

vtkMultiProcessController* vtkXMLPMultiBlockDataWriter::Controller
protected

Definition at line 66 of file vtkXMLPMultiBlockDataWriter.h.


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