VTK
9.5.20251126
IO
Export
vtkSVGExporter.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
35
36
#ifndef vtkSVGExporter_h
37
#define vtkSVGExporter_h
38
39
#include "
vtkExporter.h
"
40
#include "vtkIOExportModule.h"
// For export macro
41
42
VTK_ABI_NAMESPACE_BEGIN
43
class
vtkContextActor
;
44
class
vtkRenderer
;
45
class
vtkSVGContextDevice2D
;
46
class
vtkXMLDataElement
;
47
48
class
VTKIOEXPORT_EXPORT
vtkSVGExporter
:
public
vtkExporter
49
{
50
public
:
51
static
vtkSVGExporter
*
New
();
52
vtkTypeMacro(
vtkSVGExporter
,
vtkExporter
);
53
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
54
56
vtkSetStringMacro(
Title
);
57
vtkGetStringMacro(
Title
);
59
61
vtkSetStringMacro(
Description
);
62
vtkGetStringMacro(
Description
);
64
66
vtkSetFilePathMacro
(
FileName
);
67
vtkGetFilePathMacro
(
FileName
);
69
85
vtkSetMacro(
TextAsPath
,
bool
);
86
vtkGetMacro(
TextAsPath
,
bool
);
87
vtkBooleanMacro(
TextAsPath
,
bool
);
89
95
vtkSetMacro(
DrawBackground
,
bool
);
96
vtkGetMacro(
DrawBackground
,
bool
);
97
vtkBooleanMacro(
DrawBackground
,
bool
);
99
115
vtkSetMacro(
SubdivisionThreshold
,
float
);
116
vtkGetMacro(
SubdivisionThreshold
,
float
);
118
119
protected
:
120
vtkSVGExporter
();
121
~vtkSVGExporter
()
override
;
122
123
void
WriteData
()
override
;
124
125
void
WriteSVG
();
126
void
PrepareDocument
();
127
void
RenderContextActors
();
128
void
RenderBackground
(
vtkRenderer
* ren);
129
void
RenderContextActor
(
vtkContextActor
* actor,
vtkRenderer
* renderer);
130
131
char
*
Title
;
132
char
*
Description
;
133
char
*
FileName
;
134
135
vtkSVGContextDevice2D
*
Device
;
136
vtkXMLDataElement
*
RootNode
;
137
vtkXMLDataElement
*
PageNode
;
138
vtkXMLDataElement
*
DefinitionNode
;
139
140
float
SubdivisionThreshold
;
141
bool
DrawBackground
;
142
bool
TextAsPath
;
143
144
private
:
145
vtkSVGExporter
(
const
vtkSVGExporter
&) =
delete
;
146
void
operator=(
const
vtkSVGExporter
&) =
delete
;
147
};
148
149
VTK_ABI_NAMESPACE_END
150
#endif
// vtkSVGExporter_h
vtkContextActor
provides a vtkProp derived object.
Definition
vtkContextActor.h:73
vtkExporter::vtkExporter
vtkExporter()
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkRenderer
abstract specification for renderers
Definition
vtkRenderer.h:173
vtkSVGContextDevice2D
vtkContextDevice2D implementation for use with vtkSVGExporter.
Definition
vtkSVGContextDevice2D.h:46
vtkSVGExporter::TextAsPath
bool TextAsPath
Definition
vtkSVGExporter.h:142
vtkSVGExporter::vtkGetFilePathMacro
vtkGetFilePathMacro(FileName)
The name of the exported file.
vtkSVGExporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSVGExporter::FileName
char * FileName
Definition
vtkSVGExporter.h:133
vtkSVGExporter::RootNode
vtkXMLDataElement * RootNode
Definition
vtkSVGExporter.h:136
vtkSVGExporter::WriteSVG
void WriteSVG()
vtkSVGExporter::vtkSVGExporter
vtkSVGExporter()
vtkSVGExporter::DefinitionNode
vtkXMLDataElement * DefinitionNode
Definition
vtkSVGExporter.h:138
vtkSVGExporter::New
static vtkSVGExporter * New()
vtkSVGExporter::SubdivisionThreshold
float SubdivisionThreshold
Definition
vtkSVGExporter.h:140
vtkSVGExporter::PrepareDocument
void PrepareDocument()
vtkSVGExporter::Title
char * Title
Definition
vtkSVGExporter.h:131
vtkSVGExporter::Device
vtkSVGContextDevice2D * Device
Definition
vtkSVGExporter.h:135
vtkSVGExporter::RenderContextActors
void RenderContextActors()
vtkSVGExporter::RenderBackground
void RenderBackground(vtkRenderer *ren)
vtkSVGExporter::vtkSetFilePathMacro
vtkSetFilePathMacro(FileName)
The name of the exported file.
vtkSVGExporter::WriteData
void WriteData() override
vtkSVGExporter::DrawBackground
bool DrawBackground
Definition
vtkSVGExporter.h:141
vtkSVGExporter::PageNode
vtkXMLDataElement * PageNode
Definition
vtkSVGExporter.h:137
vtkSVGExporter::Description
char * Description
Definition
vtkSVGExporter.h:132
vtkSVGExporter::RenderContextActor
void RenderContextActor(vtkContextActor *actor, vtkRenderer *renderer)
vtkSVGExporter::~vtkSVGExporter
~vtkSVGExporter() override
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition
vtkXMLDataElement.h:26
vtkExporter.h
Generated on Wed Nov 26 2025 07:47:52 for VTK by
1.13.2