Interactive wordcloud

Hi
I’m trying to create an interactive wordcloud, for eg. clicking the words prints the word or prints all the sentences to which they belong.

Is there any way I could achieve this?
Thank you

You’d likely have to us an interactor callback and have an actor for each word, it’s pretty simple to determine which actor is clicked on (and then update the renderer to change the color of the word if you want). but the callback function would need to do most of the heavy lifting for keeping track of the words picked and doing the sentences.

VTK has an inbuilt picking function (if you press 'p) that can be toggled on/off. There are also ‘KeyPress’ events you can use to listen for certain keys. Try looking at the sourcecode for how Vedo does callbacks, it covers the options pretty well.

Thank you… wlll try that

Hi…
is there a way i can place words without overlapping