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 
19 #include "vtkDataObjectAlgorithm.h"
20 #include "vtkIOOMFModule.h" // For export macro
21 
23 class vtkStringArray;
24 
35 class VTKIOOMF_EXPORT vtkOMFReader : public vtkDataObjectAlgorithm
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  static vtkOMFReader* New();
45 
47 
53 
55 
60  bool GetDataElementArrayStatus(const char* name);
61  void SetDataElementArrayStatus(const char* name, int status);
63  const char* GetDataElementArrayName(int index);
66 
70  vtkMTimeType GetMTime() override;
71 
73 
76  vtkSetMacro(WriteOutTextures, bool);
77  vtkGetMacro(WriteOutTextures, bool);
79 
81 
86  vtkSetMacro(ColumnMajorOrdering, bool);
87  vtkGetMacro(ColumnMajorOrdering, bool);
89 
90 protected:
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 
107 private:
108  vtkOMFReader(const vtkOMFReader&) = delete;
109  void operator=(const vtkOMFReader&) = delete;
110 
111  struct ReaderImpl;
112  ReaderImpl* Impl;
113 };
114 
115 #endif
vtkOMFReader::GetMTime
vtkMTimeType GetMTime() override
Overridden to take into account mtimes for vtkDataArraySelection instances.
vtkOMFReader::vtkSetFilePathMacro
vtkSetFilePathMacro(FileName)
Accessor for name of the OMF file to read.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkDataObjectAlgorithm
Superclass for algorithms that produce only data object as output.
Definition: vtkDataObjectAlgorithm.h:63
vtkOMFReader
Read Open Mining Format files.
Definition: vtkOMFReader.h:36
vtkOMFReader::New
static vtkOMFReader * New()
Construct a new reader instance.
vtkOMFReader::RequestInformation
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkOMFReader::~vtkOMFReader
~vtkOMFReader() override
vtkOMFReader::GetDataElementArrayName
const char * GetDataElementArrayName(int index)
Data element selection to determine which data elements in the OMF file should be loaded.
vtkDataArraySelection
Store on/off settings for data arrays for a vtkSource.
Definition: vtkDataArraySelection.h:35
vtkOMFReader::GetDataElementArraySelection
vtkDataArraySelection * GetDataElementArraySelection()
Data element selection to determine which data elements in the OMF file should be loaded.
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkOMFReader::GetDataElementArrayStatus
bool GetDataElementArrayStatus(const char *name)
Data element selection to determine which data elements in the OMF file should be loaded.
vtkOMFReader::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkOMFReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkOMFReader::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkOMFReader::GetNumberOfDataElementArrays
int GetNumberOfDataElementArrays()
Data element selection to determine which data elements in the OMF file should be loaded.
vtkOMFReader::SetDataElementArrayStatus
void SetDataElementArrayStatus(const char *name, int status)
Data element selection to determine which data elements in the OMF file should be loaded.
vtkOMFReader::FileName
char * FileName
Definition: vtkOMFReader.h:103
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:146
vtkOMFReader::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkDataObjectAlgorithm.h
vtkOMFReader::vtkOMFReader
vtkOMFReader()
vtkX3D::index
@ index
Definition: vtkX3D.h:252
vtkOMFReader::vtkGetFilePathMacro
vtkGetFilePathMacro(FileName)
Accessor for name of the OMF file to read.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287