VTK  9.3.20240424
vtkPDFExporter.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
16#ifndef vtkPDFExporter_h
17#define vtkPDFExporter_h
18
19#include "vtkExporter.h"
20#include "vtkIOExportPDFModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkContextActor;
24class vtkRenderer;
25
26class VTKIOEXPORTPDF_EXPORT vtkPDFExporter : public vtkExporter
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34 vtkSetStringMacro(Title);
35 vtkGetStringMacro(Title);
43protected:
45 ~vtkPDFExporter() override;
46
47 void WriteData() override;
48
49 void WritePDF();
53
54 char* Title;
55 char* FileName;
56
57private:
58 vtkPDFExporter(const vtkPDFExporter&) = delete;
59 void operator=(const vtkPDFExporter&) = delete;
60
61 struct Details;
62 Details* Impl;
63};
64
65VTK_ABI_NAMESPACE_END
66#endif // vtkPDFExporter_h
provides a vtkProp derived object.
abstract class to write a scene to a file
Definition vtkExporter.h:37
a simple class to control print indentation
Definition vtkIndent.h:108
Exports vtkContext2D scenes to PDF.
void RenderContextActors()
vtkSetFilePathMacro(FileName)
The name of the exported file.
static vtkPDFExporter * New()
~vtkPDFExporter() override
void PrepareDocument()
vtkGetFilePathMacro(FileName)
The name of the exported file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void WriteData() override
void RenderContextActor(vtkContextActor *actor, vtkRenderer *renderer)
abstract specification for renderers