vtkSMCameraLink.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkSMCameraLink_h
15 #define vtkSMCameraLink_h
16 
17 #include "vtkRemotingViewsModule.h" //needed for exports
18 #include "vtkSMProxyLink.h"
19 
20 #include <set>
21 
23 {
24 public:
25  static vtkSMCameraLink* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
34  vtkSetMacro(SynchronizeInteractiveRenders, int);
35  vtkGetMacro(SynchronizeInteractiveRenders, int);
36  vtkBooleanMacro(SynchronizeInteractiveRenders, int);
38 
44  static std::set<std::pair<std::string, std::string>> CameraProperties();
45 
53  void AddLinkedProxy(vtkSMProxy* proxy, int updateDir) override;
54 
58  void RemoveLinkedProxy(vtkSMProxy* proxy) override;
59 
64  virtual void UpdateViews(vtkSMProxy* caller, bool interactive);
65 
73  void LoadState(const vtkSMMessage* msg, vtkSMProxyLocator* locator) override;
74 
75 protected:
77  ~vtkSMCameraLink() override;
78 
83  void UpdateVTKObjects(vtkSMProxy* proxy) override;
84 
90  void PropertyModified(vtkSMProxy* proxy, const char* pname) override;
91 
97  void UpdateProperty(vtkSMProxy*, const char*) override {}
98 
102  std::string GetXMLTagName() override { return "CameraLink"; }
103 
108  void CopyProperties(vtkSMProxy* caller);
109 
110  void ResetCamera(vtkObject* caller);
111 
113 
117  void UpdateState() override;
118 
119 private:
120  class vtkInternals;
121  vtkInternals* Internals;
122  friend class vtkInternals;
123 
124  vtkSMCameraLink(const vtkSMCameraLink&) = delete;
125  void operator=(const vtkSMCameraLink&) = delete;
126 };
127 
128 #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:140
is used to locate proxies referred to in state xmls while loading state files.