TTK
Loading...
Searching...
No Matches
ttkTriangulationWriter.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include <ttkAlgorithm.h>
13#include <ttkTriangulationWriterModule.h>
14
15#include <fstream>
16
17class TTKTRIANGULATIONWRITER_EXPORT ttkTriangulationWriter
18 : public ttkAlgorithm {
19
20public:
22
24
25 vtkSetStringMacro(Filename);
26 vtkGetStringMacro(Filename);
27
28 vtkSetMacro(UseASCIIFormat, bool);
29 vtkGetMacro(UseASCIIFormat, bool);
30
31 // expose vtkWriter methods (duck-typing)
32 int Write();
33 vtkDataObject *GetInput();
34 void SetInputData(vtkDataObject *input);
35
36protected:
37 // Regular writer management.
39 int FillInputPortInformation(int port, vtkInformation *info) override;
40
41 int OpenFile();
42
43 char *Filename{};
44 std::ofstream Stream{};
45 bool UseASCIIFormat{false};
46
47private:
49 void operator=(const ttkTriangulationWriter &) = delete;
50};
Baseclass of all VTK filters that wrap ttk modules.
void SetInputData(vtkDataSet *)
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
ttkTriangulationWriter - Explicit Triangulation Writer
static ttkTriangulationWriter * New()