[vtkusers] i cant see the arrow and line part of vtkCaptionWidget, just the caption part appears...

circass circass at gmail.com
Mon Feb 15 08:13:06 EST 2010


Now my widget's arrow part is not showing itself. it is in a different
dimension or something like that. when i zoomout i can see the arrow part
and the line but when i want to see it closer it s disappearing. 
Is there any body who knows what is the problem or what can be the
problem...
here is my code.

vtkCaptionWidget *m_capWidget = vtkCaptionWidget::New();
vtkCaptionActor2D *Dactor = vtkCaptionActor2D::New();
Dactor->SetCaption("!!!Test Warning!!!");
m_capWidget->SetCaptionActor2D(Dactor);
m_capWidget->SetSelectable(321);
//m_capWidget->PlaceWidget
m_absWidget = m_capWidget;

m_absWidget->CreateDefaultRepresentation();
m_absWidget->AddObserver(vtkCommand::StartInteractionEvent,
StartInteractionCallBack::New());
m_absWidget->AddObserver(vtkCommand::EndInteractionEvent,
EndInteractionCallBack::New());


widget is turning on when mouse enters the renderwindow. 

so the "m_absWidget->On();" part is in the mouse enter event function.

Thanx 
Circass
-- 
View this message in context: http://old.nabble.com/changing-the-caption-text-while-it-is-running%2C-vtkCaptionWidget-tp27591159p27593610.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list