VTK
vtkXMLPMultiBlockDataWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPMultiBlockDataWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef __vtkXMLPMultiBlockDataWriter_h
26 #define __vtkXMLPMultiBlockDataWriter_h
27 
29 
32 
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
45  virtual void SetController(vtkMultiProcessController*);
46  vtkGetObjectMacro(Controller, vtkMultiProcessController);
48 
52  virtual void SetWriteMetaFile(int flag);
53 
54 //BTX
55 protected:
58 
64  virtual void FillDataTypes(vtkCompositeDataSet*);
65 
67 
69 
76  virtual int WriteComposite(vtkCompositeDataSet* compositeData,
77  vtkXMLDataElement* parent, int &currentFileIndex);
79 
81 
89  int ParallelWriteNonCompositeData(
90  vtkDataObject* dObj, vtkXMLDataElement* parentXML,
91  int currentFileIndex);
93 
95 
99  int currentFileIndex, int procId, int dataSetType);
101 
104  virtual void RemoveWrittenFiles(const char* subDirectory);
105 
106 private:
107  vtkXMLPMultiBlockDataWriter(const vtkXMLPMultiBlockDataWriter&); // Not implemented.
108  void operator=(const vtkXMLPMultiBlockDataWriter&); // Not implemented.
109 
110  class vtkInternal;
111  vtkInternal* Internal;
112 //ETX
113 };
114 
115 #endif
116 
117 
vtkMultiProcessController * Controller
parallel writer for vtkHierarchicalBoxDataSet.
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
writer for vtkMultiBlockDataSet.
Represents an XML element and those nested inside.
void PrintSelf(ostream &os, vtkIndent indent)
virtual void RemoveWrittenFiles(const char *SubDirectory)
virtual void FillDataTypes(vtkCompositeDataSet *)
static vtkXMLMultiBlockDataWriter * New()
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int WriteComposite(vtkCompositeDataSet *compositeData, vtkXMLDataElement *parent, int &writerIdx)
vtkStdString CreatePieceFileName(int Piece)
virtual void SetWriteMetaFile(int flag)
vtkXMLCompositeDataWriterInternals * Internal
#define VTK_PARALLEL_EXPORT
general representation of visualization data
Definition: vtkDataObject.h:70
Multiprocessing communication superclass.