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 
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
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...
void CreateVTKObjects() override
Called at the end of CreateVTKObjects().
vtkRenderWindowInteractor * GetInteractor() override
Returns the interactor.
#define VTKREMOTINGVIEWS_EXPORT
Superclass for all view proxies.
static vtkSMViewProxy * New()
virtual vtkImageData * CaptureWindowInternal(int magnificationX, int magnificationY)
Capture an image from the view's render window.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void MarkDirty(vtkSMProxy *modifiedProxy)
Dirty means this algorithm will execute during next update.
vtkRenderWindow * GetRenderWindow() override
Returns the render-window used by the root view, if any.
view for comparative visualization/ film-strips.
proxy for a VTK source on a server
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
virtual void SetupInteractor(vtkRenderWindowInteractor *iren)
A client process need to set the interactor to enable interactivity.
virtual bool MakeRenderWindowInteractor(bool quiet=false)
Creates a default render window interactor for the vtkRenderWindow and sets it up on the local proces...
virtual void Update()
Called vtkPVView::Update on the server-side.