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