ParaView
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 "vtkPVServerManagerRenderingModule.h" //needed for exports
32 #include "vtkSMViewProxy.h"
33 
34 class vtkCollection;
35 
36 class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMComparativeViewProxy : public vtkSMViewProxy
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
46  virtual void Update();
47 
53  void GetViews(vtkCollection* collection);
54 
56 
63  void GetRepresentationsForView(vtkSMViewProxy*, vtkCollection*);
64  void GetRepresentations(int x, int y, vtkCollection*);
66 
70  vtkSMViewProxy* GetRootView();
71 
76  virtual void MarkDirty(vtkSMProxy* modifiedProxy);
77 
81  virtual const char* GetRepresentationType(vtkSMSourceProxy* producer, int outputPort);
82 
86  virtual vtkRenderWindow* GetRenderWindow()
87  {
88  return this->GetRootView() ? this->GetRootView()->GetRenderWindow() : NULL;
89  }
90  virtual vtkRenderWindowInteractor* GetInteractor()
91  {
92  return this->GetRootView() ? this->GetRootView()->GetInteractor() : NULL;
93  }
94 
100  virtual void SetupInteractor(vtkRenderWindowInteractor* iren);
101 
106  virtual bool MakeRenderWindowInteractor(bool quiet = false);
107 
108 protected:
111 
116  virtual vtkImageData* CaptureWindowInternal(int magnification);
117 
118  void InvokeConfigureEvent();
119 
120  virtual void CreateVTKObjects();
121 
122 private:
123  vtkSMComparativeViewProxy(const vtkSMComparativeViewProxy&) VTK_DELETE_FUNCTION;
124  void operator=(const vtkSMComparativeViewProxy&) VTK_DELETE_FUNCTION;
125 };
126 
127 #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...
virtual vtkRenderWindowInteractor * GetInteractor()
Returns the interactor.
Superclass for all view proxies.
virtual vtkRenderWindow * GetRenderWindow()
Returns the render-window used by the root view, if any.
static vtkSMViewProxy * New()
virtual void CreateVTKObjects()
Called at the end of CreateVTKObjects().
virtual vtkImageData * CaptureWindowInternal(int vtkNotUsed(magnification))
Subclasses should override this method to do the actual image capture.
virtual void MarkDirty(vtkSMProxy *modifiedProxy)
Dirty means this algorithm will execute during next update.
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.
void PrintSelf(ostream &os, vtkIndent indent)