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