12 #ifndef vtkSMColorMapEditorHelper_h 13 #define vtkSMColorMapEditorHelper_h 42 static bool GetUsingScalarColoring(
vtkSMProxy* proxy);
43 static bool GetBlockUsingScalarColoring(
vtkSMProxy* proxy,
const std::string& blockSelector);
44 static bool GetAnyBlockUsingScalarColoring(
vtkSMProxy* proxy);
52 static void SetupLookupTable(
vtkSMProxy* proxy);
53 static void SetupBlockLookupTable(
vtkSMProxy* proxy,
const std::string& blockSelector);
65 static bool UpdateBlockScalarBarRange(
76 static bool SetScalarColoring(
vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
77 static bool SetBlockScalarColoring(
78 vtkSMProxy* proxy,
const std::string& blockSelector,
const char* arrayName,
int attributeType);
90 static bool SetScalarColoring(
92 static bool SetBlockScalarColoring(
vtkSMProxy* proxy,
const std::string& blockSelector,
93 const char* arrayName,
int attributeType,
int component);
105 static bool RescaleTransferFunctionToDataRange(
106 vtkSMProxy* proxy,
bool extend =
false,
bool force =
true);
107 static bool RescaleBlockTransferFunctionToDataRange(
108 vtkSMProxy* proxy,
const std::string& blockSelector,
bool extend =
false,
bool force =
true);
122 static bool RescaleTransferFunctionToDataRange(
vtkSMProxy* proxy,
const char* arrayName,
123 int attributeType,
bool extend =
false,
bool force =
true);
124 static bool RescaleBlockTransferFunctionToDataRange(
vtkSMProxy* proxy,
125 const std::string& blockSelector,
const char* arrayName,
int attributeType,
bool extend =
false,
134 static bool RescaleTransferFunctionToDataRangeOverTime(
vtkSMProxy* proxy);
135 static bool RescaleBlockTransferFunctionToDataRangeOverTime(
136 vtkSMProxy* proxy,
const std::string& blockSelector);
146 static bool RescaleTransferFunctionToDataRangeOverTime(
147 vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
148 static bool RescaleBlockTransferFunctionToDataRangeOverTime(
149 vtkSMProxy* proxy,
const std::string& blockSelector,
const char* arrayName,
int attributeType);
158 static bool RescaleTransferFunctionToVisibleRange(
160 static bool RescaleBlockTransferFunctionToVisibleRange(
163 const std::string& blockSelector,
const char* arrayName,
int attributeType);
172 static bool SetBlockScalarBarVisibility(
191 static bool IsBlockScalarBarVisible(
202 vtkSMProxy* proxy,
bool checkRepresentedData =
true);
204 vtkSMProxy* proxy,
const std::string& blockSelector,
bool checkRepresentedData =
true);
212 static std::string GetDecoratedArrayName(
vtkSMProxy* proxy,
const std::string& arrayName);
213 static std::string GetBlockDecoratedArrayName(
214 vtkSMProxy* proxy,
const std::string& blockSelector,
const std::string& arrayName);
223 vtkSMProxy* proxy,
double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
226 vtkSMProxy* proxy,
const std::string& blockSelector,
double uncertaintyAllowed = 1e-6,
227 double fraction = 1e-3,
bool force =
false);
235 static int GetBlockEstimatedNumberOfAnnotationsOnScalarBar(
250 static int IsBlockScalarBarStickyVisible(
257 static void SetBlockColorArray(
258 vtkSMProxy* proxy,
const std::string& blockSelector,
int attributeType, std::string arrayName);
259 static std::pair<int, std::string> GetBlockColorArray(
260 vtkSMProxy* proxy,
const std::string& blockSelector);
275 static void SetBlockUseSeparateColorMap(
276 vtkSMProxy* proxy,
const std::string& blockSelector,
bool use);
277 static bool GetBlockUseSeparateColorMap(
vtkSMProxy* proxy,
const std::string& blockSelector);
286 static bool RescaleTransferFunctionToDataRange(
288 static bool RescaleBlockTransferFunctionToDataRange(
vtkSMProxy* proxy,
297 static void SetBlockLookupTable(
300 static void RemoveBlockLookupTable(
vtkSMProxy* proxy,
const std::string& blockSelector);
305 static bool SetScalarColoringInternal(
306 vtkSMProxy* proxy,
const char* arrayName,
int attributeType,
bool useComponent,
int component);
307 static bool SetBlockScalarColoringInternal(
vtkSMProxy* proxy,
const std::string& blockSelector,
308 const char* arrayName,
int attributeType,
bool useComponent,
int component);
320 static void SetLastBlockLUTProxy(
static std::string GetBlockColorArrayName(vtkSMProxy *proxy, const std::string &blockSelector)
Checks if the scalar bar of this representation in view is sticky visible, i.e.
static int GetBlockColorArrayAssociation(vtkSMProxy *proxy, const std::string &blockSelector)
Checks if the scalar bar of this representation in view is sticky visible, i.e.
#define VTKREMOTINGVIEWS_EXPORT
representation for "Render View" like views in ParaView.
proxy for a VTK object(s) on a server
static std::pair< int, std::string > GetBlockColorArray(vtkSMProxy *proxy, const std::string &blockSelector)
Checks if the scalar bar of this representation in view is sticky visible, i.e.
helper for color map editor handling