TTK
Loading...
Searching...
No Matches
core
vtk
ttkTriangulationWriter
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
17
class
TTKTRIANGULATIONWRITER_EXPORT
ttkTriangulationWriter
18
:
public
ttkAlgorithm
{
19
20
public
:
21
vtkTypeMacro(
ttkTriangulationWriter
,
ttkAlgorithm
);
22
23
static
ttkTriangulationWriter
*
New
();
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
36
protected
:
37
// Regular writer management.
38
ttkTriangulationWriter
();
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
47
private
:
48
ttkTriangulationWriter
(
const
ttkTriangulationWriter
&) =
delete
;
49
void
operator=(
const
ttkTriangulationWriter
&) =
delete
;
50
};
ttkAlgorithm
Baseclass of all VTK filters that wrap ttk modules.
Definition
ttkAlgorithm.h:34
ttkAlgorithm::SetInputData
void SetInputData(vtkDataSet *)
Definition
ttkAlgorithm.cpp:435
ttkAlgorithm::FillInputPortInformation
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition
ttkAlgorithm.h:437
ttkTriangulationWriter
ttkTriangulationWriter - Explicit Triangulation Writer
Definition
ttkTriangulationWriter.h:18
ttkTriangulationWriter::New
static ttkTriangulationWriter * New()
ttkAlgorithm.h
Generated on Thu Sep 26 2024 06:50:19 for TTK by
1.9.8