MantisBT - ParaView
View Issue Details
0014793ParaView(No Category)public2014-06-09 18:212014-08-29 11:00
Scott Wittenburg 
Scott Wittenburg 
normalminorhave not tried
closedfixed 
git-master 
4.24.2 
TBD
fix-transferfunction-applycolormap-text
incorrect functionality
0014793: Fix typo in color transfer function apply color map
Try to assign a colormap from xml text on a color transfer function. The function fails to make the assignment and returns false.

Get a color transfer function from a representation in Python, call it "lut", then:

>>> lut
(vtkSMTransferFunctionProxy)0x5a03050
>>> colorMapText
'<ColorMap space="HSV" name="Blue to Red Rainbow"><Point x="0" o="0" r="0" g="0" b="1"/><Point x="1" o="0" r="1" g="0" b="0"/><NaN r="0.498039" g="0.498039" b="0.498039"/></ColorMap>'
>>> vtkSMTransferFunctionProxy.ApplyColorMap(lut, colorMapText)
False
>>>
No tags attached.
Issue History
2014-06-09 18:21Scott WittenburgNew Issue
2014-06-09 18:21Scott WittenburgAssigned To => Scott Wittenburg
2014-06-09 18:23Scott WittenburgTopic Name => fix-transferfunction-applycolormap-text
2014-06-09 18:23Scott WittenburgNote Added: 0032812
2014-06-09 18:23Scott WittenburgStatusbacklog => gatekeeper review
2014-06-09 18:23Scott WittenburgResolutionopen => fixed
2014-06-10 07:37Utkarsh AyachitFixed in Version => git-master
2014-06-10 07:38Utkarsh AyachitStatusgatekeeper review => customer review
2014-06-10 07:38Utkarsh AyachitNote Added: 0032818
2014-06-10 21:15Alan ScottNote Added: 0032826
2014-06-10 21:15Alan ScottStatuscustomer review => closed
2014-06-17 09:21Utkarsh AyachitTarget Version => 4.2
2014-08-29 11:00Utkarsh AyachitFixed in Versiongit-master => 4.2

Notes
(0032812)
Scott Wittenburg   
2014-06-09 18:23   
Fixed by correcting incorrect "if" statement when parsing the text function argument as xml.
(0032818)
Utkarsh Ayachit   
2014-06-10 07:38   
SUMMARY
---------------------------------------------
Topics merged into master:
        14762_save_color_legend_settings
        14787_fix_matplotlib_xml
        cleaning_point_sprite
        fix-transferfunction-applycolormap-text
        static-plugin-loading
(VTK) use-broadcast-rmi-trigger
        use-gatherv-in-collect-information
(0032826)
Alan Scott   
2014-06-10 21:15   
Closing untested.