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 =========================================================================*/
29 #ifndef vtkXMLPMultiBlockDataWriter_h
30 #define vtkXMLPMultiBlockDataWriter_h
31 
32 #include "vtkIOParallelXMLModule.h" // For export macro
34 
37 
38 class VTKIOPARALLELXML_EXPORT vtkXMLPMultiBlockDataWriter : public vtkXMLMultiBlockDataWriter
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
46 
49  vtkSetMacro(NumberOfPieces, int);
50  vtkGetMacro(NumberOfPieces, int);
52 
54 
57  vtkSetMacro(StartPiece, int);
58  vtkGetMacro(StartPiece, int);
60 
62 
69  virtual void SetController(vtkMultiProcessController*);
70  vtkGetObjectMacro(Controller, vtkMultiProcessController);
72 
78  void SetWriteMetaFile(int flag) VTK_OVERRIDE;
79 
80  // See the vtkAlgorithm for a desciption of what these do
83  vtkInformationVector*) VTK_OVERRIDE;
84 
85 protected:
87  ~vtkXMLPMultiBlockDataWriter() VTK_OVERRIDE;
88 
97  void FillDataTypes(vtkCompositeDataSet*) VTK_OVERRIDE;
98 
100 
110  int WriteComposite(vtkCompositeDataSet* compositeData,
111  vtkXMLDataElement* parent, int &currentFileIndex) VTK_OVERRIDE;
112 
124  int ParallelWriteNonCompositeData(
125  vtkDataObject* dObj, vtkXMLDataElement* parentXML,
126  int currentFileIndex);
127 
133  virtual vtkStdString CreatePieceFileName(
134  int currentFileIndex, int procId, int dataSetType);
135 
140  void RemoveWrittenFiles(const char* subDirectory) VTK_OVERRIDE;
141 
143 
146  int StartPiece;
147  int NumberOfPieces;
149 
150 private:
151  vtkXMLPMultiBlockDataWriter(const vtkXMLPMultiBlockDataWriter&) VTK_DELETE_FUNCTION;
152  void operator=(const vtkXMLPMultiBlockDataWriter&) VTK_DELETE_FUNCTION;
153 
154  class vtkInternal;
155  vtkInternal* Internal;
156 
157 };
158 
159 #endif
parallel writer for vtkHierarchicalBoxDataSet.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:47
writer for vtkMultiBlockDataSet.
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
See the vtkAlgorithm for a desciption of what these do.
static vtkXMLMultiBlockDataWriter * New()
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
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual void SetWriteMetaFile(int flag)
Get/Set whether this instance will write the meta-file.
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64
Multiprocessing communication superclass.