[vtkusers] SetLineWidth problem
adrien marion
sinse49 at hotmail.com
Thu Feb 23 12:04:18 EST 2006
Hi everybody,
I ha ve a problem with the function in object .
This is ok :
vtkActor *actorCo=(vtkActor*)
collCo->GetItemAsObject(index+2);
vtkActor *actorAx=(vtkActor*) collAx->GetItemAsObject(index+2);
vtkActor *actorSa=(vtkActor*) collSa->GetItemAsObject(index+2);
actorCo->GetProperty()->SetLineWidth(_pContour2D[index].GetWidth());
actorAx->GetProperty()->SetLineWidth(_pContour2D[index].GetWidth());
actorSa->GetProperty()->SetLineWidth(_pContour2D[index].GetWidth());
but that isn't:
vtkActor *actor=(vtkActor*) coll->GetItemAsObject(index+2);
actor->GetProperty()->SetLineWidth(_pContour2D[index].GetWidth());
Can somebody explain me? I don't understand why?
Than you
Adrien
_________________________________________________________________
Apprenez à lutter contre le spam !
http://go.msn.fr/10-channel/80-security/spam/default.asp
More information about the vtkusers
mailing list