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 "vtkRemotingViewsModule.h" //needed for exports
27 
28 class vtkSMSourceProxy;
30 class vtkSMViewProxy;
31 
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
44  virtual vtkSMProxy* Show(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
45 
52  virtual vtkSMProxy* Show(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view,
53  const char* representationType);
54 
58  void ShowAll(vtkSMViewProxy* view);
59 
64  virtual vtkSMProxy* Hide(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
65 
69  virtual void Hide(vtkSMProxy* repr, vtkSMViewProxy* view);
70 
74  virtual void HideAll(vtkSMViewProxy* view);
75 
80  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view, bool visible)
81  {
82  return (
83  visible ? this->Show(producer, outputPort, view) : this->Hide(producer, outputPort, view));
84  }
85 
89  virtual bool GetVisibility(vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
90 
110  virtual vtkSMViewProxy* ShowInPreferredView(
111  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
112 
140  virtual const char* GetPreferredViewType(vtkSMSourceProxy* producer, int outputPort);
141 
166  virtual const char* GetPipelineIcon(vtkSMSourceProxy* producer, int outputPort);
167 
168  using Superclass::RegisterRepresentationProxy;
175  bool RegisterRepresentationProxy(vtkSMProxy* proxy) override;
176 
180  static void SetHideScalarBarOnHide(bool);
181 
183 
189  static void SetInheritRepresentationProperties(bool);
190  static bool GetInheritRepresentationProperties();
192 
196  bool PostInitializeProxy(vtkSMProxy* proxy) override;
197 
202  virtual bool RegisterLayoutProxy(vtkSMProxy* proxy, const char* proxyname = nullptr);
203 
214  virtual void AssignViewToLayout(
215  vtkSMViewProxy* view, vtkSMViewLayoutProxy* layout = nullptr, int hint = 0);
216 
217 protected:
220 
221  virtual void UpdatePipelineBeforeDisplay(
222  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
223 
228  virtual bool AlsoShowInCurrentView(
229  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* currentView);
230 
231 private:
234  void operator=(const vtkSMParaViewPipelineControllerWithRendering&) = delete;
235  static bool HideScalarBarOnHide;
236  static bool InheritRepresentationProperties;
237  bool SkipUpdatePipelineBeforeDisplay;
238 };
239 
240 #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
static vtkSMParaViewPipelineController * New()