VTK  9.1.0
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
31class vtkContextActor;
32class vtkRenderer;
33
34class VTKIOEXPORTPDF_EXPORT vtkPDFExporter : public vtkExporter
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42 vtkSetStringMacro(Title);
43 vtkGetStringMacro(Title);
51protected:
53 ~vtkPDFExporter() override;
54
55 void WriteData() override;
56
57 void WritePDF();
61
62 char* Title;
63 char* FileName;
64
65private:
66 vtkPDFExporter(const vtkPDFExporter&) = delete;
67 void operator=(const vtkPDFExporter&) = delete;
68
69 struct Details;
70 Details* Impl;
71};
72
73#endif // vtkPDFExporter_h
provides a vtkProp derived object.
abstract class to write a scene to a file
Definition: vtkExporter.h:48
a simple class to control print indentation
Definition: vtkIndent.h:113
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
Definition: vtkRenderer.h:182