VTK
vtkXMLDataSetWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLDataSetWriter.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 =========================================================================*/
35 #ifndef vtkXMLDataSetWriter_h
36 #define vtkXMLDataSetWriter_h
37 
38 #include "vtkIOXMLModule.h" // For export macro
39 #include "vtkXMLWriter.h"
40 
41 class vtkCallbackCommand;
42 
43 class VTKIOXML_EXPORT vtkXMLDataSetWriter : public vtkXMLWriter
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48  static vtkXMLDataSetWriter* New();
49 
54 
61  static vtkXMLWriter* NewWriter(int dataset_type);
62 
63 protected:
66 
67  // see algorithm for more info
69 
70  // Override writing method from superclass.
71  virtual int WriteInternal();
72 
73  // Dummies to satisfy pure virtuals from superclass.
74  const char* GetDataSetName();
75  const char* GetDefaultFileExtension();
76 
77  // Callback registered with the ProgressObserver.
78  static void ProgressCallbackFunction(vtkObject*, unsigned long, void*,
79  void*);
80  // Progress callback from internal writer.
81  virtual void ProgressCallback(vtkAlgorithm* w);
82 
83  // The observer to report progress from the internal writer.
85 
86 
87 private:
88  vtkXMLDataSetWriter(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
89  void operator=(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
90 };
91 
92 #endif
vtkXMLWriter::GetDefaultFileExtension
virtual const char * GetDefaultFileExtension()=0
Get the default file extension for files written by this writer.
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkXMLWriter.h
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:59
vtkXMLWriter::WriteInternal
virtual int WriteInternal()
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkXMLDataSetWriter
Write any type of VTK XML file.
Definition: vtkXMLDataSetWriter.h:43
vtkXMLWriter
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:53
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkXMLWriter::GetDataSetName
virtual const char * GetDataSetName()=0
vtkXMLWriter::GetInput
vtkDataObject * GetInput()
Definition: vtkXMLWriter.h:213
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkXMLWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkCallbackCommand
supports function callbacks
Definition: vtkCallbackCommand.h:50
vtkXMLDataSetWriter::ProgressObserver
vtkCallbackCommand * ProgressObserver
Definition: vtkXMLDataSetWriter.h:84