[vtkusers] Tcl -> C++
David Cole
david.cole at kitware.com
Tue Oct 31 07:38:48 EST 2006
On 10/31/06, ricca nicola <riccanicola at hotmail.com> wrote:
> set pc [titleActor \
> GetPositionCoordinate]
> $pc SetCoordinateSystemToNormalized-
> Viewport
> $pc SetValue 0.5 0.92
>
> some one can give me the translation ? or a hint ?
Assuming titleActor is a valid, non-NULL vtkActor2D pointer:
vtkCoordinate *pc = titleActor->GetPositionCoordinate();
pc->SetCoordinateSystemToNormalizedViewport();
pc->SetValue(0.5, 0.92);
HTH,
David
More information about the vtkusers
mailing list