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 
34 class vtkContextActor;
35 class vtkRenderer;
36 
37 class VTKIOEXPORTPDF_EXPORT vtkPDFExporter : public vtkExporter
38 {
39 public:
40  static vtkPDFExporter* New();
41  vtkTypeMacro(vtkPDFExporter, vtkExporter);
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45  vtkSetStringMacro(Title);
46  vtkGetStringMacro(Title);
50  vtkSetFilePathMacro(FileName);
51  vtkGetFilePathMacro(FileName);
54 protected:
56  ~vtkPDFExporter() override;
57 
58  void WriteData() override;
59 
60  void WritePDF();
61  void PrepareDocument();
62  void RenderContextActors();
63  void RenderContextActor(vtkContextActor* actor, vtkRenderer* renderer);
64 
65  char* Title;
66  char* FileName;
67 
68 private:
69  vtkPDFExporter(const vtkPDFExporter&) = delete;
70  void operator=(const vtkPDFExporter&) = delete;
71 
72  struct Details;
73  Details* Impl;
74 };
75 
76 #endif // vtkPDFExporter_h
abstract class to write a scene to a file
Definition: vtkExporter.h:47
virtual void WriteData()=0
abstract specification for renderers
Definition: vtkRenderer.h:72
a simple class to control print indentation
Definition: vtkIndent.h:39
provides a vtkProp derived object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Exports vtkContext2D scenes to PDF.