[vtkusers] Casting vtkAxisActor2D* to vtkProp*
Leonardo M. Ramé
l.rame at griensu.com
Wed Oct 20 10:49:14 EDT 2010
Hi, I need add a vtkActor2D* I'm getting with
distanceWidget->GetRepresentation())->GetAxis() to a vtkProp*
to add it to a vtkPropPicker using this code:
picker->AddPickList(
vtkDistanceRepresentation2D::SafeDownCast(
distanceWidget->GetRepresentation())->GetAxis()
)
);
If I use this, I get a "cannot dynamic_cast..." error.
lAxisActor = vtkDistanceRepresentation2D::SafeDownCast(
distanceWidget->GetRepresentation()
)->GetAxis();
picker->AddPickList(
dynamic_cast<vtkProp *>( lAxisActor )
);
Thanks in advance.
--
Leonardo M. Ramé
http://leonardorame.blogspot.com
More information about the vtkusers
mailing list