VTK  9.2.6
vtkOMFReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkFidesReader.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=========================================================================*/
15
16#ifndef vtkOMFReader_h
17#define vtkOMFReader_h
18
20#include "vtkIOOMFModule.h" // For export macro
21
23class vtkStringArray;
24
38class VTKIOOMF_EXPORT vtkOMFReader : public vtkDataObjectAlgorithm
39{
40public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
47 static vtkOMFReader* New();
48
50
56
58
63 bool GetDataElementArrayStatus(const char* name);
64 void SetDataElementArrayStatus(const char* name, int status);
66 const char* GetDataElementArrayName(int index);
69
74
76
79 vtkSetMacro(WriteOutTextures, bool);
80 vtkGetMacro(WriteOutTextures, bool);
82
84
89 vtkSetMacro(ColumnMajorOrdering, bool);
90 vtkGetMacro(ColumnMajorOrdering, bool);
92
93protected:
95 ~vtkOMFReader() override;
96
98 vtkInformationVector* outputVector) override;
100 vtkInformationVector* outputVector) override;
102 vtkInformationVector* outputVector) override;
103
104 int FillOutputPortInformation(int port, vtkInformation* info) override;
105
106 char* FileName;
107 bool WriteOutTextures = true;
108 bool ColumnMajorOrdering = false;
109
110private:
111 vtkOMFReader(const vtkOMFReader&) = delete;
112 void operator=(const vtkOMFReader&) = delete;
113
114 struct ReaderImpl;
115 ReaderImpl* Impl;
116};
117
118#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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read Open Mining Format files.
Definition: vtkOMFReader.h:39
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
char * FileName
Definition: vtkOMFReader.h:106
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:287