vtkSMExporterProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMExporterProxy.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
23 #ifndef vtkSMExporterProxy_h
24 #define vtkSMExporterProxy_h
25 
26 #include "vtkRemotingExportModule.h" //needed for exports
27 #include "vtkSMProxy.h"
28 
29 #include <string> // For storing file extensions
30 #include <vector> // For storing file extensions
31 
32 class vtkSMViewProxy;
33 
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  void SetView(vtkSMViewProxy* view);
45  vtkGetObjectMacro(View, vtkSMViewProxy);
47 
51  virtual void Write() = 0;
52 
57  virtual bool CanExport(vtkSMProxy*) = 0;
58 
60 
63  const std::vector<std::string>& GetFileExtensions() const { return this->FileExtensions; };
65 
66 protected:
68  ~vtkSMExporterProxy() override;
73 
75  std::vector<std::string> FileExtensions;
76 
77 private:
78  vtkSMExporterProxy(const vtkSMExporterProxy&) = delete;
79  void operator=(const vtkSMExporterProxy&) = delete;
80 };
81 
82 #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:152
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.