vtkSMComparativeViewProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkSMComparativeViewProxy_h
17 #define vtkSMComparativeViewProxy_h
18 
19 #include "vtkRemotingViewsModule.h" //needed for exports
20 #include "vtkSMViewProxy.h"
21 
22 class vtkCollection;
23 
24 class VTKREMOTINGVIEWS_EXPORT vtkSMComparativeViewProxy : public vtkSMViewProxy
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
34  void Update() override;
35 
41  void GetViews(vtkCollection* collection);
42 
46  vtkSMViewProxy* GetRootView();
47 
52  void MarkDirty(vtkSMProxy* modifiedProxy) override;
53 
57  const char* GetRepresentationType(vtkSMSourceProxy* producer, int outputPort) override;
58 
63  {
64  return this->GetRootView() ? this->GetRootView()->GetRenderWindow() : nullptr;
65  }
67  {
68  return this->GetRootView() ? this->GetRootView()->GetInteractor() : nullptr;
69  }
70 
76  void SetupInteractor(vtkRenderWindowInteractor* iren) override;
77 
82  bool MakeRenderWindowInteractor(bool quiet = false) override;
83 
84 protected:
86  ~vtkSMComparativeViewProxy() override;
87 
92  vtkImageData* CaptureWindowInternal(int magX, int magY) override;
93 
94  void InvokeConfigureEvent();
95 
96  void CreateVTKObjects() override;
97 
98 private:
100  void operator=(const vtkSMComparativeViewProxy&) = delete;
101 };
102 
103 #endif
vtkSMViewProxy::New
static vtkSMViewProxy * New()
vtkSMViewProxy::Update
virtual void Update()
Called vtkPVView::Update on the server-side.
vtkSMViewProxy::CreateVTKObjects
void CreateVTKObjects() override
Called at the end of CreateVTKObjects().
vtkSMViewProxy.h
vtkSMViewProxy::GetRepresentationType
virtual const char * GetRepresentationType(vtkSMSourceProxy *producer, int outputPort)
Returns the xml name of the representation proxy to create to show the data produced in this view,...
vtkSMProxy::MarkDirty
virtual void MarkDirty(vtkSMProxy *modifiedProxy)
Dirty means this algorithm will execute during next update.
vtkSMViewProxy::SetupInteractor
virtual void SetupInteractor(vtkRenderWindowInteractor *iren)
A client process need to set the interactor to enable interactivity.
Definition: vtkSMViewProxy.h:174
vtkSMComparativeViewProxy
view for comparative visualization/ film-strips.
Definition: vtkSMComparativeViewProxy.h:24
vtkSMViewProxy::MakeRenderWindowInteractor
virtual bool MakeRenderWindowInteractor(bool quiet=false)
Creates a default render window interactor for the vtkRenderWindow and sets it up on the local proces...
vtkSMProxy
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
vtkSMViewProxy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkCollection
vtkSMSourceProxy
proxy for a VTK source on a server
Definition: vtkSMSourceProxy.h:37
vtkSMViewProxy::CaptureWindowInternal
virtual vtkImageData * CaptureWindowInternal(int magnificationX, int magnificationY)
Capture an image from the view's render window.
vtkImageData
vtkIndent
vtkRenderWindowInteractor
vtkSMViewProxy
Superclass for all view proxies.
Definition: vtkSMViewProxy.h:42
vtkSMComparativeViewProxy::GetRenderWindow
vtkRenderWindow * GetRenderWindow() override
Returns the render-window used by the root view, if any.
Definition: vtkSMComparativeViewProxy.h:62
vtkRenderWindow
vtkSMComparativeViewProxy::GetInteractor
vtkRenderWindowInteractor * GetInteractor() override
Returns the interactor.
Definition: vtkSMComparativeViewProxy.h:66