[vtkusers] KeyPress Events / Callbacks / User Interaction

Sebastian Gatzka sebastian.gatzka at stud.tu-darmstadt.de
Mon Mar 15 09:25:19 EDT 2010


Good news! Worked!

How do I had to know this?!?

Thanks!

Am 15.03.2010 14:21, schrieb David Doria:
> On Mon, Mar 15, 2010 at 9:18 AM, Sebastian Gatzka 
> <sebastian.gatzka at stud.tu-darmstadt.de 
> <mailto: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/dd5c1eb3/attachment.htm>


More information about the vtkusers mailing list