[IGSTK-Developers] View class refactoring
Luis Ibanez
luis.ibanez at kitware.com
Fri Aug 17 12:39:16 EDT 2007
Hi Torleif,
About the last problem that you mentioned in your email:
When you get values from the picker of a view2D, the depth value
may correspond to the position in space of the object that you
are clicking on.
E.g. if there is a sphere rendered in space, you will get the
coordinates of the sphere surface.
Can you verify if this is what is happening in your case ?
Thanks
Luis
-----------------------
Torleif Sandnes wrote:
>>
>> You can add more than one widget to your application. That shouldn't
>> cause spatialobject
>> rendering to disappear. The main constraint is only a single view
>> object can be attached to a
>> widget. This is similar to the way you are doing it above. Having
>> said that, the rendered objects
>> could disappear if you set to the object a transform with a very
>> short expiration time.
>
>
> I didn't set any transforms at all, but I understand that this could be
> the problem.
> Maybe the default transform of the spatialobject expires.
> Strange thing is it only occurs when starting more than one view. (and
> it did not occur with the oldt igstkQView2D class).
>
> Also, I add object to the 3D view without setting transforms too, and
> they remain.
>
> I will try to add some transforms to my objects with really long
> expiration times
>
> Did you have any input on how to get the interactor of a view/widget?
> If an IGSTK class should use vtkImagePlaneWidget in some way, how
> should it get hold of the vtkRenderWindowinteractor of a view?
>
> I have come across one more issue regarding mouse events, but have not
> delved deep into the problem yet:
> When i click on a 2D view and listen for transforms from this view, I
> sometimes get invalid values for the position along the z axis for that
> view. (Which should be constant all over the view). That is, for a view
> that is set at z=84.4 I sometimes get (23.4, 65.3, -835.8).
>
> Regards,
>
> Torleif
>
> _______________________________________________
> IGSTK-Developers mailing list
> IGSTK-Developers at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers
>
More information about the IGSTK-Developers
mailing list