15 #ifndef vtkXMLCompositeDataWriter_h
16 #define vtkXMLCompositeDataWriter_h
18 #include "vtkIOXMLModule.h"
22 VTK_ABI_NAMESPACE_BEGIN
26 class vtkXMLCompositeDataWriterInternals;
47 vtkGetMacro(GhostLevel,
int);
48 vtkSetMacro(GhostLevel,
int);
55 vtkGetMacro(WriteMetaFile,
int);
196 VTK_ABI_NAMESPACE_END
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int GetDataSetMinorVersion() override
void MakeDirectory(const char *name)
static void ProgressCallbackFunction(vtkObject *, unsigned long, void *, void *)
VTK_FILEPATH const char * GetFilePath()
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
See the vtkAlgorithm for a description of what these do.
const char * GetDataSetName() override
vtkStdString CreatePieceFileName(int Piece)
Create a filename for the given index.
~vtkXMLCompositeDataWriter() override
virtual void FillDataTypes(vtkCompositeDataSet *)
Determine the data types for each of the leaf nodes.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void RemoveADirectory(const char *name)
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.
VTK_FILEPATH const char * GetFilePrefix()
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkXMLWriter * GetWriter(int index)
int WriteMetaFileIfRequested()
Write the collection file if it is requested.
virtual void ProgressCallback(vtkAlgorithm *w)
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
vtkCallbackCommand * InternalProgressObserver
virtual void SetWriteMetaFile(int flag)
Get/Set whether this instance will write the meta-file.
int * GetDataTypesPointer()
Returns the array pointer to the array of leaf nodes.
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.
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...
void CreateWriters(vtkCompositeDataSet *)
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...
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
vtkXMLCompositeDataWriter()
Represents an XML element and those nested inside.
Superclass for VTK's XML file writers.
std::map< DataSetType, DataSet > Piece