ParaView
vtkSMParaViewPipelineControllerWithRendering.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMParaViewPipelineControllerWithRendering.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 =========================================================================*/
34 #ifndef vtkSMParaViewPipelineControllerWithRendering_h
35 #define vtkSMParaViewPipelineControllerWithRendering_h
36 
37 #include "vtkPVServerManagerRenderingModule.h" //needed for exports
39 
40 class vtkSMSourceProxy;
42 class vtkSMViewProxy;
43 
44 class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMParaViewPipelineControllerWithRendering
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
56  virtual vtkSMProxy* Show(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
57 
62  virtual vtkSMProxy* Hide(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
63 
67  virtual void Hide(vtkSMProxy* repr, vtkSMViewProxy* view);
68 
72  virtual void HideAll(vtkSMViewProxy* view);
73 
78  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view, bool visible)
79  {
80  return (
81  visible ? this->Show(producer, outputPort, view) : this->Hide(producer, outputPort, view));
82  }
83 
87  virtual bool GetVisibility(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
88 
96  virtual vtkSMViewProxy* ShowInPreferredView(
97  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
98 
102  virtual const char* GetPreferredViewType(vtkSMSourceProxy* producer, int outputPort);
103 
110  virtual bool RegisterRepresentationProxy(vtkSMProxy* proxy);
111 
115  static void SetHideScalarBarOnHide(bool);
116 
118 
124  static void SetInheritRepresentationProperties(bool);
125  static bool GetInheritRepresentationProperties();
127 
129 
132  virtual bool WriteImage(
133  vtkSMViewProxy* view, const char* filename, int magnification, int quality);
134  virtual bool WriteImage(
135  vtkSMViewLayoutProxy* layout, const char* filename, int magnification, int quality);
137 
141  virtual bool PostInitializeProxy(vtkSMProxy* proxy);
142 
144 
147  virtual bool RegisterViewProxy(vtkSMProxy* proxy, const char* proxyname);
148  using Superclass::RegisterViewProxy;
150 
154  virtual bool RegisterLayoutProxy(vtkSMProxy* proxy, const char* proxyname = NULL);
155 
156 protected:
159 
160  virtual void UpdatePipelineBeforeDisplay(
161  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
162 
163 private:
165  const vtkSMParaViewPipelineControllerWithRendering&) VTK_DELETE_FUNCTION;
166  void operator=(const vtkSMParaViewPipelineControllerWithRendering&) VTK_DELETE_FUNCTION;
167  static bool HideScalarBarOnHide;
168  static bool InheritRepresentationProperties;
169 };
170 
171 #endif
vtkSMParaViewPipelineControllerWithRendering overrides vtkSMParaViewPipelineController to add support...
virtual bool PostInitializeProxy(vtkSMProxy *proxy)
Final step in proxy initialization.
virtual bool RegisterRepresentationProxy(vtkSMProxy *proxy)
Registration method for representations to be used after PreInitializeProxy() and PostInitializeProxy...
Superclass for all view proxies.
vtkSMProxy * SetVisibility(vtkSMSourceProxy *producer, int outputPort, vtkSMViewProxy *view, bool visible)
Alternative method to call Show and Hide using a visibility flag.
void PrintSelf(ostream &os, vtkIndent indent)
proxy for a VTK source on a server
vtkSMViewLayoutProxy is used by ParaView to layout multiple views in a 2D KD-Tree layout...
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
virtual bool RegisterViewProxy(vtkSMProxy *proxy)
Use this method after PreInitializeProxy() and PostInitializeProxy() to register a view proxy with th...
static vtkSMParaViewPipelineController * New()