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
42
43class VTKIOXML_EXPORT vtkXMLDataSetWriter : public vtkXMLWriter
44{
45public:
47 void PrintSelf(ostream& os, vtkIndent indent);
49
54
61 static vtkXMLWriter* NewWriter(int dataset_type);
62
63protected:
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();
76
77 // Callback registered with the ProgressObserver.
78 static void ProgressCallbackFunction(vtkObject*, unsigned long, void*,
79 void*);
80 // Progress callback from internal writer.
82
83 // The observer to report progress from the internal writer.
85
86
87private:
88 vtkXMLDataSetWriter(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
89 void operator=(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
90};
91
92#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
supports function callbacks
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition: vtkObject.h:60
Write any type of VTK XML file.
static vtkXMLWriter * NewWriter(int dataset_type)
Creates a writer for the given dataset type.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkXMLDataSetWriter * New()
const char * GetDataSetName()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkCallbackCommand * ProgressObserver
const char * GetDefaultFileExtension()
Get the default file extension for files written by this writer.
virtual void ProgressCallback(vtkAlgorithm *w)
virtual int WriteInternal()
vtkDataSet * GetInput()
Get/Set the writer's input.
static void ProgressCallbackFunction(vtkObject *, unsigned long, void *, void *)
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:54
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447