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
=========================================================================*/
47
48
#ifndef vtkSVGExporter_h
49
#define vtkSVGExporter_h
50
51
#include "
vtkExporter.h
"
52
#include "vtkIOExportModule.h"
// For export macro
53
54
class
vtkContextActor
;
55
class
vtkRenderer
;
56
class
vtkSVGContextDevice2D
;
57
class
vtkXMLDataElement
;
58
59
class
VTKIOEXPORT_EXPORT
vtkSVGExporter
:
public
vtkExporter
60
{
61
public
:
62
static
vtkSVGExporter
*
New
();
63
vtkTypeMacro(
vtkSVGExporter
,
vtkExporter
);
64
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
65
67
vtkSetStringMacro(
Title
);
68
vtkGetStringMacro(
Title
);
70
72
vtkSetStringMacro(
Description
);
73
vtkGetStringMacro(
Description
);
75
77
vtkSetFilePathMacro
(
FileName
);
78
vtkGetFilePathMacro
(
FileName
);
80
96
vtkSetMacro(
TextAsPath
,
bool
);
97
vtkGetMacro(
TextAsPath
,
bool
);
98
vtkBooleanMacro(
TextAsPath
,
bool
);
100
106
vtkSetMacro(
DrawBackground
,
bool
);
107
vtkGetMacro(
DrawBackground
,
bool
);
108
vtkBooleanMacro(
DrawBackground
,
bool
);
110
126
vtkSetMacro(
SubdivisionThreshold
,
float
);
127
vtkGetMacro(
SubdivisionThreshold
,
float
);
129
130
protected
:
131
vtkSVGExporter
();
132
~vtkSVGExporter
()
override
;
133
134
void
WriteData
()
override
;
135
136
void
WriteSVG
();
137
void
PrepareDocument
();
138
void
RenderContextActors
();
139
void
RenderBackground
(
vtkRenderer
* ren);
140
void
RenderContextActor
(
vtkContextActor
* actor,
vtkRenderer
* renderer);
141
142
char
*
Title
;
143
char
*
Description
;
144
char
*
FileName
;
145
146
vtkSVGContextDevice2D
*
Device
;
147
vtkXMLDataElement
*
RootNode
;
148
vtkXMLDataElement
*
PageNode
;
149
vtkXMLDataElement
*
DefinitionNode
;
150
151
float
SubdivisionThreshold
;
152
bool
DrawBackground
;
153
bool
TextAsPath
;
154
155
private
:
156
vtkSVGExporter
(
const
vtkSVGExporter
&) =
delete
;
157
void
operator=(
const
vtkSVGExporter
&) =
delete
;
158
};
159
160
#endif
// vtkSVGExporter_h
vtkContextActor
provides a vtkProp derived object.
Definition
vtkContextActor.h:41
vtkExporter::vtkExporter
vtkExporter()
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkRenderer
abstract specification for renderers
Definition
vtkRenderer.h:73
vtkSVGContextDevice2D
vtkContextDevice2D implementation for use with vtkSVGExporter.
Definition
vtkSVGContextDevice2D.h:57
vtkSVGExporter::TextAsPath
bool TextAsPath
Definition
vtkSVGExporter.h:153
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:144
vtkSVGExporter::RootNode
vtkXMLDataElement * RootNode
Definition
vtkSVGExporter.h:147
vtkSVGExporter::WriteSVG
void WriteSVG()
vtkSVGExporter::vtkSVGExporter
vtkSVGExporter()
vtkSVGExporter::DefinitionNode
vtkXMLDataElement * DefinitionNode
Definition
vtkSVGExporter.h:149
vtkSVGExporter::New
static vtkSVGExporter * New()
vtkSVGExporter::SubdivisionThreshold
float SubdivisionThreshold
Definition
vtkSVGExporter.h:151
vtkSVGExporter::PrepareDocument
void PrepareDocument()
vtkSVGExporter::Title
char * Title
Definition
vtkSVGExporter.h:142
vtkSVGExporter::Device
vtkSVGContextDevice2D * Device
Definition
vtkSVGExporter.h:146
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:152
vtkSVGExporter::PageNode
vtkXMLDataElement * PageNode
Definition
vtkSVGExporter.h:148
vtkSVGExporter::Description
char * Description
Definition
vtkSVGExporter.h:143
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