I was wondering if it is possible to - easly - modify TASImage display from the script/command line as with the TPaletteEditor. I know I can modify palette itself, but it would be much more convenient to invoke specific TPaletteEditor functions, like setting palette histogram boundaries, changing number of ramps, changing palette to logarithmic, etc. Are there any functions that I can call to do that?
If not, perhaps they could be added? It seems like everything is there, only need to provide a public function of some sort
It works nice, and amazingly it works in PyRoot out of the box. However, for release it would require some additional public method.
Except making protected methods public, I had to make TASPaletteEditor::fPalette public, for I cannot see any other way to invoke same behaviour as Apply button (no method to call Apply) than to call TASImage::SetPalette(TASPaletteEditor:fPalette). Also, I have not yet figured how to set histogram “blue” lines of the editor.
Would it be possible for you to simply make TASPaletteEditor methods public and add method to either call Apply or GetPalette() returning fPalette? This would make a first, huge step towards easy palette editing and it seems like 5 minutes of work
Later, it would be nice not to have to really open TASPaletteEditor window on the screen to operate on it and to have some methods to move the blue lines…
Anyhow, thanks very much for the idea and solution.