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