VTK
9.2.6
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
=========================================================================*/
44
45
#ifndef vtkSVGExporter_h
46
#define vtkSVGExporter_h
47
48
#include "
vtkExporter.h
"
49
#include "vtkIOExportModule.h"
// For export macro
50
51
class
vtkContextActor
;
52
class
vtkRenderer
;
53
class
vtkSVGContextDevice2D
;
54
class
vtkXMLDataElement
;
55
56
class
VTKIOEXPORT_EXPORT
vtkSVGExporter
:
public
vtkExporter
57
{
58
public
:
59
static
vtkSVGExporter
*
New
();
60
vtkTypeMacro(
vtkSVGExporter
,
vtkExporter
);
61
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
62
64
vtkSetStringMacro(
Title
);
65
vtkGetStringMacro(
Title
);
67
69
vtkSetStringMacro(
Description
);
70
vtkGetStringMacro(
Description
);
72
74
vtkSetFilePathMacro
(
FileName
);
75
vtkGetFilePathMacro
(
FileName
);
77
93
vtkSetMacro(
TextAsPath
,
bool
);
94
vtkGetMacro(
TextAsPath
,
bool
);
95
vtkBooleanMacro(
TextAsPath
,
bool
);
97
103
vtkSetMacro(
DrawBackground
,
bool
);
104
vtkGetMacro(
DrawBackground
,
bool
);
105
vtkBooleanMacro(
DrawBackground
,
bool
);
107
123
vtkSetMacro(
SubdivisionThreshold
,
float
);
124
vtkGetMacro(
SubdivisionThreshold
,
float
);
126
127
protected
:
128
vtkSVGExporter
();
129
~vtkSVGExporter
()
override
;
130
131
void
WriteData
()
override
;
132
133
void
WriteSVG
();
134
void
PrepareDocument
();
135
void
RenderContextActors
();
136
void
RenderBackground
(
vtkRenderer
* ren);
137
void
RenderContextActor
(
vtkContextActor
* actor,
vtkRenderer
* renderer);
138
139
char
*
Title
;
140
char
*
Description
;
141
char
*
FileName
;
142
143
vtkSVGContextDevice2D
*
Device
;
144
vtkXMLDataElement
*
RootNode
;
145
vtkXMLDataElement
*
PageNode
;
146
vtkXMLDataElement
*
DefinitionNode
;
147
148
float
SubdivisionThreshold
;
149
bool
DrawBackground
;
150
bool
TextAsPath
;
151
152
private
:
153
vtkSVGExporter
(
const
vtkSVGExporter
&) =
delete
;
154
void
operator=(
const
vtkSVGExporter
&) =
delete
;
155
};
156
157
#endif
// vtkSVGExporter_h
vtkContextActor
provides a vtkProp derived object.
Definition
vtkContextActor.h:38
vtkExporter::vtkExporter
vtkExporter()
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:34
vtkRenderer
abstract specification for renderers
Definition
vtkRenderer.h:67
vtkSVGContextDevice2D
vtkContextDevice2D implementation for use with vtkSVGExporter.
Definition
vtkSVGContextDevice2D.h:57
vtkSVGExporter::TextAsPath
bool TextAsPath
Definition
vtkSVGExporter.h:150
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:141
vtkSVGExporter::RootNode
vtkXMLDataElement * RootNode
Definition
vtkSVGExporter.h:144
vtkSVGExporter::WriteSVG
void WriteSVG()
vtkSVGExporter::vtkSVGExporter
vtkSVGExporter()
vtkSVGExporter::DefinitionNode
vtkXMLDataElement * DefinitionNode
Definition
vtkSVGExporter.h:146
vtkSVGExporter::New
static vtkSVGExporter * New()
vtkSVGExporter::SubdivisionThreshold
float SubdivisionThreshold
Definition
vtkSVGExporter.h:148
vtkSVGExporter::PrepareDocument
void PrepareDocument()
vtkSVGExporter::Title
char * Title
Definition
vtkSVGExporter.h:139
vtkSVGExporter::Device
vtkSVGContextDevice2D * Device
Definition
vtkSVGExporter.h:143
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:149
vtkSVGExporter::PageNode
vtkXMLDataElement * PageNode
Definition
vtkSVGExporter.h:145
vtkSVGExporter::Description
char * Description
Definition
vtkSVGExporter.h:140
vtkSVGExporter::RenderContextActor
void RenderContextActor(vtkContextActor *actor, vtkRenderer *renderer)
vtkSVGExporter::~vtkSVGExporter
~vtkSVGExporter() override
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition
vtkXMLDataElement.h:37
vtkExporter.h
Generated on Sun Mar 2 2025 00:00:00 for VTK by
1.13.2