VTK  9.1.0
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
35class VTKIOOMF_EXPORT vtkOMFReader : public vtkDataObjectAlgorithm
36{
37public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
44 static vtkOMFReader* New();
45
47
53
55
61 void SetDataElementArrayStatus(const char* name, int status);
66
71
73
76 vtkSetMacro(WriteOutTextures, bool);
77 vtkGetMacro(WriteOutTextures, bool);
79
81
86 vtkSetMacro(ColumnMajorOrdering, bool);
87 vtkGetMacro(ColumnMajorOrdering, bool);
89
90protected:
92 ~vtkOMFReader() override;
93
95 vtkInformationVector* outputVector) override;
97 vtkInformationVector* outputVector) override;
98 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
99 vtkInformationVector* outputVector) override;
100
102
103 char* FileName;
104 bool WriteOutTextures = true;
105 bool ColumnMajorOrdering = false;
106
107private:
108 vtkOMFReader(const vtkOMFReader&) = delete;
109 void operator=(const vtkOMFReader&) = delete;
110
111 struct ReaderImpl;
112 ReaderImpl* Impl;
113};
114
115#endif
Store on/off settings for data arrays for a vtkSource.
Superclass for algorithms that produce only data object as output.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read Open Mining Format files.
Definition: vtkOMFReader.h:36
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
char * FileName
Definition: vtkOMFReader.h:103
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
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ name
Definition: vtkX3D.h:225
@ index
Definition: vtkX3D.h:252
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287