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  void SetView(vtkSMViewProxy* view);
33  vtkGetObjectMacro(View, vtkSMViewProxy);
35 
39  virtual void Write() = 0;
40 
45  virtual bool CanExport(vtkSMProxy*) = 0;
46 
48 
51  const std::vector<std::string>& GetFileExtensions() const { return this->FileExtensions; };
53 
54 protected:
56  ~vtkSMExporterProxy() override;
61 
63  std::vector<std::string> FileExtensions;
64 
65 private:
66  vtkSMExporterProxy(const vtkSMExporterProxy&) = delete;
67  void operator=(const vtkSMExporterProxy&) = delete;
68 };
69 
70 #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.