How to use volume histogram widget in my module

Hello,

I want to add the “Histogram” in my module histoslicer

I find the module UI use a " ctkCollapsibleGroupBox" and inside a " ctkTransfertFunctionView" but it’s does not work in my module.

Can you help me, how can i add this same histogram in my own module ?

Thanks

We need more information about this part in order to help.

For starters, I’d suggest taking a look at how the transfer function view is used in the widget in Slicer: https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/Volumes/Widgets/qSlicerScalarVolumeDisplayWidget.cxx#L69-L70

2 Likes