Is there color palette in 3D viewer?

Dear rooters,

is it possible to have a color palette in 3D viewer? I mean, the one you would have on the right side of a histogram if you use “z” option.

If it is not easy to have it in 3D viewer, is it possible to embedded it in GUI like a progress bar?

Or do you have any better idea to indicate different colors in a 3D viewer?

Cheers, Jing

Dear Jing,

We don’t have it at the moment … it would be properly implemented as a TGLOverlayElement.

However, quite some time ago Alja did something very similar for ALICE, see class: … ot=AliRoot … ot=AliRoot
and in particular the function:
void AliEveITSModuleStepper::RenderPalette(TEveRGBAPalette* p);

Ideally one would also be able to drag the object around.

If you are brave, you can try implementing this class yourself :slight_smile:
Otherwise, how soon do you need it?


Dear Matevz,

Thank you for the information, I will check it.

Yes, if I have time… :smiley:

There is no hurry. I just want to make sure I have not missed some function which is already there. If there isn’t I will just provide a 2D histogram with palette together with 3D display.

Cheers, Jing

OK … I added it to my todo list, too. Let’s see who gets the time first :wink: