16#ifndef vtkXMLPDataObjectWriter_h
17#define vtkXMLPDataObjectWriter_h
19#include "vtkIOParallelXMLModule.h"
22VTK_ABI_NAMESPACE_BEGIN
36 vtkSetMacro(NumberOfPieces,
int);
37 vtkGetMacro(NumberOfPieces,
int);
44 vtkSetMacro(StartPiece,
int);
45 vtkGetMacro(StartPiece,
int);
46 vtkSetMacro(EndPiece,
int);
47 vtkGetMacro(EndPiece,
int);
54 vtkSetMacro(GhostLevel,
int);
55 vtkGetMacro(GhostLevel,
int);
62 vtkSetMacro(UseSubdirectory,
bool);
63 vtkGetMacro(UseSubdirectory,
bool);
74 vtkGetMacro(WriteSummaryFile,
int);
75 vtkBooleanMacro(WriteSummaryFile,
int);
161 vtkGetMacro(ContinuingExecution,
bool);
166 vtkGetMacro(CurrentPiece,
int);
220 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.