ParaView
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 "vtkPVServerManagerRenderingModule.h" //needed for exports
30 #include "vtkSMProxyLink.h"
31 
32 class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMCameraLink : public vtkSMProxyLink
33 {
34 public:
35  static vtkSMCameraLink* New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
44  vtkSetMacro(SynchronizeInteractiveRenders, int);
45  vtkGetMacro(SynchronizeInteractiveRenders, int);
46  vtkBooleanMacro(SynchronizeInteractiveRenders, int);
48 
56  void AddLinkedProxy(vtkSMProxy* proxy, int updateDir);
57 
61  virtual void RemoveLinkedProxy(vtkSMProxy* proxy);
62 
67  virtual void UpdateViews(vtkSMProxy* caller, bool interactive);
68 
76  virtual void LoadState(const vtkSMMessage* msg, vtkSMProxyLocator* locator);
77 
78 protected:
80  ~vtkSMCameraLink();
81 
86  virtual void UpdateVTKObjects(vtkSMProxy* proxy);
87 
93  virtual void PropertyModified(vtkSMProxy* proxy, const char* pname);
94 
100  virtual void UpdateProperty(vtkSMProxy*, const char*) {}
101 
105  virtual void SaveXMLState(const char* linkname, vtkPVXMLElement* parent);
106 
111  void CopyProperties(vtkSMProxy* caller);
112 
113  void StartInteraction(vtkObject* caller);
114  void EndInteraction(vtkObject* caller);
115  void ResetCamera(vtkObject* caller);
116 
118 
122  virtual void UpdateState();
123 
124 private:
125  class vtkInternals;
126  vtkInternals* Internals;
127  friend class vtkInternals;
128 
129  vtkSMCameraLink(const vtkSMCameraLink&) VTK_DELETE_FUNCTION;
130  void operator=(const vtkSMCameraLink&) VTK_DELETE_FUNCTION;
131 };
132 
133 #endif
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.