VTK: IO/XML/vtkXMLRectilinearGridWriter.h Source File

| VTK 9.3.1

vtkXMLRectilinearGridWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
29 #ifndef vtkXMLRectilinearGridWriter_h
30 #define vtkXMLRectilinearGridWriter_h
31
32 #include "vtkIOXMLModule.h" // For export macro
33 #include "vtkXMLStructuredDataWriter.h"
34
35 VTK_ABI_NAMESPACE_BEGIN
36 class vtkRectilinearGrid;
37
38 class VTKIOXML_EXPORT vtkXMLRectilinearGridWriter : public vtkXMLStructuredDataWriter
39 {
40 public:
41 static vtkXMLRectilinearGridWriter* New();
42 vtkTypeMacro(vtkXMLRectilinearGridWriter, vtkXMLStructuredDataWriter);
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
48 vtkRectilinearGrid* GetInput();
49
53 const char* GetDefaultFileExtension() override;
54
55 protected:
56 vtkXMLRectilinearGridWriter();
57 ~vtkXMLRectilinearGridWriter() override;
58
59 // see algorithm for more info
60 int FillInputPortInformation(int port, vtkInformation* info) override;
61
62 int WriteAppendedMode(vtkIndent indent);
63 void WriteAppendedPiece(int index, vtkIndent indent) override;
64 void WriteAppendedPieceData(int index) override;
65 void WriteInlinePiece(vtkIndent indent) override;
66 void GetInputExtent(int* extent) override;
67 const char* GetDataSetName() override;
68 void CalculateSuperclassFraction(float* fractions);
69
70 // Coordinate array appended data positions.
71 OffsetsManagerArray* CoordinateOM;
72
73 void AllocatePositionArrays() override;
74 void DeletePositionArrays() override;
75
76 private:
77 vtkXMLRectilinearGridWriter(const vtkXMLRectilinearGridWriter&) = delete;
78 void operator=(const vtkXMLRectilinearGridWriter&) = delete;
79 };
80
81 VTK_ABI_NAMESPACE_END
82 #endif
OffsetsManagerArray
Definition: vtkXMLOffsetsManager.h:144
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:56
vtkXMLRectilinearGridWriter
Write VTK XML RectilinearGrid files.
Definition: vtkXMLRectilinearGridWriter.h:39
vtkXMLRectilinearGridWriter::GetInput
vtkRectilinearGrid * GetInput()
Get/Set the writer's input.
vtkXMLRectilinearGridWriter::GetInputExtent
void GetInputExtent(int *extent) override
vtkXMLRectilinearGridWriter::WriteAppendedPiece
void WriteAppendedPiece(int index, vtkIndent indent) override
vtkXMLRectilinearGridWriter::vtkXMLRectilinearGridWriter
vtkXMLRectilinearGridWriter()
vtkXMLRectilinearGridWriter::WriteInlinePiece
void WriteInlinePiece(vtkIndent indent) override
vtkXMLRectilinearGridWriter::WriteAppendedMode
int WriteAppendedMode(vtkIndent indent)
vtkXMLRectilinearGridWriter::CalculateSuperclassFraction
void CalculateSuperclassFraction(float *fractions)
vtkXMLRectilinearGridWriter::GetDataSetName
const char * GetDataSetName() override
vtkXMLRectilinearGridWriter::~vtkXMLRectilinearGridWriter
~vtkXMLRectilinearGridWriter() override
vtkXMLRectilinearGridWriter::CoordinateOM
OffsetsManagerArray * CoordinateOM
Definition: vtkXMLRectilinearGridWriter.h:71
vtkXMLRectilinearGridWriter::WriteAppendedPieceData
void WriteAppendedPieceData(int index) override
vtkXMLRectilinearGridWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLRectilinearGridWriter::AllocatePositionArrays
void AllocatePositionArrays() override
vtkXMLRectilinearGridWriter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkXMLRectilinearGridWriter::DeletePositionArrays
void DeletePositionArrays() override
vtkXMLRectilinearGridWriter::New
static vtkXMLRectilinearGridWriter * New()
vtkXMLRectilinearGridWriter::GetDefaultFileExtension
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
vtkXMLStructuredDataWriter
Superclass for VTK XML structured data writers.
Definition: vtkXMLStructuredDataWriter.h:23
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkXMLStructuredDataWriter.h