ParaView
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 "vtkPVServerManagerDefaultModule.h" //needed for exports
35 
36 class vtkSMProxy;
37 class vtkPVXMLElement;
38 
39 class VTKPVSERVERMANAGERDEFAULT_EXPORT vtkSMCameraConfigurationReader
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
46 
50  void SetRenderViewProxy(vtkSMProxy* rvProxy);
51 
53 
58  virtual int ReadConfiguration(const char* filename);
59  virtual int ReadConfiguration(vtkPVXMLElement* x);
60  // unhide
61  virtual int ReadConfiguration() { return this->Superclass::ReadConfiguration(); }
63 
64 protected:
67 
68  // Protect the superclass's SetProxy, clients are forced to use
69  // SetRenderViewProxy
70  void SetProxy(vtkSMProxy*) { vtkErrorMacro("Use SetRenderViewProxy."); }
71 
72 private:
74  void operator=(const vtkSMCameraConfigurationReader&) VTK_DELETE_FUNCTION;
75 };
76 
77 #endif
virtual int ReadConfiguration()
Read the configuration from the file.
static vtkSMProxyConfigurationReader * New()
virtual int ReadConfiguration()
Read the named file, and push the properties into the underying managed render view proxy...
A reader for XML camera configuration.
Base readers of a vtkSMProxy's vtkSMProperty's.
void PrintSelf(ostream &os, vtkIndent indent)
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.
void SetProxy(vtkSMProxy *)
Set the proxy to write out.