lanl / 4DGB

4D Genome Browser project
1 stars 2 forks source link

Add colorbar scale to GTKGeometryCanvas #27

Closed dhrogers closed 2 years ago

dhrogers commented 3 years ago

It looks like they've made some progress on this with the latest release (r131)

 https://github.com/mrdoob/three.js/blob/master/examples/jsm/math/Lut.js
dhrogers commented 3 years ago

This request should be to create a general scalar bar widget that can be updated with an external colormap, and with variable information. The widget should be something that can display as an overlay layer in somthing like the GeometryCanvas, and to the side of the contact map. The widget should have normal layout controls (position, width, height, padding, etc.) and should display a name, min and max values for the variable it is showing. That information can come from the colormap, or through API calls to to the scalar bar.

dhrogers commented 2 years ago

Created ScalarBarCanvas class that implements a basic scalar bar. This can be enhanced moving forward.