vtkPVWebExporter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkPVWebExporter_h
12 #define vtkPVWebExporter_h
13 
14 #include "vtkJSONSceneExporter.h"
15 #include "vtkRemotingExportModule.h" // needed for exports
16 
17 class VTKREMOTINGEXPORT_EXPORT vtkPVWebExporter : public vtkJSONSceneExporter
18 {
19 public:
20  static vtkPVWebExporter* New();
21  vtkTypeMacro(vtkPVWebExporter, vtkJSONSceneExporter);
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
25 
28  vtkSetMacro(ParaViewGlanceHTML, std::string);
29  vtkGetMacro(ParaViewGlanceHTML, std::string);
31 
33 
38  vtkGetMacro(ExportToGlance, bool);
39  vtkSetMacro(ExportToGlance, bool);
41 
43 
49  vtkGetMacro(AutomaticGlanceHTML, bool);
50  vtkSetMacro(AutomaticGlanceHTML, bool);
52 
54 
60  vtkGetMacro(DisableNetwork, bool);
61  vtkSetMacro(DisableNetwork, bool);
63 
64 protected:
66  ~vtkPVWebExporter() override;
67 
68  // Decorate method to enable zip bundling
69  void Write() override;
70 
71 private:
72  vtkPVWebExporter(const vtkPVWebExporter&) = delete;
73  void operator=(const vtkPVWebExporter&) = delete;
74 
75  // Exporter properties
76  std::string ParaViewGlanceHTML;
77  bool AutomaticGlanceHTML = true;
78  bool ExportToGlance = false;
79  bool DisableNetwork = true;
80 };
81 
82 #endif
#define VTKREMOTINGEXPORT_EXPORT
vtkPVWebExporter is used to produce vtkjs export in the ParaView application.