vtkSMParaViewPipelineControllerWithRendering.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkSMParaViewPipelineControllerWithRendering_h
23 #define vtkSMParaViewPipelineControllerWithRendering_h
24 
25 #include "vtkParaViewDeprecation.h"
26 #include "vtkRemotingViewsModule.h" //needed for exports
28 
29 class vtkSMSourceProxy;
31 class vtkSMViewProxy;
32 
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45  virtual vtkSMProxy* Show(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
46 
53  virtual vtkSMProxy* Show(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view,
54  const char* representationType);
55 
59  void ShowAll(vtkSMViewProxy* view);
60 
65  virtual vtkSMProxy* Hide(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
66 
70  virtual void Hide(vtkSMProxy* repr, vtkSMViewProxy* view);
71 
75  virtual void HideAll(vtkSMViewProxy* view);
76 
81  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view, bool visible)
82  {
83  return (
84  visible ? this->Show(producer, outputPort, view) : this->Hide(producer, outputPort, view));
85  }
86 
90  virtual bool GetVisibility(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
91 
111  virtual vtkSMViewProxy* ShowInPreferredView(
112  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
113 
141  virtual const char* GetPreferredViewType(vtkSMSourceProxy* producer, int outputPort);
142 
167  virtual const char* GetPipelineIcon(vtkSMSourceProxy* producer, int outputPort);
168 
169  using Superclass::RegisterRepresentationProxy;
176  bool RegisterRepresentationProxy(vtkSMProxy* proxy) override;
177 
182  "Use vtkPVGeneralSettings::SetScalarBarMode(AUTOMATICALLY_HIDE_SCALAR_BARS) instead")
183  static void SetHideScalarBarOnHide(bool);
184 
186 
193  "Use vtkPVGeneralSettings::SetInheritRepresentationProperties() instead")
194  static void SetInheritRepresentationProperties(bool);
196  "Use vtkPVGeneralSettings::GetInheritRepresentationProperties() instead")
197  static bool GetInheritRepresentationProperties();
199 
203  bool PostInitializeProxy(vtkSMProxy* proxy) override;
204 
209  virtual bool RegisterLayoutProxy(vtkSMProxy* proxy, const char* proxyname = nullptr);
210 
221  virtual void AssignViewToLayout(
222  vtkSMViewProxy* view, vtkSMViewLayoutProxy* layout = nullptr, int hint = 0);
223 
224 protected:
227 
228  virtual void UpdatePipelineBeforeDisplay(
229  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
230 
235  virtual bool AlsoShowInCurrentView(
236  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* currentView);
237 
238 private:
241  void operator=(const vtkSMParaViewPipelineControllerWithRendering&) = delete;
242  bool SkipUpdatePipelineBeforeDisplay;
243 };
244 
245 #endif
vtkSMParaViewPipelineControllerWithRendering overrides vtkSMParaViewPipelineController to add support...
virtual bool PostInitializeProxy(vtkSMProxy *proxy)
Final step in proxy initialization.
Controller that encapsulates control logic for typical ParaView applications.
#define VTKREMOTINGVIEWS_EXPORT
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) override
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:140
#define PARAVIEW_DEPRECATED_IN_6_0_0(reason)
static vtkSMParaViewPipelineController * New()