[vtkusers] vtkInteractorStyleTrackballActor
Maarten Beek
beekmaarten at yahoo.com
Fri Nov 22 14:09:16 EST 2013
Hi all,
vtkInteractorStyleTrackballActor is working fine, but as soon as I transform the actor using:
vtkTransform* usertransform = vtkTransform::SafeDownCast(m_pModel->GetUserTransform());
vtkSmartPointer<vtkTransform> transform = vtkSmartPointer<vtkTransform>::New();
transform->Translate(0.0, 0.0, -0.5);
transform->Scale(1/scale, 1/scale, 1/scale);
transform->Translate(-center[0], -center[1], -center[2]);
usertransform->PostMultiply();
usertransform->Concatenate(transform);
I cannot move the actor anymore.
I checked with the debugger and I seem to get a non-NULL for the this->InteractionProp variable (so I think I do pick the actor).
I also noticed that in vtkInteractorStyleTrackballActor::Prop3DTransform() there is a line that I don't really understand:
newTransform->GetMatrix(prop3D->GetUserMatrix()); (note: twice GET!)
Any suggestions?
Thanks - Maarten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131122/b97b60f1/attachment.htm>
More information about the vtkusers
mailing list