VTK  9.1.0
vtkXMLDataObjectWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLDataObjectWriter.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 vtkXMLDataObjectWriter_h
30#define vtkXMLDataObjectWriter_h
31
32#include "vtkIOXMLModule.h" // For export macro
33#include "vtkXMLWriter.h"
34
36
37class VTKIOXML_EXPORT vtkXMLDataObjectWriter : public vtkXMLWriter
38{
39public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
43
48
55 static vtkXMLWriter* NewWriter(int dataset_type);
56
57protected:
60
61 // see algorithm for more info
63
64 // Override writing method from superclass.
65 int WriteInternal() override;
66
67 // Dummies to satisfy pure virtuals from superclass.
68 const char* GetDataSetName() override;
69 const char* GetDefaultFileExtension() override;
70
71 // Callback registered with the InternalProgressObserver.
72 static void ProgressCallbackFunction(vtkObject*, unsigned long, void*, void*);
73 // Progress callback from internal writer.
75
76 // The observer to report progress from the internal writer.
78
79private:
81 void operator=(const vtkXMLDataObjectWriter&) = delete;
82};
83
84#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:114
supports function callbacks
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:113
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition: vtkObject.h:73
Write any type of VTK XML file.
virtual void ProgressCallback(vtkAlgorithm *w)
static vtkXMLDataObjectWriter * New()
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSet * GetInput()
Get/Set the writer's input.
~vtkXMLDataObjectWriter() override
static void ProgressCallbackFunction(vtkObject *, unsigned long, void *, void *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCallbackCommand * InternalProgressObserver
static vtkXMLWriter * NewWriter(int dataset_type)
Creates a writer for the given dataset type.
int WriteInternal() override
const char * GetDataSetName() override
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:62
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453