vtkSMTransferFunctionManager.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
20 #ifndef vtkSMTransferFunctionManager_h
21 #define vtkSMTransferFunctionManager_h
22 
23 #include "vtkRemotingViewsModule.h" // needed for export macro
24 #include "vtkSMObject.h"
25 
26 class vtkSMProxy;
28 
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
41  virtual vtkSMProxy* GetColorTransferFunction(
42  const char* arrayName, vtkSMSessionProxyManager* pxm);
43 
50  virtual vtkSMProxy* GetOpacityTransferFunction(
51  const char* arrayName, vtkSMSessionProxyManager* pxm);
52 
56  virtual vtkSMProxy* GetTransferFunction2D(const char* arrayName, vtkSMSessionProxyManager* pxm);
57  virtual vtkSMProxy* GetTransferFunction2D(
58  const char* arrayName, const char* array2Name, vtkSMSessionProxyManager* pxm);
59 
66  virtual vtkSMProxy* GetScalarBarRepresentation(
67  vtkSMProxy* colorTransferFunctionProxy, vtkSMProxy* view);
68 
75  void ResetAllTransferFunctionRangesUsingCurrentData(
76  vtkSMSessionProxyManager* pxm, bool animating = false);
77 
79  {
80  HIDE_UNUSED_SCALAR_BARS = 0x01,
81  SHOW_USED_SCALAR_BARS = 0x02
82  };
83 
91  {
92  NEVER = -1,
93  GROW_ON_APPLY = 0,
94  GROW_ON_APPLY_AND_TIMESTEP = 1,
95  RESET_ON_APPLY = 2,
96  RESET_ON_APPLY_AND_TIMESTEP = 3,
97  RESET_VISIBLE_ON_APPLY = 4,
98  RESET_VISIBLE_ON_APPLY_AND_TIMESTEP = 5
99  };
100 
106  virtual bool UpdateScalarBars(vtkSMProxy* viewProxy, unsigned int mode);
107 
112  virtual bool UpdateScalarBarsComponentTitle(vtkSMProxy* lutProxy, vtkSMProxy* representation);
113 
118  virtual bool HideScalarBarIfNotNeeded(vtkSMProxy* lutProxy, vtkSMProxy* view);
119 
120 protected:
122  ~vtkSMTransferFunctionManager() override;
123 
124 private:
126  void operator=(const vtkSMTransferFunctionManager&) = delete;
127 };
128 
129 #endif
#define VTKREMOTINGVIEWS_EXPORT
superclass for most server manager classes
Definition: vtkSMObject.h:17
TransferFunctionResetMode
Enum for TransferFunctionResetMode GROW means the data range can only expand to new data RESET means ...
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
manages transfer functions i.e.
static vtkSMObject * New()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
void PrintSelf(ostream &os, vtkIndent indent) override