MantisBT - ParaView
View Issue Details
0014943ParaView(No Category)public2014-08-15 15:322015-01-02 10:43
Alan Scott 
Dan Lipsa 
normalminorhave not tried
closedfixed 
git-master 
4.34.3 
Sandia
map-scalars-14943
incorrect functionality
0014943: Allow uints, floats and doubles to be used by un - Map Scalars
Please allow the "Map Scalars" functionality, when unselected, to use uint32's, floats and doubles. Some formats, such as Exodus, don't even allow non floating point variables. Furthermore, the only output that the calculator puts out is doubles!

You should be able to test this using disk_out_ref.exo, variable V. Be sure to use the calculator to scale it to 0.0 to 1.0.

VTK commits
===========
commit 2d61deaa1bcf9f9fd6806b1c40d2f23bdad8dfbd
Author: Dan Lipsa <dan.lipsa@kitware.com>
Date: Mon Dec 1 13:50:40 2014 -0500

    Add a test for VTK_COLOR_MODE_DIRECT_SCALARS
    
    Change-Id: I9ddbc050bd4cdb0c9dafaed55dd427b84f8a551c

commit 00de9a942ff74e797fbe4cd8c67307c8065cdade
Author: Dan Lipsa <dan.lipsa@kitware.com>
Date: Thu Nov 20 13:35:35 2014 -0500

    Add VTK_COLOR_MODE_DIRECT_SCALARS. See vtkScalarsToColors::MapScalars.
    
    Change-Id: I0fa7d8dde623b19204397d259e0c63f7d5bc4b66

ParaView commits
================
commit 534490e6642fb4764bd35bfdea53178fd750c855
Author: Dan Lipsa <dan.lipsa@kitware.com>
Date: Mon Nov 24 14:05:03 2014 -0500

    vtkGeometryRepresentation::SetMapScalars(0) maps all scalar types.
    
    Change-Id: Ie1e6e1b16c00377aecce7b931785382e8cf4bd9b
No tags attached.
Issue History
2014-08-15 15:32Alan ScottNew Issue
2014-08-15 15:37Alan ScottTarget Version => 4.3
2014-11-04 10:03Utkarsh AyachitTarget Version4.3 => bug_fix
2014-11-14 11:15Utkarsh AyachitAssigned To => Dan Lipsa
2014-11-14 11:24Utkarsh AyachitNote Added: 0033810
2014-11-14 22:56Utkarsh AyachitTarget Versionbug_fix => 4.3
2014-11-18 14:07Dan LipsaStatusbacklog => active development
2014-12-02 16:40Dan LipsaTopic Name => map-scalars-14943
2014-12-02 16:40Dan LipsaAdditional Information Updatedbug_revision_view_page.php?rev_id=923#r923
2014-12-03 11:27Dan LipsaAdditional Information Updatedbug_revision_view_page.php?rev_id=926#r926
2014-12-05 10:13Dan LipsaStatusactive development => gatekeeper review
2014-12-08 08:03Utkarsh AyachitFixed in Version => git-master
2014-12-08 08:04Utkarsh AyachitStatusgatekeeper review => customer review
2014-12-08 08:04Utkarsh AyachitNote Added: 0033907
2014-12-10 15:56Alan ScottNote Added: 0033928
2014-12-10 15:56Alan ScottStatuscustomer review => closed
2014-12-10 15:56Alan ScottResolutionopen => fixed
2015-01-02 10:43Utkarsh AyachitFixed in Versiongit-master => 4.3

Notes
(0033810)
Utkarsh Ayachit   
2014-11-14 11:24   
+ Add a new VTK_COLOR_MODE_DIRECT_SCALARS in addition to VTK_COLOR_MODE_DEFAULT, VTK_COLOR_MODE_MAP_SCALARS.

+ vtkScalarsToColors::MapScalars() (and maybe other places too) should respect this new mode to directly color using data arrays.

+ Update ParaView to pick this new mode instead of VTK_COLOR_MODE_DEFAULT when MapScalars checkbox is unchecked.
(0033907)
Utkarsh Ayachit   
2014-12-08 08:04   
Topics merged into master (v4.2.0-231-g445a425):
        0015171_camera_front_of_plane_widget
        0015172_automatic_annotations
(VTK) exodus-15127
        fix-log-mark-labels
        fix-osx-fileinfo
        fix_pvscalarabar_warning
        genericio_reader_optimization
        include-missing-header
        linking-with-kits-enabled
(VTK) map-scalars-14943
        pvweb-fix-extract-block-bug
        pvweb-fix-incorrect-filter-name
        qt5-find-components
(0033928)
Alan Scott   
2014-12-10 15:56   
Excellent.

Tested with disk_out_ref.exo. Calculator. Clip. In the calculator, used formula (Temp-290)*(1/650)*iHat+(Temp-290)*(1/650)*jHat+(Temp-290)*(1/650)*kHat. I then messed around changing (Temp-290)*(1/650) to 1.

Tested remote server, Linux, master.