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 
19 #include "vtkDataObjectAlgorithm.h"
20 #include "vtkIOOMFModule.h" // For export macro
21 
23 class vtkStringArray;
24 
38 class VTKIOOMF_EXPORT vtkOMFReader : public vtkDataObjectAlgorithm
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  static vtkOMFReader* New();
48 
50 
53  vtkSetFilePathMacro(FileName);
54  vtkGetFilePathMacro(FileName);
56 
58 
63  bool GetDataElementArrayStatus(const char* name);
64  void SetDataElementArrayStatus(const char* name, int status);
65  int GetNumberOfDataElementArrays();
66  const char* GetDataElementArrayName(int index);
67  vtkDataArraySelection* GetDataElementArraySelection();
69 
73  vtkMTimeType GetMTime() override;
74 
76 
79  vtkSetMacro(WriteOutTextures, bool);
80  vtkGetMacro(WriteOutTextures, bool);
82 
84 
89  vtkSetMacro(ColumnMajorOrdering, bool);
90  vtkGetMacro(ColumnMajorOrdering, bool);
92 
93 protected:
94  vtkOMFReader();
95  ~vtkOMFReader() override;
96 
97  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
98  vtkInformationVector* outputVector) override;
99  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
100  vtkInformationVector* outputVector) override;
101  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
102  vtkInformationVector* outputVector) override;
103 
105 
106  char* FileName;
107  bool WriteOutTextures = true;
108  bool ColumnMajorOrdering = false;
109 
110 private:
111  vtkOMFReader(const vtkOMFReader&) = delete;
112  void operator=(const vtkOMFReader&) = delete;
113 
114  struct ReaderImpl;
115  ReaderImpl* Impl;
116 };
117 
118 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
static vtkDataObjectAlgorithm * New()
a vtkAbstractArray subclass for strings
Read Open Mining Format files.
Definition: vtkOMFReader.h:38
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
Store on/off settings for data arrays, etc.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
char * FileName
Definition: vtkOMFReader.h:106
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.