vtkSMComparativeViewProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMComparativeViewProxy.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 =========================================================================*/
28 #ifndef vtkSMComparativeViewProxy_h
29 #define vtkSMComparativeViewProxy_h
30 
31 #include "vtkRemotingViewsModule.h" //needed for exports
32 #include "vtkSMViewProxy.h"
33 
34 class vtkCollection;
35 
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
46  void Update() override;
47 
53  void GetViews(vtkCollection* collection);
54 
58  vtkSMViewProxy* GetRootView();
59 
64  void MarkDirty(vtkSMProxy* modifiedProxy) override;
65 
69  const char* GetRepresentationType(vtkSMSourceProxy* producer, int outputPort) override;
70 
75  {
76  return this->GetRootView() ? this->GetRootView()->GetRenderWindow() : nullptr;
77  }
79  {
80  return this->GetRootView() ? this->GetRootView()->GetInteractor() : nullptr;
81  }
82 
88  void SetupInteractor(vtkRenderWindowInteractor* iren) override;
89 
94  bool MakeRenderWindowInteractor(bool quiet = false) override;
95 
96 protected:
98  ~vtkSMComparativeViewProxy() override;
99 
104  vtkImageData* CaptureWindowInternal(int magX, int magY) override;
105 
106  void InvokeConfigureEvent();
107 
108  void CreateVTKObjects() override;
109 
110 private:
112  void operator=(const vtkSMComparativeViewProxy&) = delete;
113 };
114 
115 #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:152
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.