[IGSTK-Users] Coronal and Sagittal Views

Patrick Cheng cheng at isis.georgetown.edu
Fri Feb 25 10:08:35 EST 2011


Hi Ashwath,

CameraPosition is only one part of the puzzle. To get the view right, 
you also need to consider a range of parameters. Here are the three 
important ones:

   /** Set Camera position */
   void SetCameraPosition( double x, double y, double z);

   /** Set camera focal point */
   void SetCameraFocalPoint( double x, double y, double z);

   /** Set Camera View Up vector */
   void SetCameraViewUp( double vx, double vy, double vz);

In your case, you just moved the camera, but still looking at the old 
spot (FocalPoint), you need to do a parallel shift of the FocalPoint as 
well to achieve your desired result.

Patrick


On 2/25/2011 9:18 AM, Ashwath Hegde, ERS-HCLTech wrote:
> Hi All,
>
> I have developed a application similar to NeedleBiopsy application given
> in IGSTK\Examples.
>
> I have no problem with Axial and 3D views,they are getting displayed
> properly.
>
> But my Coronal and Sagittal images are getting displayed in the upper
>
> Half of their display quadrant.I tried setting the
> m_view2DCoronal->SetCameraPosition but its not working.
>
> There is no GetCameraPosition method to see the camera position after
> the m_view2DCoronal->RequestResetCamera();
>
> is called.
>
> Below is the part of code which I have shown:
>
> m_view2DCoronal->RequestResetCamera();
>
> m_view2DCoronal->SetRefreshRate(30);
>
> m_view2DCoronal->RequestStart();
>
> SetRequestEnableInteractionCoronal();
>
> m_view2DSagittal->RequestResetCamera();
>
> m_view2DSagittal->SetRefreshRate(30);
>
> m_view2DSagittal->RequestStart();
>
> SetRequestEnableInteractionSagittal();
>
> Can anybody help me on this?
>
> Thanks and Regards,
>
> Ashwath.
>
>
> ------------------------------------------------------------------------
> ::DISCLAIMER::
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily
> reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure,
> modification, distribution and / or publication of
> this message without the prior written consent of the author of this
> e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users



More information about the IGSTK-Users mailing list