AW: [vtkusers] Manipulte a vtkActor through its vtkMatrix4x4
Boettcher, Dr. Peter
Boettcher at kleintierklinik.uni-leipzig.de
Tue Feb 3 11:30:07 EST 2004
________________________________
Von: Simon DROUIN [mailto:sdrouin at bic.mni.mcgill.ca]
Gesendet: Di 03.02.2004 14:37
An: Boettcher, Dr. Peter
Cc: vtkusers at vtk.org
Betreff: Re: [vtkusers] Manipulte a vtkActor through its vtkMatrix4x4
Hi Simon,
unfortunately that is what tried (before I used the method I told you before) - but without any success. My code is as follows:
InitVTKSendor{
matrix = vtkMatrix4x4::New();
actor = vtkActor::New();
actor->SetUserMatrix(matrix);
ren1->AddActor(actor)
renWin->Render();
}
UpdataVTKSensor{
actor->GetUserMatrix()->SetElement(i,j,z); ....
actor->GetUserMatrix()->Modified();
renWin->Render()
}
The first Render() produces a nice image. The Update-procedure results in no change whatever I use as matrix->SetElement() inputs.
Regards, Peter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040203/b06d7520/attachment.htm>
More information about the vtkusers
mailing list