Go to the documentation of this file.
26 #ifndef vtkXMLCompositeDataWriter_h
27 #define vtkXMLCompositeDataWriter_h
29 #include "vtkIOXMLModule.h"
36 class vtkXMLCompositeDataWriterInternals;
57 vtkGetMacro(GhostLevel,
int);
58 vtkSetMacro(GhostLevel,
int);
65 vtkGetMacro(WriteMetaFile,
int);
198 int& writerIdx,
const char* FileName);
virtual void FillDataTypes(vtkCompositeDataSet *)
Determine the data types for each of the leaf nodes.
vtkXMLCompositeDataWriter()
int WriteMetaFile
Whether to write the collection file on this node.
virtual int WriteNonCompositeData(vtkDataObject *dObj, vtkXMLDataElement *element, int &writerIdx, const char *FileName)
Internal method to write a non vtkCompositeDataSet subclass as well as add in the file name to the me...
virtual void RemoveWrittenFiles(const char *SubDirectory)
Utility function to remove any already written files in case writer failed.
int WriteMetaFileIfRequested()
Write the collection file if it is requested.
vtkXMLWriter * GetWriter(int index)
Superclass for all sources, filters, and sinks in VTK.
vtkCallbackCommand * InternalProgressObserver
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
abstract base class for most VTK objects
static void ProgressCallbackFunction(vtkObject *, unsigned long, void *, void *)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for composite (multi-block or AMR) datasets
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
See the vtkAlgorithm for a description of what these do.
vtkStdString CreatePieceFileName(int Piece)
Create a filename for the given index.
Superclass for all pipeline executives in VTK.
void RemoveADirectory(const char *name)
const char * GetDefaultFileExtensionForDataSet(int dataset_type)
Returns the default extension to use for the given dataset type.
Superclass for VTK's XML file writers.
int GetDataSetMinorVersion() override
a simple class to control print indentation
const char * GetDataSetName() override
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkXMLCompositeDataWriterInternals * Internal
Represents an XML element and those nested inside.
const char * GetFilePath()
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
void CreateWriters(vtkCompositeDataSet *)
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
int * GetDataTypesPointer()
Returns the array pointer to the array of leaf nodes.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual void SetWriteMetaFile(int flag)
supports function callbacks
Wrapper around std::string to keep symbols short.
unsigned int GetNumberOfDataTypes()
Returns the number of leaf nodes (also includes empty leaf nodes).
void MakeDirectory(const char *name)
general representation of visualization data
Writer for multi-group datasets.
virtual int WriteComposite(vtkCompositeDataSet *compositeData, vtkXMLDataElement *element, int &writerIdx)=0
Internal method called recursively to create the xml tree for the children of compositeData as well a...
~vtkXMLCompositeDataWriter() override
vtkInformation * InputInformation
const char * GetFilePrefix()
virtual void ProgressCallback(vtkAlgorithm *w)