VTK  9.2.6
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=========================================================================*/
28#ifndef vtkPDFExporter_h
29#define vtkPDFExporter_h
30
31#include "vtkExporter.h"
32#include "vtkIOExportPDFModule.h" // For export macro
33
34class vtkContextActor;
35class vtkRenderer;
36
37class VTKIOEXPORTPDF_EXPORT vtkPDFExporter : public vtkExporter
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45 vtkSetStringMacro(Title);
46 vtkGetStringMacro(Title);
54protected:
56 ~vtkPDFExporter() override;
57
58 void WriteData() override;
59
60 void WritePDF();
64
65 char* Title;
66 char* FileName;
67
68private:
69 vtkPDFExporter(const vtkPDFExporter&) = delete;
70 void operator=(const vtkPDFExporter&) = delete;
71
72 struct Details;
73 Details* Impl;
74};
75
76#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:40
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:73