TTK
Loading...
Searching...
No Matches
ttkOFFWriter.h
Go to the documentation of this file.
1
8
9#pragma once
10
11#include <vtkDataSetWriter.h>
12
13#include <Debug.h>
14#include <ttkOFFWriterModule.h>
15
16#include <fstream>
17
18class TTKOFFWRITER_EXPORT ttkOFFWriter : public vtkDataSetWriter,
19 protected ttk::Debug {
20
21public:
22 vtkTypeMacro(ttkOFFWriter, vtkDataSetWriter);
23
24 static ttkOFFWriter *New();
25
26 void PrintSelf(std::ostream &os, vtkIndent indent) override;
27
28 // Description:
29 // Specify file name of the .off file.
30 vtkSetStringMacro(Filename);
31 vtkGetStringMacro(Filename);
32
33protected:
35 ~ttkOFFWriter() override;
36
37 int OpenFile();
38 void WriteData() override;
39
40 char *Filename{};
41 std::ofstream Stream{};
42
43private:
44 ttkOFFWriter(const ttkOFFWriter &) = delete;
45 void operator=(const ttkOFFWriter &) = delete;
46};
ttkOFFWriter - Object File Format Writer
Definition: ttkOFFWriter.h:19
~ttkOFFWriter() override
static ttkOFFWriter * New()
Minimalist debugging class.
Definition: Debug.h:88