TTK
Loading...
Searching...
No Matches
ttkCinemaProductReader.h
Go to the documentation of this file.
1
66
67#pragma once
68
69// VTK Module
70#include <ttkCinemaProductReaderModule.h>
71
72// VTK includes
73#include <ttkAlgorithm.h>
74
76#include <vtkGenericDataObjectReader.h>
77#include <vtkNew.h>
78#include <vtkPNGReader.h>
79#include <vtkSmartPointer.h>
80#include <vtkTIFFReader.h>
81#include <vtkXMLGenericDataObjectReader.h>
82
83class TTKCINEMAPRODUCTREADER_EXPORT ttkCinemaProductReader
84 : public ttkAlgorithm {
85
86public:
89
90 vtkSetMacro(FilepathColumnName, const std::string &);
91 vtkGetMacro(FilepathColumnName, std::string);
92 vtkSetMacro(AddFieldDataRecursively, bool);
93 vtkGetMacro(AddFieldDataRecursively, bool);
94
95protected:
98
99 vtkSmartPointer<vtkDataObject> readFileLocal(const std::string &pathToFile);
100 int addFieldDataRecursively(vtkDataObject *object, vtkFieldData *fd);
101
102 int FillInputPortInformation(int port, vtkInformation *info) override;
103 int FillOutputPortInformation(int port, vtkInformation *info) override;
104
105 int RequestData(vtkInformation *request,
106 vtkInformationVector **inputVector,
107 vtkInformationVector *outputVector) override;
108
109private:
110 std::string FilepathColumnName{"FILE"};
111 bool AddFieldDataRecursively{true};
112
113 // PNG READER
114 vtkNew<vtkPNGReader> pngReader{};
115
116 // TTK READER
117 vtkNew<ttkTopologicalCompressionReader> topologicalCompressionReader{};
118
119 // TIFF READER
120 vtkNew<vtkTIFFReader> tiffReader{};
121
122 // LOCAL-LEGACY && REMOTE-LEGACY
123 vtkNew<vtkGenericDataObjectReader> genericDataObjectReader{};
124
125 // LOCAL-XML
126 vtkNew<vtkXMLGenericDataObjectReader> xmlGenericDataObjectReader{};
127};
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
int addFieldDataRecursively(vtkDataObject *object, vtkFieldData *fd)
vtkSmartPointer< vtkDataObject > readFileLocal(const std::string &pathToFile)
~ttkCinemaProductReader() override
static ttkCinemaProductReader * New()