VTK  9.4.20241016
vtkOMFReader.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
3
4#ifndef vtkOMFReader_h
5#define vtkOMFReader_h
6
8#include "vtkIOOMFModule.h" // For export macro
9
10VTK_ABI_NAMESPACE_BEGIN
12class vtkStringArray;
13
27class VTKIOOMF_EXPORT vtkOMFReader : public vtkDataObjectAlgorithm
28{
29public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
36 static vtkOMFReader* New();
37
39
45
47
52 bool GetDataElementArrayStatus(const char* name);
53 void SetDataElementArrayStatus(const char* name, int status);
55 const char* GetDataElementArrayName(int index);
58
63
65
68 vtkSetMacro(WriteOutTextures, bool);
69 vtkGetMacro(WriteOutTextures, bool);
71
73
78 vtkSetMacro(ColumnMajorOrdering, bool);
79 vtkGetMacro(ColumnMajorOrdering, bool);
81
82protected:
84 ~vtkOMFReader() override;
85
87 vtkInformationVector* outputVector) override;
89 vtkInformationVector* outputVector) override;
90 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
91 vtkInformationVector* outputVector) override;
92
93 int FillOutputPortInformation(int port, vtkInformation* info) override;
94
95 char* FileName;
96 bool WriteOutTextures = true;
97 bool ColumnMajorOrdering = false;
98
99private:
100 vtkOMFReader(const vtkOMFReader&) = delete;
101 void operator=(const vtkOMFReader&) = delete;
102
103 struct ReaderImpl;
104 ReaderImpl* Impl;
105};
106
107VTK_ABI_NAMESPACE_END
108#endif
Store on/off settings for data arrays, etc.
Superclass for algorithms that produce only data object as output.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read Open Mining Format files.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
char * FileName
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
bool GetDataElementArrayStatus(const char *name)
Data element selection to determine which data elements in the OMF file should be loaded.
void SetDataElementArrayStatus(const char *name, int status)
Data element selection to determine which data elements in the OMF file should be loaded.
vtkMTimeType GetMTime() override
Overridden to take into account mtimes for vtkDataArraySelection instances.
static vtkOMFReader * New()
Construct a new reader instance.
vtkGetFilePathMacro(FileName)
Accessor for name of the OMF file to read.
~vtkOMFReader() override
vtkSetFilePathMacro(FileName)
Accessor for name of the OMF file to read.
vtkDataArraySelection * GetDataElementArraySelection()
Data element selection to determine which data elements in the OMF file should be loaded.
const char * GetDataElementArrayName(int index)
Data element selection to determine which data elements in the OMF file should be loaded.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
int GetNumberOfDataElementArrays()
Data element selection to determine which data elements in the OMF file should be loaded.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a vtkAbstractArray subclass for strings
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270