pycatia.analysis_interfaces.analysis_color_map¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.analysis_interfaces.analysis_color_map.AnalysisColorMap(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectAnalysisColorMapRepresents the Color Map Object of the post-processing ImageObject.- property discrete_mode: cat_variant¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property DiscreteMode() As CATVariantGets the Discrete mode for the Color MapParameters:oDiscreteModeOutput Boolean for the Discrete Mode True : indicates that Discrete mode is enabled for the color map. False: indicates that Discrete mode is disabled for the color map. This Method Returns E_FAIL if the Parent Image is not uptodate.Example:: analysisColorMap is the ColorMap Object oDiscreteMode = analysisColorMap.DiscreteModeIn this example, oDiscreteMode is the output Discrete Mode foranalysisColorMap.
- Return type:
cat_variant
- property distribution_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property DistributionMode() As SPMDistributionModeGets the Distribution Mode for the Color MapParameters:oDistModeReturns the Distribution Mode (ColorMap type) SPM_LINEAR : For Linear Distribution Mode SPM_HISTOGRAM : For Histogram Distribution Mode SPM_LOG : For Logarithmic Distribution Mode This Method Returns E_FAIL if the Parent Image is not uptodate.Example:: analysisColorMap is the ColorMap Object oDistMode = analysisColorMap.DistributionModeIn this example, oDistMode is the output distribution mode foranalysisColorMap.
- Returns:
enum spm_distribution_mode
- Return type:
int
- get_distribution_value(index_value: int) float ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDistributionValue(long indexValue) As doubleGets the Value for the Distribution of Color MapParameters:indexValueThe index whose Value we get. This integer should be greater than 0and less than NbColors. Else Method Fails.oModeValueReturns the value @param indexValue Returned value will be in CATIAUnits. This Method Returns E_FAIL if the Parent Image is not uptodate.Example:: analysisColorMap is the ColorMap Object Set oModeValue = analysisColorMap.GetDistributionValue (3)In this example, oModeValue is the output value of the Distributionlist at Index 3.
- Parameters:
index_value (int) –
- Return type:
float
- property imposed_max_value: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ImposedMaxValue() As doubleGets the Imposed Maximum value for the Color MapParameters:oMaxValueReturns Imposed Maximum value Returned value will be in CATIAUnits. This Method Returns E_FAIL if the Parent Image is not uptodate.Example:: analysisColorMap is the ColorMap Object oMaxValue = analysisColorMap.ImposedMaxValueIn this example, oMaxValue is the output Imposed Maximum value foranalysisColorMap.
- Return type:
float
- property imposed_min_value: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ImposedMinValue() As doubleGets the Imposed Minimum value for the Color MapParameters:oMinValueReturns imposed minimum value Returned value will be in CATIAUnits. This Method Returns E_FAIL if the Parent Image is not uptodate.Example:: analysisColorMap is the ColorMap Object oMinValue = analysisColorMap.ImposedMinValueIn this example, oMinValue is the output Imposed Minimum value foranalysisColorMap.
- Return type:
float
- property inverse_mode: cat_variant¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property InverseMode() As CATVariantGets the Inverse mode for the Color MapParameters:oInverseModeOutput Boolean for the Inverse Mode True : indicates that Inverse mode is enabled for the color map. False: indicates that Inverse mode is disabled for the color map. This Method Returns E_FAIL if the Parent Image is not uptodate.Example:: analysisColorMap is the ColorMap Object oInverseMode = analysisColorMap.InverseModeIn this example, oInverseMode is the output Inverse Mode foranalysisColorMap.
- Return type:
cat_variant
- property nb_colors: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property NbColors() As longGets the Number of colors for the Color MapParameters:oNbColorsreturns number of colors as output from the color map. This MethodReturns E_FAIL if the Parent Image is not uptodate.Example:: analysisColorMap is the ColorMap Object oNbColors = analysisColorMap.NbColorsIn this example, oNbColors is the output Number of colors foranalysisColorMap.
- Return type:
int
- set_distribution_value(index_value: int, i_mode_value: float, i_smoothening_flag: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetDistributionValue(long indexValue,double iModeValue,CATVariant iSmootheningFlag)Sets the Value for the Distribution of Color MapParameters:indexValueThe index whose Value will be set. This integer should be greaterthan 0 and less than NbColors. Else Method Fails.iModeValueThe Value to be set. This value should be in betweenComputed/Imposed Min/Max values. Else Method Fails. In addition if @paramiSmootheningFlag is False, this value should be in between the immediate lowerand upper values. Else Method Fails. Value has to be provided in CATIA Units.iSmootheningFlagif True: Does either upper or lower smoothening of values. ifFalse: Does not smoothen values. But sets only the given index value. ThisMethod Returns E_FAIL if Color Map is Discrete.Example:: analysisColorMap is the ColorMap Object Example 1:Call analysisColorMap.SetDistributionValue(3, 3e+09,True)This sets the value 3e+09 at 3rd Index of the list. It will smoothenthe distribution valuesfor the color-map object analysisColorMap.Should be in between Computed/Imposed Min/Max values.Example 2:Call analysisColorMap.SetDistributionValue(3, 10e+09,False)This sets the value 10e+09 at 3rd Index of the list. It will notsmoothen the distributionfor the color-map object analysisColorMap.10e+09 should be greater than Index 2 value and lesser than Index 4value.Should be in between Computed/Imposed Min/Max values.
- Parameters:
index_value (int) –
i_mode_value (float) –
i_smoothening_flag (cat_variant) –
- Return type:
None
- property smooth_mode: cat_variant¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property SmoothMode() As CATVariantGets the Smooth mode for the Color MapParameters:oSmoothModeOutput Boolean for the Smooth Mode True : indicates that Smooth mode is enabled for the color map. False: indicates that Smooth mode is disabled for the color map. This Method Returns E_FAIL if the Parent Image is not uptodate.Example:: analysisColorMap is the ColorMap Object oSmoothMode = analysisColorMap.SmoothModeIn this example, oSmoothMode is the output Smooth Mode foranalysisColorMap.
- Return type:
cat_variant
- update() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Update()Updates the visualization of the color map. This method should be calledafter one or all previous PUT methods are called on Color Map.
- Return type:
None