vtkSMCameraLink.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMCameraLink.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 =========================================================================*/
26 #ifndef vtkSMCameraLink_h
27 #define vtkSMCameraLink_h
28 
29 #include "vtkRemotingViewsModule.h" //needed for exports
30 #include "vtkSMProxyLink.h"
31 
33 {
34 public:
35  static vtkSMCameraLink* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
44  vtkSetMacro(SynchronizeInteractiveRenders, int);
45  vtkGetMacro(SynchronizeInteractiveRenders, int);
46  vtkBooleanMacro(SynchronizeInteractiveRenders, int);
48 
56  void AddLinkedProxy(vtkSMProxy* proxy, int updateDir) override;
57 
61  void RemoveLinkedProxy(vtkSMProxy* proxy) override;
62 
67  virtual void UpdateViews(vtkSMProxy* caller, bool interactive);
68 
76  void LoadState(const vtkSMMessage* msg, vtkSMProxyLocator* locator) override;
77 
78 protected:
80  ~vtkSMCameraLink() override;
81 
86  void UpdateVTKObjects(vtkSMProxy* proxy) override;
87 
93  void PropertyModified(vtkSMProxy* proxy, const char* pname) override;
94 
100  void UpdateProperty(vtkSMProxy*, const char*) override {}
101 
105  void SaveXMLState(const char* linkname, vtkPVXMLElement* parent) override;
106 
111  void CopyProperties(vtkSMProxy* caller);
112 
113  void ResetCamera(vtkObject* caller);
114 
116 
120  void UpdateState() override;
121 
122 private:
123  class vtkInternals;
124  vtkInternals* Internals;
125  friend class vtkInternals;
126 
127  vtkSMCameraLink(const vtkSMCameraLink&) = delete;
128  void operator=(const vtkSMCameraLink&) = delete;
129 };
130 
131 #endif
#define VTKREMOTINGVIEWS_EXPORT
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
is used to locate proxies referred to in state xmls while loading state files.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.