vtkSMCameraConfigurationReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkSMCameraConfigurationReader_h
20 #define vtkSMCameraConfigurationReader_h
21 
22 #include "vtkRemotingMiscModule.h" //needed for exports
24 
25 class vtkSMProxy;
26 class vtkPVXMLElement;
27 
29 {
30 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
38  void SetRenderViewProxy(vtkSMProxy* rvProxy);
39 
41 
46  int ReadConfiguration(const char* filename) override;
47  int ReadConfiguration(vtkPVXMLElement* x) override;
48  // unhide
49  int ReadConfiguration() override { return this->Superclass::ReadConfiguration(); }
51 
52 protected:
55 
56  // Protect the superclass's SetProxy, clients are forced to use
57  // SetRenderViewProxy
58  void SetProxy(vtkSMProxy*) override { vtkErrorMacro("Use SetRenderViewProxy."); }
59 
60 private:
62  void operator=(const vtkSMCameraConfigurationReader&) = delete;
63 };
64 
65 #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:140
This is used by vtkPVXMLParser to represent an XML document starting at the root element.