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  bool PostInitializeProxy(vtkSMProxy* proxy) override;
181 
186  virtual bool RegisterLayoutProxy(vtkSMProxy* proxy, const char* proxyname = nullptr);
187 
198  virtual void AssignViewToLayout(
199  vtkSMViewProxy* view, vtkSMViewLayoutProxy* layout = nullptr, int hint = 0);
200 
201 protected:
204 
205  virtual void UpdatePipelineBeforeDisplay(
206  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);
207 
212  virtual bool AlsoShowInCurrentView(
213  vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* currentView);
214 
215 private:
218  void operator=(const vtkSMParaViewPipelineControllerWithRendering&) = delete;
219  bool SkipUpdatePipelineBeforeDisplay;
220 };
221 
222 #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()