12 #ifndef vtkSMColorMapEditorHelper_h 13 #define vtkSMColorMapEditorHelper_h 50 RepresentationInherited = 0x1,
58 SetAndRepresentationInherited = 0x5,
60 SetAndBlockInherited = 0x6,
62 SetAndMixedInherited = 0x7,
77 vtkSetClampMacro(SelectedPropertiesType,
int, SelectedPropertiesTypes::Representation,
78 SelectedPropertiesTypes::Blocks);
81 this->SetSelectedPropertiesType(SelectedPropertiesTypes::Representation);
85 this->SetSelectedPropertiesType(SelectedPropertiesTypes::Blocks);
87 vtkGetMacro(SelectedPropertiesType,
int);
108 static std::pair<std::string, BlockPropertyState> HasBlockProperty(
109 vtkSMProxy* proxy,
const std::string& blockSelector,
const std::string& propertyName);
110 static std::pair<std::string, BlockPropertyState> GetBlockPropertyStateFromBlockPropertyStates(
111 const std::vector<std::pair<std::string, BlockPropertyState>>& states);
112 static std::pair<std::string, BlockPropertyState> HasBlockProperty(
vtkSMProxy* proxy,
113 const std::vector<std::string>& blockSelectors,
const std::string& propertyName);
114 static std::pair<std::string, BlockPropertyState> HasBlockProperties(
vtkSMProxy* proxy,
115 const std::string& blockSelector,
const std::vector<std::string>& propertyNames);
116 static std::pair<std::string, BlockPropertyState> HasBlocksProperties(
vtkSMProxy* proxy,
117 const std::vector<std::string>& blockSelectors,
const std::vector<std::string>& propertyNames);
123 static std::vector<std::string> GetSelectedBlockSelectors(
vtkSMProxy* proxy);
128 static std::vector<std::string> GetColorArraysBlockSelectors(
vtkSMProxy* proxy);
135 static std::vector<vtkSMProxy*> GetBlocksLookupTables(
136 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
142 static std::vector<vtkSMProxy*> GetBlocksLookupTables(
144 std::vector<vtkSMProxy*> GetSelectedLookupTables(
vtkSMProxy* proxy);
154 static bool GetUsingScalarColoring(
vtkSMProxy* proxy);
160 static std::vector<vtkTypeBool> GetBlocksUsingScalarColoring(
161 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
162 static bool GetAnyBlockUsingScalarColoring(
vtkSMProxy* proxy);
163 std::vector<vtkTypeBool> GetSelectedUsingScalarColorings(
vtkSMProxy* proxy);
164 bool GetAnySelectedUsingScalarColoring(
vtkSMProxy* proxy);
172 static void SetupLookupTable(
vtkSMProxy* proxy);
173 static void SetupBlocksLookupTables(
vtkSMProxy* proxy);
185 static std::vector<vtkTypeBool> UpdateBlocksScalarBarRange(
196 static bool SetScalarColoring(
vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
198 vtkSMProxy* proxy,
const std::string& blockSelector,
const char* arrayName,
int attributeType)
201 proxy, { blockSelector }, arrayName, attributeType)
204 static std::vector<vtkTypeBool> SetBlocksScalarColoring(
vtkSMProxy* proxy,
205 const std::vector<std::string>& blockSelectors,
const char* arrayName,
int attributeType);
206 std::vector<vtkTypeBool> SetSelectedScalarColoring(
207 vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
219 static bool SetScalarColoring(
222 const char* arrayName,
int attributeType,
int component)
225 proxy, { blockSelector }, arrayName, attributeType, component)
228 static std::vector<vtkTypeBool> SetBlocksScalarColoring(
vtkSMProxy* proxy,
229 const std::vector<std::string>& blockSelectors,
const char* arrayName,
int attributeType,
231 std::vector<vtkTypeBool> SetSelectedScalarColoring(
232 vtkSMProxy* proxy,
const char* arrayName,
int attributeType,
int component);
244 static bool RescaleTransferFunctionToDataRange(
245 vtkSMProxy* proxy,
bool extend =
false,
bool force =
true);
247 vtkSMProxy* proxy,
const std::string& blockSelector,
bool extend =
false,
bool force =
true)
250 proxy, { blockSelector }, extend, force)
253 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRange(
vtkSMProxy* proxy,
254 const std::vector<std::string>& blockSelectors,
bool extend =
false,
bool force =
true);
255 std::vector<vtkTypeBool> RescaleSelectedTransferFunctionToDataRange(
256 vtkSMProxy* proxy,
bool extend =
false,
bool force =
true);
270 static bool RescaleTransferFunctionToDataRange(
vtkSMProxy* proxy,
const char* arrayName,
271 int attributeType,
bool extend =
false,
bool force =
true);
273 const std::string& blockSelector,
const char* arrayName,
int attributeType,
bool extend =
false,
277 proxy, { blockSelector }, arrayName, attributeType, extend, force)
280 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRange(
vtkSMProxy* proxy,
281 const std::vector<std::string>& blockSelectors,
const char* arrayName,
int attributeType,
282 bool extend =
false,
bool force =
true);
283 std::vector<vtkTypeBool> RescaleSelectedTransferFunctionToDataRange(
vtkSMProxy* proxy,
284 const char* arrayName,
int attributeType,
bool extend =
false,
bool force =
true);
292 static bool RescaleTransferFunctionToDataRangeOverTime(
vtkSMProxy* proxy);
294 vtkSMProxy* proxy,
const std::string& blockSelector)
297 proxy, { blockSelector })
300 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRangeOverTime(
301 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
302 std::vector<vtkTypeBool> RescaleSelectedTransferFunctionToDataRangeOverTime(
vtkSMProxy* proxy);
312 static bool RescaleTransferFunctionToDataRangeOverTime(
313 vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
315 vtkSMProxy* proxy,
const std::string& blockSelector,
const char* arrayName,
int attributeType)
318 proxy, { blockSelector }, arrayName, attributeType)
321 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRangeOverTime(
322 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
const char* arrayName,
324 std::vector<vtkTypeBool> RescaleSelectedTransferFunctionToDataRangeOverTime(
325 vtkSMProxy* proxy,
const char* arrayName,
int attributeType);
334 static bool RescaleTransferFunctionToVisibleRange(
348 proxy, view, { blockSelector }, visible)
351 static std::vector<vtkTypeBool> SetBlocksScalarBarVisibility(
vtkSMProxy* proxy,
vtkSMProxy* view,
352 const std::vector<std::string>& blockSelectors,
bool visible);
353 std::vector<vtkTypeBool> SetSelectedScalarBarVisibility(
381 static std::vector<vtkTypeBool> IsBlocksScalarBarVisible(
392 vtkSMProxy* proxy,
bool checkRepresentedData =
true);
394 vtkSMProxy* proxy,
const std::string& blockSelector)
397 proxy, { blockSelector })
400 static std::vector<vtkPVArrayInformation*> GetBlocksArrayInformationForColorArray(
401 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
409 static std::string GetDecoratedArrayName(
vtkSMProxy* proxy,
const std::string& arrayName);
411 vtkSMProxy* proxy,
const std::string& blockSelector,
const std::string& arrayName)
414 proxy, { blockSelector }, arrayName)
417 static std::vector<std::string> GetBlocksDecoratedArrayNames(
vtkSMProxy* proxy,
418 const std::vector<std::string>& blockSelectors,
const std::string& arrayName);
427 vtkSMProxy* proxy,
double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
430 vtkSMProxy* proxy,
const std::string& blockSelector,
double uncertaintyAllowed = 1e-6,
431 double fraction = 1e-3,
bool force =
false)
434 proxy, { blockSelector }, uncertaintyAllowed, fraction, force)
437 static std::vector<vtkPVProminentValuesInformation*>
438 GetBlocksProminentValuesInformationForColorArray(
vtkSMProxy* proxy,
439 const std::vector<std::string>& blockSelectors,
double uncertaintyAllowed = 1e-6,
440 double fraction = 1e-3,
bool force =
false);
454 proxy, view, { blockSelector })
457 static std::vector<int> GetBlocksEstimatedNumberOfAnnotationsOnScalarBars(
459 std::vector<int> GetSelectedEstimatedNumberOfAnnotationsOnScalarBars(
481 static std::vector<int> IsBlocksScalarBarStickyVisible(
485 using Color = std::array<double, 3>;
492 static bool IsColorValid(
Color color);
498 static void SetBlocksColor(
504 static void RemoveBlocksColors(
vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
511 static std::vector<Color> GetBlocksColors(
512 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
513 std::vector<Color> GetSelectedColors(
vtkSMProxy* proxy);
532 static bool IsColorArrayValid(
const ColorArray& array);
533 static std::vector<ColorArray> GetBlocksColorArrays(
534 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
543 static std::map<ColorArray, std::vector<std::string>> GetCommonColorArraysBlockSelectors(
544 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
545 std::vector<ColorArray> GetSelectedColorArrays(
vtkSMProxy* proxy);
563 static bool IsUseSeparateColorMapValid(
int useSeparateColorMap);
564 static void SetUseSeparateColorMap(
vtkSMProxy* proxy,
bool use);
566 vtkSMProxy* proxy,
const std::string& blockSelector,
bool use)
570 static void SetBlocksUseSeparateColorMap(
571 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
bool use);
576 static void RemoveBlocksUseSeparateColorMaps(
577 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
578 void SetSelectedUseSeparateColorMap(
vtkSMProxy* proxy,
bool use);
579 static bool GetUseSeparateColorMap(
vtkSMProxy* proxy);
585 static std::vector<int> GetBlocksUseSeparateColorMaps(
586 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
587 std::vector<int> GetSelectedUseSeparateColorMaps(
vtkSMProxy* proxy);
588 bool GetAnySelectedUseSeparateColorMap(
vtkSMProxy* proxy);
597 static bool IsMapScalarsValid(
int mapScalars);
598 static void SetMapScalars(
vtkSMProxy* proxy,
bool mapScalars);
600 vtkSMProxy* proxy,
const std::string& blockSelector,
bool mapScalars)
604 static void SetBlocksMapScalars(
605 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
bool mapScalars);
610 static void RemoveBlocksMapScalars(
611 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
612 void SetSelectedMapScalars(
vtkSMProxy* proxy,
bool mapScalars);
618 static std::vector<int> GetBlocksMapScalars(
619 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
620 std::vector<int> GetSelectedMapScalars(
vtkSMProxy* proxy);
621 bool GetAnySelectedMapScalars(
vtkSMProxy* proxy);
630 static bool IsInterpolateScalarsBeforeMappingValid(
int interpolate);
631 static void SetInterpolateScalarsBeforeMapping(
vtkSMProxy* proxy,
bool interpolate);
633 vtkSMProxy* proxy,
const std::string& blockSelector,
bool interpolate)
636 proxy, { blockSelector }, interpolate);
638 static void SetBlocksInterpolateScalarsBeforeMapping(
639 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
bool interpolate);
641 vtkSMProxy* proxy,
const std::string& blockSelector)
644 proxy, { blockSelector });
646 static void RemoveBlocksInterpolateScalarsBeforeMappings(
647 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
648 void SetSelectedInterpolateScalarsBeforeMapping(
vtkSMProxy* proxy,
bool interpolate);
649 static bool GetInterpolateScalarsBeforeMapping(
vtkSMProxy* proxy);
651 vtkSMProxy* proxy,
const std::string& blockSelector)
654 proxy, { blockSelector })
657 static std::vector<int> GetBlocksInterpolateScalarsBeforeMappings(
658 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
659 std::vector<int> GetSelectedInterpolateScalarsBeforeMappings(
vtkSMProxy* proxy);
660 bool GetAnySelectedInterpolateScalarsBeforeMapping(
vtkSMProxy* proxy);
669 static bool IsOpacityValid(
double opacity);
670 static void SetOpacity(
vtkSMProxy* proxy,
double opacity);
675 static void SetBlocksOpacity(
676 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
double opacity);
681 static void RemoveBlocksOpacities(
682 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
683 void SetSelectedOpacity(
vtkSMProxy* proxy,
double opacity);
689 static std::vector<double> GetBlocksOpacities(
690 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
691 std::vector<double> GetSelectedOpacities(
vtkSMProxy* proxy);
699 vtkSMProxy* proxy,
const std::string& blockSelector,
const std::string& propertyName)
704 const std::vector<std::string>& propertyNames)
709 const std::string& propertyName)
713 static void ResetBlocksProperties(
vtkSMProxy* proxy,
714 const std::vector<std::string>& blockSelectors,
const std::vector<std::string>& propertyNames);
726 static bool RescaleTransferFunctionToDataRange(
733 proxy, { blockSelector }, { info }, extend, force)
736 static std::vector<vtkTypeBool> RescaleBlocksTransferFunctionToDataRange(
vtkSMProxy* proxy,
737 const std::vector<std::string>& blockSelectors, std::vector<vtkPVArrayInformation*> infos,
738 bool extend =
false,
bool force =
true);
745 static void SetColorArray(
vtkSMProxy* proxy,
int attributeType, std::string arrayName);
747 vtkSMProxy* proxy,
const std::string& blockSelector,
int attributeType, std::string arrayName)
750 proxy, { blockSelector }, attributeType, arrayName);
752 static void SetBlocksColorArray(
vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors,
753 int attributeType, std::string arrayName);
758 static void RemoveBlocksColorArrays(
759 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
776 static void SetBlocksLookupTable(
782 static void RemoveBlocksLookupTables(
783 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
789 static bool SetScalarColoringInternal(
790 vtkSMProxy* proxy,
const char* arrayName,
int attributeType,
bool useComponent,
int component);
791 static std::vector<vtkTypeBool> SetBlocksScalarColoringInternal(
vtkSMProxy* proxy,
792 const std::vector<std::string>& blockSelectors,
const char* arrayName,
int attributeType,
793 bool useComponent,
int component);
794 std::vector<vtkTypeBool> SetSelectedScalarColoringInternal(
795 vtkSMProxy* proxy,
const char* arrayName,
int attributeType,
bool useComponent,
int component);
810 static std::vector<vtkSMProxy*> GetLastBlocksLookupTables(
811 vtkSMProxy* proxy,
const std::vector<std::string>& blockSelectors);
817 static void SetLastBlocksLookupTable(
827 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)
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.
static void SetBlockColor(vtkSMProxy *proxy, const std::string &blockSelector, Color color)
Set/Get the color of the representation.
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)
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)
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 ...