[vtkusers] KeyPress Events / Callbacks / User Interaction
David Doria
daviddoria+vtk at gmail.com
Mon Mar 15 09:21:47 EDT 2010
On Mon, Mar 15, 2010 at 9:18 AM, Sebastian Gatzka <
sebastian.gatzka at stud.tu-darmstadt.de> wrote:
> Check. Everything is allready there.
>
> In main:
>
> KeyPressInteractorStyle *kpis = KeyPressInteractorStyle::New();
> kpis->planeWidget = iPlane;
>
> while iPlane is the interactivePlaneWidget2.
>
> And the class looks like the one below, but still the line
>
> vtkImplicitPlaneRepresentation* rep = *planeWidget*->GetRepresentation();
>
> can't be interpreted:
>
> error C2440: 'initializing' : cannot convert from 'vtkWidgetRepresentation
> *' to 'vtkImplicitPlaneRepresentation *'
>
>
That looks like you'd need to do:
vtkImplicitPlaneRepresentation* rep
= static_cast<vtkImplicitPlaneRepresentation*>(*planeWidget*
->GetRepresentation());
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100315/731b93dc/attachment.htm>
More information about the vtkusers
mailing list