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