VTK
9.1.0
IO
Export
vtkSVGExporter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSVGExporter.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
64
#ifndef vtkSVGExporter_h
65
#define vtkSVGExporter_h
66
67
#include "
vtkExporter.h
"
68
#include "vtkIOExportModule.h"
// For export macro
69
70
class
vtkContextActor
;
71
class
vtkRenderer
;
72
class
vtkSVGContextDevice2D
;
73
class
vtkXMLDataElement
;
74
75
class
VTKIOEXPORT_EXPORT
vtkSVGExporter
:
public
vtkExporter
76
{
77
public
:
78
static
vtkSVGExporter
*
New
();
79
vtkTypeMacro(
vtkSVGExporter
,
vtkExporter
);
80
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
81
83
vtkSetStringMacro(Title);
84
vtkGetStringMacro(Title);
88
vtkSetStringMacro(Description);
89
vtkGetStringMacro(Description);
93
vtkSetFilePathMacro
(FileName);
94
vtkGetFilePathMacro
(FileName);
112
vtkSetMacro(TextAsPath,
bool
);
113
vtkGetMacro(TextAsPath,
bool
);
114
vtkBooleanMacro(TextAsPath,
bool
);
122
vtkSetMacro(DrawBackground,
bool
);
123
vtkGetMacro(DrawBackground,
bool
);
124
vtkBooleanMacro(DrawBackground,
bool
);
142
vtkSetMacro(SubdivisionThreshold,
float
);
143
vtkGetMacro(SubdivisionThreshold,
float
);
146
protected
:
147
vtkSVGExporter
();
148
~vtkSVGExporter
()
override
;
149
150
void
WriteData
()
override
;
151
152
void
WriteSVG
();
153
void
PrepareDocument
();
154
void
RenderContextActors
();
155
void
RenderBackground
(
vtkRenderer
* ren);
156
void
RenderContextActor
(
vtkContextActor
* actor,
vtkRenderer
* renderer);
157
158
char
*
Title
;
159
char
*
Description
;
160
char
*
FileName
;
161
162
vtkSVGContextDevice2D
*
Device
;
163
vtkXMLDataElement
*
RootNode
;
164
vtkXMLDataElement
*
PageNode
;
165
vtkXMLDataElement
*
DefinitionNode
;
166
167
float
SubdivisionThreshold
;
168
bool
DrawBackground
;
169
bool
TextAsPath
;
170
171
private
:
172
vtkSVGExporter
(
const
vtkSVGExporter
&) =
delete
;
173
void
operator=(
const
vtkSVGExporter
&) =
delete
;
174
};
175
176
#endif // vtkSVGExporter_h
vtkSVGExporter::RenderContextActors
void RenderContextActors()
vtkSVGExporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSVGExporter::WriteData
void WriteData() override
vtkSVGExporter
Exports vtkContext2D scenes to SVG.
Definition:
vtkSVGExporter.h:76
vtkSVGExporter::RenderContextActor
void RenderContextActor(vtkContextActor *actor, vtkRenderer *renderer)
vtkSVGContextDevice2D
vtkContextDevice2D implementation for use with vtkSVGExporter.
Definition:
vtkSVGContextDevice2D.h:57
vtkSVGExporter::DefinitionNode
vtkXMLDataElement * DefinitionNode
Definition:
vtkSVGExporter.h:165
vtkSVGExporter::vtkSVGExporter
vtkSVGExporter()
vtkSVGExporter::DrawBackground
bool DrawBackground
Definition:
vtkSVGExporter.h:168
vtkSVGExporter::Title
char * Title
Definition:
vtkSVGExporter.h:158
vtkSVGExporter::RenderBackground
void RenderBackground(vtkRenderer *ren)
vtkContextActor
provides a vtkProp derived object.
Definition:
vtkContextActor.h:77
vtkSVGExporter::TextAsPath
bool TextAsPath
Definition:
vtkSVGExporter.h:169
vtkSVGExporter::vtkSetFilePathMacro
vtkSetFilePathMacro(FileName)
The name of the exported file.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition:
vtkXMLDataElement.h:37
vtkSVGExporter::Device
vtkSVGContextDevice2D * Device
Definition:
vtkSVGExporter.h:162
vtkSVGExporter::PrepareDocument
void PrepareDocument()
vtkSVGExporter::RootNode
vtkXMLDataElement * RootNode
Definition:
vtkSVGExporter.h:163
vtkSVGExporter::New
static vtkSVGExporter * New()
vtkExporter
abstract class to write a scene to a file
Definition:
vtkExporter.h:48
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:182
vtkSVGExporter::Description
char * Description
Definition:
vtkSVGExporter.h:159
vtkExporter.h
vtkSVGExporter::SubdivisionThreshold
float SubdivisionThreshold
Definition:
vtkSVGExporter.h:167
vtkSVGExporter::PageNode
vtkXMLDataElement * PageNode
Definition:
vtkSVGExporter.h:164
vtkSVGExporter::~vtkSVGExporter
~vtkSVGExporter() override
vtkSVGExporter::vtkGetFilePathMacro
vtkGetFilePathMacro(FileName)
The name of the exported file.
vtkSVGExporter::FileName
char * FileName
Definition:
vtkSVGExporter.h:160
vtkSVGExporter::WriteSVG
void WriteSVG()
Generated on Fri Nov 5 2021 00:11:12 for VTK by
1.8.20