28#ifndef vtkXMLPDataObjectWriter_h
29#define vtkXMLPDataObjectWriter_h
31#include "vtkIOParallelXMLModule.h"
47 vtkSetMacro(NumberOfPieces,
int);
48 vtkGetMacro(NumberOfPieces,
int);
55 vtkSetMacro(StartPiece,
int);
56 vtkGetMacro(StartPiece,
int);
57 vtkSetMacro(EndPiece,
int);
58 vtkGetMacro(EndPiece,
int);
65 vtkSetMacro(GhostLevel,
int);
66 vtkGetMacro(GhostLevel,
int);
73 vtkSetMacro(UseSubdirectory,
bool);
74 vtkGetMacro(UseSubdirectory,
bool);
85 vtkGetMacro(WriteSummaryFile,
int);
86 vtkBooleanMacro(WriteSummaryFile,
int);
172 vtkGetMacro(ContinuingExecution,
bool);
177 vtkGetMacro(CurrentPiece,
int);
231 bool ContinuingExecution;
Superclass for all sources, filters, and sinks in VTK.
supports function callbacks
a simple class to control print indentation
Multiprocessing communication superclass.
abstract base class for most VTK objects
Write data in a parallel XML format.
unsigned char * PieceWrittenFlags
Flags used to keep track of which pieces were written out.
vtkXMLPDataObjectWriter()
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Overridden to handle passing the CONTINUE_EXECUTING() flags to the executive.
virtual void ProgressCallback(vtkAlgorithm *w)
Progress callback from internal writer.
virtual int WritePieceInternal()=0
Method called by WriteInternal().
static void ProgressCallbackFunction(vtkObject *, unsigned long, void *, void *)
Callback registered with the InternalProgressObserver.
int WriteInternal() override
Override writing method from superclass.
vtkCallbackCommand * InternalProgressObserver
The observer to report progress from the internal writer.
virtual void WritePData(vtkIndent indent)=0
Write Data associated with the input dataset.
vtkMultiProcessController * Controller
int WriteData() override
Write data from the input dataset.
void DeleteFiles()
Method used to delete all written files.
char * PieceFileNameExtension
char * CreatePieceFileName(int index, const char *path=nullptr)
Methods for creating a filename for each piece in the dataset.
void SplitFileName()
Methods for creating a filename for each piece in the dataset.
virtual void SetController(vtkMultiProcessController *)
Controller used to communicate data type of blocks.
virtual void SetWriteSummaryFile(int flag)
Get/Set whether the writer should write the summary file that refers to all of the pieces' individual...
~vtkXMLPDataObjectWriter() override
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Overridden to make appropriate piece request from upstream.
virtual void WritePPieceAttributes(int index)
Write the attributes of the piece at the given index.
virtual void SetupPieceFileNameExtension()
Initializes PieceFileNameExtension.
virtual void PrepareSummaryFile()
Collect information between ranks before writing the summary file.
virtual int WritePiece(int index)=0
Write a piece of the dataset on disk.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for VTK's XML file writers.