vtkSMCameraConfigurationReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSMCameraConfigurationReader.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 =========================================================================*/
30 #ifndef vtkSMCameraConfigurationReader_h
31 #define vtkSMCameraConfigurationReader_h
32 
33 #include "vtkRemotingMiscModule.h" //needed for exports
35 
36 class vtkSMProxy;
37 class vtkPVXMLElement;
38 
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
49  void SetRenderViewProxy(vtkSMProxy* rvProxy);
50 
52 
57  int ReadConfiguration(const char* filename) override;
58  int ReadConfiguration(vtkPVXMLElement* x) override;
59  // unhide
60  int ReadConfiguration() override { return this->Superclass::ReadConfiguration(); }
62 
63 protected:
66 
67  // Protect the superclass's SetProxy, clients are forced to use
68  // SetRenderViewProxy
69  void SetProxy(vtkSMProxy*) override { vtkErrorMacro("Use SetRenderViewProxy."); }
70 
71 private:
73  void operator=(const vtkSMCameraConfigurationReader&) = delete;
74 };
75 
76 #endif
virtual int ReadConfiguration()
Read the configuration from the file.
static vtkSMProxyConfigurationReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
int ReadConfiguration() override
Read the named file, and push the properties into the underying managed render view proxy...
void SetProxy(vtkSMProxy *) override
Set the proxy to write out.
A reader for XML camera configuration.
Base readers of a vtkSMProxy's vtkSMProperty's.
#define VTKREMOTINGMISC_EXPORT
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
This is used by vtkPVXMLParser to represent an XML document starting at the root element.