vtkSMExporterProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkSMExporterProxy_h
12 #define vtkSMExporterProxy_h
13 
14 #include "vtkRemotingExportModule.h" //needed for exports
15 #include "vtkSMProxy.h"
16 
17 #include <string> // For storing file extensions
18 #include <vector> // For storing file extensions
19 
20 class vtkSMViewProxy;
21 
23 {
24 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
29 
32  virtual void SetView(vtkSMViewProxy* view);
33  vtkGetObjectMacro(View, vtkSMViewProxy);
35 
39  virtual void Write() = 0;
40 
44  virtual bool CanExport(vtkSMProxy*) = 0;
45 
47 
50  const std::vector<std::string>& GetFileExtensions() const { return this->FileExtensions; };
52 
53 protected:
55  ~vtkSMExporterProxy() override;
60 
62  std::vector<std::string> FileExtensions;
63 
64 private:
65  vtkSMExporterProxy(const vtkSMExporterProxy&) = delete;
66  void operator=(const vtkSMExporterProxy&) = delete;
67 };
68 
69 #endif
#define VTKREMOTINGEXPORT_EXPORT
proxy for view exporters.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual int ReadXMLAttributes(vtkSMSessionProxyManager *pm, vtkPVXMLElement *element)
Read attributes from an XML element.
Superclass for all view proxies.
vtkSMViewProxy * View
std::vector< std::string > FileExtensions
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
void operator=(const vtkSMProxy &)=delete
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
const std::vector< std::string > & GetFileExtensions() const
Returns the suggested file extensions for this exporter.