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