VTK
vtkXMLStructuredGridWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLStructuredGridWriter.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 =========================================================================*/
32 #ifndef vtkXMLStructuredGridWriter_h
33 #define vtkXMLStructuredGridWriter_h
34 
35 #include "vtkIOXMLModule.h" // For export macro
37 
38 class vtkStructuredGrid;
39 
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
51 
55  const char* GetDefaultFileExtension() override;
56 
57 protected:
59  ~vtkXMLStructuredGridWriter() override;
60 
61  // see algorithm for more info
63 
64  void WriteAppendedPiece(int index, vtkIndent indent) override;
65  void WriteAppendedPieceData(int index) override;
66  void WriteInlinePiece(vtkIndent indent) override;
67  void GetInputExtent(int* extent) override;
68  const char* GetDataSetName() override;
69  void CalculateSuperclassFraction(float* fractions);
70 
71  // The position of the appended data offset attribute for the points
72  // array.
73  OffsetsManagerGroup *PointsOM; //one per piece
74 
75  void AllocatePositionArrays() override;
76  void DeletePositionArrays() override;
77 
78 private:
80  void operator=(const vtkXMLStructuredGridWriter&) = delete;
81 };
82 
83 #endif
virtual const char * GetDataSetName()=0
vtkDataObject * GetInput()
Assign a data object as input.
Definition: vtkXMLWriter.h:235
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void GetInputExtent(int *extent)=0
Superclass for VTK XML structured data writers.
virtual void WriteAppendedPiece(int index, vtkIndent indent)
virtual void DeletePositionArrays()
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual const char * GetDefaultFileExtension()=0
Get the default file extension for files written by this writer.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual void WriteAppendedPieceData(int index)
topologically regular array of data
virtual void AllocatePositionArrays()
static vtkAlgorithm * New()
virtual void WriteInlinePiece(vtkIndent indent)
Write VTK XML StructuredGrid files.