How to use volume histogram widget in my module


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 ?


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: