[vtkusers] changing the caption text while it is running, vtkCaptionWidget

David Doria daviddoria+vtk at gmail.com
Tue Feb 16 08:04:26 EST 2010


On Mon, Feb 15, 2010 at 4:28 AM, circass <circass at gmail.com> wrote:
>
> I m using vtkCaptionWidget  for annotation but i want to edit the text when i
> click at the caption part, but it doesnt have a property for that or i
> couldnt find.
>
> is there anyone who knows how can i do that ?
>
> Thanx
> Circass
>

How did you set the caption in the first place?
http://www.vtk.org/Wiki/VTK/Examples/Widgets/Cxx/Caption


vtkSmartPointer<vtkCaptionRepresentation> captionRepresentation =
      vtkSmartPointer<vtkCaptionRepresentation>::New();
  captionRepresentation->GetCaptionActor2D()->SetCaption("Test caption");

Is the problem that you don't know how to get the click event? Or set
the caption?

Thanks,

David



More information about the vtkusers mailing list