VTK
vtkXdmf3Writer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXdmf3Writer.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 =========================================================================*/
15 
29 #ifndef vtkXdmf3Writer_h
30 #define vtkXdmf3Writer_h
31 
32 #include "vtkIOXdmf3Module.h" // For export macro
33 
34 #include "vtkDataObjectAlgorithm.h"
35 
36 class vtkDoubleArray;
37 
38 class VTKIOXDMF3_EXPORT vtkXdmf3Writer : public vtkDataObjectAlgorithm
39 {
40 public:
41  static vtkXdmf3Writer *New();
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
48  virtual void SetInputData(vtkDataObject* dobj);
49 
51 
54  vtkSetStringMacro(FileName);
55  vtkGetStringMacro(FileName);
57 
59 
63  void SetGhostLevel(int) {}
64  int GetGhostLevel() {return 0;}
66 
72  virtual int Write();
73 
75 
79  vtkSetMacro(LightDataLimit, unsigned int);
80  vtkGetMacro(LightDataLimit, unsigned int);
82 
84 
89  vtkSetMacro(WriteAllTimeSteps, bool);
90  vtkGetMacro(WriteAllTimeSteps, bool);
91  vtkBooleanMacro(WriteAllTimeSteps, bool);
93 
94 protected:
96  ~vtkXdmf3Writer();
97 
98  //Overridden to set up automatic loop over time steps.
101  vtkInformationVector*) override;
102  //Overridden to continue automatic loop over time steps.
105  vtkInformationVector*) override;
106  //Write out the input data objects as XDMF and HDF output files.
109  vtkInformationVector*) override;
110 
111  char *FileName;
112  unsigned int LightDataLimit;
115  int MyRank;
116 
119  void WriteDataInternal (vtkInformation* request);
120  int CheckParametersInternal (int NumberOfProcesses, int MyRank);
121  virtual int CheckParameters ();
122  // If writing in parallel multiple time steps exchange after each time step
123  // if we should continue the execution. Pass local continueExecution as a
124  // parameter and return the global continueExecution.
125  virtual int GlobalContinueExecuting(int localContinueExecution);
126 
128 
129 private:
130  vtkXdmf3Writer(const vtkXdmf3Writer&) = delete;
131  void operator=(const vtkXdmf3Writer&) = delete;
132 
133  class Internals;
134  Internals *Internal;
135 };
136 
137 #endif /* vtkXdmf3Writer_h */
void SetGhostLevel(int)
We never write out ghost cells.
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
int GetGhostLevel()
We never write out ghost cells.
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetInputData(vtkDataObject *)
Assign a data object as input.
unsigned int LightDataLimit
vtkDataObject * OriginalInput
write eXtensible Data Model and Format files
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
vtkDoubleArray * TimeValues
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.