VTK  9.3.0
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 
10 VTK_ABI_NAMESPACE_BEGIN
12 class vtkStringArray;
13 
27 class VTKIOOMF_EXPORT vtkOMFReader : public vtkDataObjectAlgorithm
28 {
29 public:
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 
62  vtkMTimeType GetMTime() override;
63 
65 
68  vtkSetMacro(WriteOutTextures, bool);
69  vtkGetMacro(WriteOutTextures, bool);
71 
73 
78  vtkSetMacro(ColumnMajorOrdering, bool);
79  vtkGetMacro(ColumnMajorOrdering, bool);
81 
82 protected:
84  ~vtkOMFReader() override;
85 
87  vtkInformationVector* outputVector) override;
89  vtkInformationVector* outputVector) override;
90  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
91  vtkInformationVector* outputVector) override;
92 
94 
95  char* FileName;
96  bool WriteOutTextures = true;
97  bool ColumnMajorOrdering = false;
98 
99 private:
100  vtkOMFReader(const vtkOMFReader&) = delete;
101  void operator=(const vtkOMFReader&) = delete;
102 
103  struct ReaderImpl;
104  ReaderImpl* Impl;
105 };
106 
107 VTK_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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read Open Mining Format files.
Definition: vtkOMFReader.h:28
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
char * FileName
Definition: vtkOMFReader.h:95
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.
vtkDataArraySelection * GetDataElementArraySelection()
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.
vtkGetFilePathMacro(FileName)
Accessor for name of the OMF file to read.
~vtkOMFReader() override
vtkSetFilePathMacro(FileName)
Accessor for name of the OMF file to read.
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
static vtkOMFReader * New()
Construct a new reader instance.
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:376
@ port
Definition: vtkX3D.h:447
@ name
Definition: vtkX3D.h:219
@ index
Definition: vtkX3D.h:246
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270