ParaView
vtkSMContextViewProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMContextViewProxy.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 =========================================================================*/
23 #ifndef vtkSMContextViewProxy_h
24 #define vtkSMContextViewProxy_h
25 
26 #include "vtkNew.h" // needed for vtkInteractorObserver.
27 #include "vtkPVServerManagerRenderingModule.h" //needed for exports
28 #include "vtkSMViewProxy.h"
29 
30 class vtkAbstractContextItem;
31 class vtkContextView;
32 class vtkImageData;
33 class vtkRenderWindow;
34 class vtkRenderWindowInteractor;
35 class vtkSelection;
37 
38 class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMContextViewProxy : public vtkSMViewProxy
39 {
40 public:
41  static vtkSMContextViewProxy* New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
48  vtkContextView* GetContextView();
49 
53  virtual vtkAbstractContextItem* GetContextItem();
54 
59  virtual vtkRenderWindow* GetRenderWindow();
60 
67  virtual void SetupInteractor(vtkRenderWindowInteractor* iren);
68 
72  virtual vtkRenderWindowInteractor* GetInteractor();
73 
77  virtual void ResetDisplay();
78 
86  virtual bool CanDisplayData(vtkSMSourceProxy* producer, int outputPort);
87 
88  vtkSelection* GetCurrentSelection();
89 
90 protected:
93 
97  virtual vtkImageData* CaptureWindowInternal(int magnification);
98 
99  virtual void CreateVTKObjects();
100 
105  void OnInteractionEvent();
106 
111  void OnLeftButtonReleaseEvent();
112 
117  virtual void PostRender(bool interactive);
118 
123 
127  vtkContextView* ChartView;
128 
130 
139 
140 private:
141  vtkSMContextViewProxy(const vtkSMContextViewProxy&) VTK_DELETE_FUNCTION;
142  void operator=(const vtkSMContextViewProxy&) VTK_DELETE_FUNCTION;
144 
149  void CopyAxisRangesFromChart();
150 
151  vtkNew<vtkSMViewProxyInteractorHelper> InteractorHelper;
152 };
153 
154 #endif
virtual int ReadXMLAttributes(vtkSMSessionProxyManager *pm, vtkPVXMLElement *element)
Read attributes from an XML element.
virtual void PostRender(bool vtkNotUsed(interactive))
Superclass for all view proxies.
static vtkSMViewProxy * New()
virtual void CreateVTKObjects()
Called at the end of CreateVTKObjects().
virtual vtkRenderWindow * GetRenderWindow()
Return the vtkRenderWindow used by this view, if any.
vtkContextView * ChartView
The context view that is used for all context derived charts.
virtual vtkImageData * CaptureWindowInternal(int vtkNotUsed(magnification))
Subclasses should override this method to do the actual image capture.
virtual vtkRenderWindowInteractor * GetInteractor()
Returns the interactor.
proxy for a VTK source on a server
abstract base class for all Chart Views.
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
virtual bool CanDisplayData(vtkSMSourceProxy *producer, int outputPort)
Returns true if the view can display the data produced by the producer&#39;s port.
virtual void SetupInteractor(vtkRenderWindowInteractor *iren)
A client process need to set the interactor to enable interactivity.
helper class that make it easier to hook vtkRenderWindowInteractor and vtkSMViewProxy.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
void PrintSelf(ostream &os, vtkIndent indent)
bool SkipPlotableCheck
To avoid showing large datasets in context views, that typically rely on delivering all data to the c...