TTK
Loading...
Searching...
No Matches
core
vtk
ttkOBJWriter
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
19
class
TTKOBJWRITER_EXPORT
ttkOBJWriter
:
public
vtkDataSetWriter,
20
protected
ttk::Debug
{
21
22
public
:
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
34
protected
:
35
ttkOBJWriter
();
36
~ttkOBJWriter
()
override
;
37
38
int
OpenFile();
39
void
WriteData()
override
;
40
41
char
*Filename{};
42
std::ofstream Stream{};
43
44
private
:
45
ttkOBJWriter
(
const
ttkOBJWriter
&) =
delete
;
46
void
operator=(
const
ttkOBJWriter
&) =
delete
;
47
};
Debug.h
ttkOBJWriter
ttkOBJWriter - Object File Format Writer
Definition
ttkOBJWriter.h:20
ttkOBJWriter::New
static ttkOBJWriter * New()
ttkOBJWriter::~ttkOBJWriter
~ttkOBJWriter() override
ttk::Debug
Minimalist debugging class.
Definition
Debug.h:88
Generated on Thu Sep 26 2024 06:50:19 for TTK by
1.9.8