Working with VTK-9.3 C++.
I just want to add a text label to a vtkButtonWidget 2D button. I assume the general approach would be to add text to the associated vtkTexturedButtonWidgetRepresentation2D object - but I cannot find from documentation how to do that. Seems like it should be simple, but how?
Thanks!
Hello,
I believe you can create a vtkTexturedButtonWidgetRepresentation2D
object defining whatever looks you want the button to have and then call SetRepresentation(vtkButtonRepresentation*)
on your vtkButtonWidget
object passing the pointer to the former.
best,
PC