12 #ifndef vtkSMColorMapEditorHelper_h 13 #define vtkSMColorMapEditorHelper_h 51 RepresentationInherited = 0x1,
59 SetAndRepresentationInherited = 0x5,
61 SetAndBlockInherited = 0x6,
63 SetAndMixedInherited = 0x7,
78 vtkSetClampMacro(SelectedPropertiesType,
int, SelectedPropertiesTypes::Representation,
79 SelectedPropertiesTypes::Blocks);
82 this->SetSelectedPropertiesType(SelectedPropertiesTypes::Representation);
86 this->SetSelectedPropertiesType(SelectedPropertiesTypes::Blocks);
88 vtkGetMacro(SelectedPropertiesType,
int);
109 static std::pair<std::string, BlockPropertyState> HasBlockProperty(
110 vtkSMProxy* proxy,
const std::string& blockSelector,
const std::string& propertyName);
111 static std::pair<std::string, BlockPropertyState> GetBlockPropertyStateFromBlockPropertyStates(
112 const std::vector<std::pair<std::string, BlockPropertyState>>& states);
113 static std::pair<std::string, BlockPropertyState> HasBlockProperty(
vtkSMProxy* proxy,
114 const std::vector<std::string>& blockSelectors,
const std::string& propertyName);
115 static std::pair<std::string, BlockPropertyState> HasBlockProperties(
vtkSMProxy* proxy,
116 const std::string& blockSelector,
const std::vector<std::string>& propertyNames);
117 static std::pair<std::string, BlockPropertyState> HasBlocksProperties(
vtkSMProxy* proxy,
118 const std::vector<std::string>& blockSelectors,
const std::vector<std::string>& propertyNames);
124 static std::vector<std::string> GetSelectedBlockSelectors(
vtkSMProxy* proxy);
129 static std::vector<std::string> GetColorArraysBlockSelectors(
vtkSMProxy* proxy);
148 static std::vector<vtkSMProxy*> GetBlocksLookupTables(
149 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
155 static std::vector<vtkSMProxy*> GetBlocksLookupTables(
157 std::vector<vtkSMProxy*> GetSelectedLookupTables(
vtkSMProxy* proxy);
167 static bool GetUsingScalarColoring(
vtkSMProxy* proxy);
173 static std::vector<vtkTypeBool> GetBlocksUsingScalarColoring(
174 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
175 static bool GetAnyBlockUsingScalarColoring(
vtkSMProxy* proxy);
176 std::vector<vtkTypeBool> GetSelectedUsingScalarColorings(
vtkSMProxy* proxy);
177 bool GetAnySelectedUsingScalarColoring(
vtkSMProxy* proxy);
185 static void SetupLookupTable(
vtkSMProxy* proxy);
186 static void SetupBlocksLookupTables(
vtkSMProxy* proxy);
198 static std::vector<vtkTypeBool> UpdateBlocksScalarBarRange(
209 static bool SetScalarColoring(
vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
211 vtkSMProxy* proxy,
const std::string& blockSelector,
const char* arrayName,
int attributeType)
214 proxy, { blockSelector }, arrayName, attributeType)
217 static std::vector<vtkTypeBool> SetBlocksScalarColoring(
vtkSMProxy* proxy,
218 const std::vector<std::string>& blockSelectors,
const char* arrayName,
int attributeType);
219 std::vector<vtkTypeBool> SetSelectedScalarColoring(
220 vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
232 static bool SetScalarColoring(
235 const char* arrayName,
int attributeType,
int component)
238 proxy, { blockSelector }, arrayName, attributeType, component)
241 static std::vector<vtkTypeBool> SetBlocksScalarColoring(
vtkSMProxy* proxy,
242 const std::vector<std::string>& blockSelectors,
const char* arrayName,
int attributeType,
244 std::vector<vtkTypeBool> SetSelectedScalarColoring(
257 static bool RescaleTransferFunctionToDataRange(
258 vtkSMProxy* proxy,
bool extend =
false,
bool force =
true);
260 vtkSMProxy* proxy,
const std::string& blockSelector,
bool extend =
false,
bool force =
true)
263 proxy, { blockSelector }, extend, force)
266 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRange(
vtkSMProxy* proxy,
267 const std::vector<std::string>& blockSelectors,
bool extend =
false,
bool force =
true);
268 std::vector<vtkTypeBool> RescaleSelectedTransferFunctionToDataRange(
269 vtkSMProxy* proxy,
bool extend =
false,
bool force =
true);
283 static bool RescaleTransferFunctionToDataRange(
vtkSMProxy* proxy,
const char* arrayName,
284 int attributeType,
bool extend =
false,
bool force =
true);
286 const std::string& blockSelector,
const char* arrayName,
int attributeType,
bool extend =
false,
290 proxy, { blockSelector }, arrayName, attributeType, extend, force)
293 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRange(
vtkSMProxy* proxy,
294 const std::vector<std::string>& blockSelectors,
const char* arrayName,
int attributeType,
295 bool extend =
false,
bool force =
true);
296 std::vector<vtkTypeBool> RescaleSelectedTransferFunctionToDataRange(
vtkSMProxy* proxy,
297 const char* arrayName,
int attributeType,
bool extend =
false,
bool force =
true);
305 static bool RescaleTransferFunctionToDataRangeOverTime(
vtkSMProxy* proxy);
307 vtkSMProxy* proxy,
const std::string& blockSelector)
310 proxy, { blockSelector })
313 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRangeOverTime(
314 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
315 std::vector<vtkTypeBool> RescaleSelectedTransferFunctionToDataRangeOverTime(
vtkSMProxy* proxy);
325 static bool RescaleTransferFunctionToDataRangeOverTime(
326 vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
328 vtkSMProxy* proxy,
const std::string& blockSelector,
const char* arrayName,
int attributeType)
331 proxy, { blockSelector }, arrayName, attributeType)
334 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRangeOverTime(
335 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
const char* arrayName,
337 std::vector<vtkTypeBool> RescaleSelectedTransferFunctionToDataRangeOverTime(
338 vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
347 static bool RescaleTransferFunctionToVisibleRange(
361 proxy, view, { blockSelector }, visible)
364 static std::vector<vtkTypeBool> SetBlocksScalarBarVisibility(
vtkSMProxy* proxy,
vtkSMProxy* view,
365 const std::vector<std::string>& blockSelectors,
bool visible);
366 std::vector<vtkTypeBool> SetSelectedScalarBarVisibility(
394 static std::vector<vtkTypeBool> IsBlocksScalarBarVisible(
405 vtkSMProxy* proxy,
bool checkRepresentedData =
true);
407 vtkSMProxy* proxy,
const std::string& blockSelector)
410 proxy, { blockSelector })
413 static std::vector<vtkPVArrayInformation*> GetBlocksArrayInformationForColorArray(
414 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
422 static std::string GetDecoratedArrayName(
vtkSMProxy* proxy,
const std::string& arrayName);
424 vtkSMProxy* proxy,
const std::string& blockSelector,
const std::string& arrayName)
427 proxy, { blockSelector }, arrayName)
430 static std::vector<std::string> GetBlocksDecoratedArrayNames(
vtkSMProxy* proxy,
431 const std::vector<std::string>& blockSelectors,
const std::string& arrayName);
440 vtkSMProxy* proxy,
double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
443 vtkSMProxy* proxy,
const std::string& blockSelector,
double uncertaintyAllowed = 1e-6,
444 double fraction = 1e-3,
bool force =
false)
447 proxy, { blockSelector }, uncertaintyAllowed, fraction, force)
450 static std::vector<vtkPVProminentValuesInformation*>
451 GetBlocksProminentValuesInformationForColorArray(
vtkSMProxy* proxy,
452 const std::vector<std::string>& blockSelectors,
double uncertaintyAllowed = 1e-6,
453 double fraction = 1e-3,
bool force =
false);
467 proxy, view, { blockSelector })
470 static std::vector<int> GetBlocksEstimatedNumberOfAnnotationsOnScalarBars(
472 std::vector<int> GetSelectedEstimatedNumberOfAnnotationsOnScalarBars(
494 static std::vector<int> IsBlocksScalarBarStickyVisible(
498 using Color = std::array<double, 3>;
505 static bool IsColorValid(
Color color);
511 static void SetBlocksColor(
517 static void RemoveBlocksColors(
vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
524 static std::vector<Color> GetBlocksColors(
525 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
526 std::vector<Color> GetSelectedColors(
vtkSMProxy* proxy);
545 static bool IsColorArrayValid(
const ColorArray& array);
546 static std::vector<ColorArray> GetBlocksColorArrays(
547 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
556 static std::map<ColorArray, std::vector<std::string>> GetCommonColorArraysBlockSelectors(
557 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
558 std::vector<ColorArray> GetSelectedColorArrays(
vtkSMProxy* proxy);
576 static bool IsUseSeparateColorMapValid(
int useSeparateColorMap);
577 static void SetUseSeparateColorMap(
vtkSMProxy* proxy,
bool use);
579 vtkSMProxy* proxy,
const std::string& blockSelector,
bool use)
583 static void SetBlocksUseSeparateColorMap(
584 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
bool use);
589 static void RemoveBlocksUseSeparateColorMaps(
590 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
591 void SetSelectedUseSeparateColorMap(
vtkSMProxy* proxy,
bool use);
592 static bool GetUseSeparateColorMap(
vtkSMProxy* proxy);
598 static std::vector<int> GetBlocksUseSeparateColorMaps(
599 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
600 std::vector<int> GetSelectedUseSeparateColorMaps(
vtkSMProxy* proxy);
601 bool GetAnySelectedUseSeparateColorMap(
vtkSMProxy* proxy);
610 static bool IsMapScalarsValid(
int mapScalars);
611 static void SetMapScalars(
vtkSMProxy* proxy,
bool mapScalars);
613 vtkSMProxy* proxy,
const std::string& blockSelector,
bool mapScalars)
617 static void SetBlocksMapScalars(
618 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
bool mapScalars);
623 static void RemoveBlocksMapScalars(
624 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
625 void SetSelectedMapScalars(
vtkSMProxy* proxy,
bool mapScalars);
631 static std::vector<int> GetBlocksMapScalars(
632 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
633 std::vector<int> GetSelectedMapScalars(
vtkSMProxy* proxy);
634 bool GetAnySelectedMapScalars(
vtkSMProxy* proxy);
643 static bool IsInterpolateScalarsBeforeMappingValid(
int interpolate);
644 static void SetInterpolateScalarsBeforeMapping(
vtkSMProxy* proxy,
bool interpolate);
646 vtkSMProxy* proxy,
const std::string& blockSelector,
bool interpolate)
649 proxy, { blockSelector }, interpolate);
651 static void SetBlocksInterpolateScalarsBeforeMapping(
652 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
bool interpolate);
654 vtkSMProxy* proxy,
const std::string& blockSelector)
657 proxy, { blockSelector });
659 static void RemoveBlocksInterpolateScalarsBeforeMappings(
660 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
661 void SetSelectedInterpolateScalarsBeforeMapping(
vtkSMProxy* proxy,
bool interpolate);
662 static bool GetInterpolateScalarsBeforeMapping(
vtkSMProxy* proxy);
664 vtkSMProxy* proxy,
const std::string& blockSelector)
667 proxy, { blockSelector })
670 static std::vector<int> GetBlocksInterpolateScalarsBeforeMappings(
671 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
672 std::vector<int> GetSelectedInterpolateScalarsBeforeMappings(
vtkSMProxy* proxy);
673 bool GetAnySelectedInterpolateScalarsBeforeMapping(
vtkSMProxy* proxy);
682 static bool IsOpacityValid(
double opacity);
683 static void SetOpacity(
vtkSMProxy* proxy,
double opacity);
688 static void SetBlocksOpacity(
689 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
double opacity);
694 static void RemoveBlocksOpacities(
695 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
696 void SetSelectedOpacity(
vtkSMProxy* proxy,
double opacity);
702 static std::vector<double> GetBlocksOpacities(
703 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
704 std::vector<double> GetSelectedOpacities(
vtkSMProxy* proxy);
712 vtkSMProxy* proxy,
const std::string& blockSelector,
const std::string& propertyName)
717 const std::vector<std::string>& propertyNames)
722 const std::string& propertyName)
726 static void ResetBlocksProperties(
vtkSMProxy* proxy,
727 const std::vector<std::string>& blockSelectors,
const std::vector<std::string>& propertyNames);
739 static bool RescaleTransferFunctionToDataRange(
746 proxy, { blockSelector }, { info }, extend, force)
749 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRange(
vtkSMProxy* proxy,
750 const std::vector<std::string>& blockSelectors, std::vector<vtkPVArrayInformation*> infos,
751 bool extend =
false,
bool force =
true);
758 static void SetColorArray(
vtkSMProxy* proxy,
int attributeType, std::string arrayName);
760 vtkSMProxy* proxy,
const std::string& blockSelector,
int attributeType, std::string arrayName)
763 proxy, { blockSelector }, attributeType, arrayName);
765 static void SetBlocksColorArray(
vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
766 int attributeType, std::string arrayName);
771 static void RemoveBlocksColorArrays(
772 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
789 static void SetBlocksLookupTable(
795 static void RemoveBlocksLookupTables(
796 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
802 static bool SetScalarColoringInternal(
803 vtkSMProxy* proxy,
const char* arrayName,
int attributeType,
bool useComponent,
int component);
804 static std::vector<vtkTypeBool> SetBlocksScalarColoringInternal(
vtkSMProxy* proxy,
805 const std::vector<std::string>& blockSelectors,
const char* arrayName,
int attributeType,
807 std::vector<vtkTypeBool> SetSelectedScalarColoringInternal(
808 vtkSMProxy* proxy,
const char* arrayName,
int attributeType,
bool useComponent,
int component);
823 static std::vector<vtkSMProxy*> GetLastBlocksLookupTables(
824 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
830 static void SetLastBlocksLookupTable(
840 int SelectedPropertiesType = SelectedPropertiesTypes::Representation;
static void SetBlockLookupTable(vtkSMProxy *proxy, const std::string &blockSelector, vtkSMProxy *lutProxy)
Set the block lookup table proxy.
std::pair< int, std::string > ColorArray
static std::string GetBlockColorArrayName(vtkSMProxy *proxy, const std::string &blockSelector)
Get the color array name.
static vtkPVProminentValuesInformation * GetBlockProminentValuesInformationForColorArray(vtkSMProxy *proxy, const std::string &blockSelector, double uncertaintyAllowed=1e-6, double fraction=1e-3, bool force=false)
Call vtkSMRepresentationProxy::GetProminentValuesInformation() for the array used for scalar color...
static ColorArray GetBlockColorArray(vtkSMProxy *proxy, const std::string &blockSelector)
Set the color array name.
static bool RescaleBlockTransferFunctionToDataRange(vtkSMProxy *proxy, const std::string &blockSelector, const char *arrayName, int attributeType, bool extend=false, bool force=true)
Rescales the color transfer function and opacity transfer function using the current data range for t...
static void RemoveBlockMapScalars(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get the map scalars of the representation.
static int GetBlockColorArrayAssociation(vtkSMProxy *proxy, const std::string &blockSelector)
Get the color array name.
static void SetBlocksInterpolateScalarsBeforeMapping(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, bool interpolate)
Set/Get the map scalars of the representation.
static void RemoveBlocksInterpolateScalarsBeforeMappings(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get the map scalars of the representation.
static std::vector< ColorArray > GetBlocksColorArrays(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Get the color array name.
#define VTKREMOTINGVIEWS_EXPORT
static void ResetBlockProperty(vtkSMProxy *proxy, const std::string &blockSelector, const std::string &propertyName)
Reset a block property.
static void RemoveBlocksOpacities(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get the opacity of the representation.
static void ResetBlocksProperty(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, const std::string &propertyName)
Reset a block property.
static void SetBlockUseSeparateColorMap(vtkSMProxy *proxy, const std::string &blockSelector, bool use)
Set/Get if we should use a separate color map.
static std::vector< vtkPVArrayInformation * > GetBlocksArrayInformationForColorArray(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Returns the array information for the data array used for scalar coloring, from input data...
representation for "Render View" like views in ParaView.
static void RemoveBlocksLookupTables(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set the block lookup table proxy.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static Color GetBlockColor(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get the color of the representation.
static void SetLastBlockLookupTable(vtkSMProxy *proxy, const std::string &blockSelector, vtkSMProxy *lutProxy)
Used as a memory of what was the last LUT proxy linked to this representation.
static std::vector< int > IsBlocksScalarBarStickyVisible(vtkSMProxy *proxy, vtkSMProxy *view, const std::vector< std::string > &blockSelectors)
Checks if the scalar bar of this representation in view is sticky visible, i.e.
static std::vector< std::string > GetBlocksDecoratedArrayNames(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, const std::string &arrayName)
In case of UseSeparateColorMap enabled, this function prefix the given arrayName with unique identifi...
static void RemoveBlockLookupTable(vtkSMProxy *proxy, const std::string &blockSelector)
Set the block lookup table proxy.
superclass for all SM properties
static std::vector< Color > GetBlocksColors(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get the color of the representation.
static std::vector< vtkSMProxy * > GetBlocksLookupTables(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Returns the lut proxy of this representation in the given view.
static bool RescaleBlockTransferFunctionToDataRange(vtkSMProxy *proxy, const std::string &blockSelector, vtkPVArrayInformation *info, bool extend=false, bool force=true)
Rescales transfer function ranges using the array information provided.
static std::vector< vtkPVProminentValuesInformation * > GetBlocksProminentValuesInformationForColorArray(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, double uncertaintyAllowed=1e-6, double fraction=1e-3, bool force=false)
Call vtkSMRepresentationProxy::GetProminentValuesInformation() for the array used for scalar color...
static vtkSMProxy * GetLastBlockLookupTable(vtkSMProxy *proxy, const std::string &blockSelector)
Used as a memory of what was the last LUT proxy linked to this representation.
static void SetBlockMapScalars(vtkSMProxy *proxy, const std::string &blockSelector, bool mapScalars)
Set/Get the map scalars of the representation.
static std::string GetBlockDecoratedArrayName(vtkSMProxy *proxy, const std::string &blockSelector, const std::string &arrayName)
In case of UseSeparateColorMap enabled, this function prefix the given arrayName with unique identifi...
static int GetBlockMapScalars(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get the map scalars of the representation.
static void SetBlockInterpolateScalarsBeforeMapping(vtkSMProxy *proxy, const std::string &blockSelector, bool interpolate)
Set/Get the map scalars of the representation.
#define PARAVIEW_DEPRECATED_IN_5_13_0(reason)
static void SetBlockColor(vtkSMProxy *proxy, const std::string &blockSelector, Color color)
Set/Get the color of the representation.
static vtkSMProxy * GetLookupTable(vtkSMProxy *proxy)
Returns the lut proxy of this representation in the given view.
static bool IsBlockScalarBarVisible(vtkSMProxy *repr, vtkSMProxy *view, const std::string &blockSelector)
Check scalar bar visibility.
static void SetLastBlocksLookupTable(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, vtkSMProxy *lutProxy)
Used as a memory of what was the last LUT proxy linked to this representation.
static void RemoveBlockColor(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get the color of the representation.
static void RemoveBlocksColors(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get the color of the representation.
static std::vector< double > GetBlocksOpacities(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get the opacity of the representation.
static bool RescaleBlockTransferFunctionToDataRangeOverTime(vtkSMProxy *proxy, const std::string &blockSelector, const char *arrayName, int attributeType)
Rescales the color transfer function and opacity transfer function using the current data range over ...
static void SetBlocksUseSeparateColorMap(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, bool use)
Set/Get if we should use a separate color map.
static std::vector< int > GetBlocksEstimatedNumberOfAnnotationsOnScalarBars(vtkSMProxy *proxy, vtkSMProxy *view, const std::vector< std::string > &blockSelectors)
Get an estimated number of annotation shown on this representation scalar bar.
static int IsBlockScalarBarStickyVisible(vtkSMProxy *proxy, vtkSMProxy *view, const std::string &blockSelector)
Checks if the scalar bar of this representation in view is sticky visible, i.e.
static int GetBlockEstimatedNumberOfAnnotationsOnScalarBar(vtkSMProxy *proxy, vtkSMProxy *view, const std::string &blockSelector)
Get an estimated number of annotation shown on this representation scalar bar.
static int GetBlockUseSeparateColorMap(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get if we should use a separate color map.
static std::vector< int > GetBlocksInterpolateScalarsBeforeMappings(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get the map scalars of the representation.
static vtkSMProxy * GetBlockLookupTable(vtkSMProxy *proxy, const std::string &blockSelector)
Returns the lut proxy of this representation in the given view.
static std::vector< int > GetBlocksMapScalars(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get the map scalars of the representation.
static void RemoveBlockUseSeparateColorMap(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get if we should use a separate color map.
static void RemoveBlockProperties(vtkSMProxy *proxy, const std::string &blockSelector, const std::vector< std::string > &propertyNames)
Reset a block property.
static void SetBlocksMapScalars(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, bool mapScalars)
Set/Get the map scalars of the representation.
static std::vector< vtkTypeBool > SetBlocksScalarColoring(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, const char *arrayName, int attributeType)
Enable/disable scalar coloring using the specified array.
static void RemoveBlocksColorArrays(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set the color array name.
static void ResetBlocksProperties(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, const std::vector< std::string > &propertyNames)
Reset a block property.
void SetSelectedPropertiesTypeToBlocks()
Set/Get the selected properties type.
proxy for a VTK object(s) on a server
static std::vector< vtkTypeBool > RescaleBlocksTransferFunctionToDataRange(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, bool extend=false, bool force=true)
Rescales the color transfer function and opacity transfer function using the current data range...
static vtkSMProxy * GetBlockLookupTable(vtkSMProxy *proxy, vtkSMProxy *view, const std::string &blockSelector)
Returns the lut proxy of this representation in the given view.
static void SetBlocksLookupTable(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, vtkSMProxy *lutProxy)
Set the block lookup table proxy.
static bool SetBlockScalarColoring(vtkSMProxy *proxy, const std::string &blockSelector, const char *arrayName, int attributeType)
Enable/disable scalar coloring using the specified array.
static void RemoveBlockColorArray(vtkSMProxy *proxy, const std::string &blockSelector)
Set the color array name.
static std::vector< vtkTypeBool > SetBlocksScalarBarVisibility(vtkSMProxy *proxy, vtkSMProxy *view, const std::vector< std::string > &blockSelectors, bool visible)
Set the scalar bar visibility.
static std::vector< int > GetBlocksUseSeparateColorMaps(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get if we should use a separate color map.
static void SetBlocksOpacity(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, double opacity)
Set/Get the opacity of the representation.
static void SetBlocksColor(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, Color color)
Set/Get the color of the representation.
static double GetBlockOpacity(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get the opacity of the representation.
static void SetBlocksColorArray(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors, int attributeType, std::string arrayName)
Set the color array name.
static void RemoveBlocksMapScalars(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get the map scalars of the representation.
static void RemoveBlocksUseSeparateColorMaps(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Set/Get if we should use a separate color map.
static std::vector< vtkTypeBool > GetBlocksUsingScalarColoring(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Returns true if scalar coloring is enabled.
static vtkPVArrayInformation * GetBlockArrayInformationForColorArray(vtkSMProxy *proxy, const std::string &blockSelector)
Returns the array information for the data array used for scalar coloring, from input data...
static void RemoveBlockOpacity(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get the opacity of the representation.
static bool SetBlockScalarBarVisibility(vtkSMProxy *proxy, vtkSMProxy *view, const std::string &blockSelector, bool visible)
Set the scalar bar visibility.
static int GetBlockInterpolateScalarsBeforeMapping(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get the map scalars of the representation.
static std::vector< vtkTypeBool > IsBlocksScalarBarVisible(vtkSMProxy *repr, vtkSMProxy *view, const std::vector< std::string > &blockSelectors)
Check scalar bar visibility.
void operator=(const vtkObjectBase &)
static void RemoveBlockInterpolateScalarsBeforeMapping(vtkSMProxy *proxy, const std::string &blockSelector)
Set/Get the map scalars of the representation.
std::array< double, 3 > Color
helper for color map editor handling
static void SetBlockColorArray(vtkSMProxy *proxy, const std::string &blockSelector, int attributeType, std::string arrayName)
Set the color array name.
static bool RescaleBlockTransferFunctionToDataRange(vtkSMProxy *proxy, const std::string &blockSelector, bool extend=false, bool force=true)
Rescales the color transfer function and opacity transfer function using the current data range...
static bool GetBlockUsingScalarColoring(vtkSMProxy *proxy, const std::string &blockSelector)
Returns true if scalar coloring is enabled.
static bool SetBlockScalarColoring(vtkSMProxy *proxy, const std::string &blockSelector, const char *arrayName, int attributeType, int component)
Enable/disable scalar coloring using the specified array.
static bool RescaleBlockTransferFunctionToDataRangeOverTime(vtkSMProxy *proxy, const std::string &blockSelector)
Rescales the color transfer function and opacity transfer function using the current data range over ...
void SetSelectedPropertiesTypeToRepresentation()
Set/Get the selected properties type.
static void SetBlockOpacity(vtkSMProxy *proxy, const std::string &blockSelector, double opacity)
Set/Get the opacity of the representation.
static std::vector< vtkSMProxy * > GetLastBlocksLookupTables(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Used as a memory of what was the last LUT proxy linked to this representation.
static std::vector< vtkTypeBool > RescaleBlocksTransferFunctionToDataRangeOverTime(vtkSMProxy *proxy, const std::vector< std::string > &blockSelectors)
Rescales the color transfer function and opacity transfer function using the current data range over ...