VTK
9.0.1
IO
ExportPDF
vtkPDFExporter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPDFExporter.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
=========================================================================*/
25
#ifndef vtkPDFExporter_h
26
#define vtkPDFExporter_h
27
28
#include "
vtkExporter.h
"
29
#include "vtkIOExportPDFModule.h"
// For export macro
30
31
class
vtkContextActor
;
32
class
vtkRenderer
;
33
34
class
VTKIOEXPORTPDF_EXPORT
vtkPDFExporter
:
public
vtkExporter
35
{
36
public
:
37
static
vtkPDFExporter
*
New
();
38
vtkTypeMacro(
vtkPDFExporter
,
vtkExporter
);
39
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
40
42
vtkSetStringMacro(Title);
43
vtkGetStringMacro(Title);
47
vtkSetStringMacro(FileName);
48
vtkGetStringMacro(FileName);
51
protected
:
52
vtkPDFExporter
();
53
~
vtkPDFExporter
()
override
;
54
55
void
WriteData
()
override
;
56
57
void
WritePDF();
58
void
PrepareDocument();
59
void
RenderContextActors();
60
void
RenderContextActor(
vtkContextActor
* actor,
vtkRenderer
* renderer);
61
62
char
*
Title
;
63
char
*
FileName
;
64
65
private
:
66
vtkPDFExporter
(
const
vtkPDFExporter
&) =
delete
;
67
void
operator=(
const
vtkPDFExporter
&) =
delete
;
68
69
struct
Details;
70
Details* Impl;
71
};
72
73
#endif // vtkPDFExporter_h
vtkExporter
abstract class to write a scene to a file
Definition:
vtkExporter.h:47
vtkExporter::WriteData
virtual void WriteData()=0
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:67
vtkPDFExporter::FileName
char * FileName
Definition:
vtkPDFExporter.h:63
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkContextActor
provides a vtkProp derived object.
Definition:
vtkContextActor.h:37
vtkExporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExporter.h
vtkPDFExporter::Title
char * Title
Definition:
vtkPDFExporter.h:62
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkPDFExporter
Exports vtkContext2D scenes to PDF.
Definition:
vtkPDFExporter.h:34
Generated on Wed Apr 26 2023 03:13:34 for VTK by
1.8.14