vtkSMTransferFunctionManager.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMTransferFunctionManager.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 =========================================================================*/
32 #ifndef vtkSMTransferFunctionManager_h
33 #define vtkSMTransferFunctionManager_h
34 
35 #include "vtkRemotingViewsModule.h" // needed for export macro
36 #include "vtkSMObject.h"
37 
38 class vtkSMProxy;
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
53  virtual vtkSMProxy* GetColorTransferFunction(
54  const char* arrayName, vtkSMSessionProxyManager* pxm);
55 
62  virtual vtkSMProxy* GetOpacityTransferFunction(
63  const char* arrayName, vtkSMSessionProxyManager* pxm);
64 
71  virtual vtkSMProxy* GetScalarBarRepresentation(
72  vtkSMProxy* colorTransferFunctionProxy, vtkSMProxy* view);
73 
80  void ResetAllTransferFunctionRangesUsingCurrentData(
81  vtkSMSessionProxyManager* pxm, bool animating = false);
82 
84  {
85  HIDE_UNUSED_SCALAR_BARS = 0x01,
86  SHOW_USED_SCALAR_BARS = 0x02
87  };
88 
93  {
94  NEVER = -1,
95  GROW_ON_APPLY = 0,
96  GROW_ON_APPLY_AND_TIMESTEP = 1,
97  RESET_ON_APPLY = 2,
98  RESET_ON_APPLY_AND_TIMESTEP = 3
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:29
TransferFunctionResetMode
Enum for TransferFunctionResetMode.
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:152
void PrintSelf(ostream &os, vtkIndent indent) override