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 =========================================================================*/
34 #ifndef __vtkXMLDataSetWriter_h
35 #define __vtkXMLDataSetWriter_h
36 
37 #include "vtkXMLWriter.h"
38 
39 class vtkCallbackCommand;
40 
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46  static vtkXMLDataSetWriter* New();
47 
48  //BTX
50 
52  //ETX
54 
55 protected:
58 
59  // see algorithm for more info
61 
62  // Override writing method from superclass.
63  virtual int WriteInternal();
64 
65  // Dummies to satisfy pure virtuals from superclass.
66  const char* GetDataSetName();
67  const char* GetDefaultFileExtension();
68 
69  // Callback registered with the ProgressObserver.
70  static void ProgressCallbackFunction(vtkObject*, unsigned long, void*,
71  void*);
72  // Progress callback from internal writer.
73  virtual void ProgressCallback(vtkAlgorithm* w);
74 
75  // The observer to report progress from the internal writer.
77 
78 private:
79  vtkXMLDataSetWriter(const vtkXMLDataSetWriter&); // Not implemented.
80  void operator=(const vtkXMLDataSetWriter&); // Not implemented.
81 };
82 
83 #endif
virtual const char * GetDataSetName()=0
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkDataObject * GetInput()
Definition: vtkXMLWriter.h:180
Write any type of VTK XML file.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
supports function callbacks
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
vtkCallbackCommand * ProgressObserver
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:50
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int WriteInternal()
void PrintSelf(ostream &os, vtkIndent indent)
virtual const char * GetDefaultFileExtension()=0
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkAlgorithm * New()
#define VTK_IO_EXPORT