[IGSTK-Users] Scrolling through DICOM slices
Patrick Cheng
cheng at isis.georgetown.edu
Thu May 6 14:47:27 EDT 2010
Hi Maria,
The call back you are looking for is around line 3431 in Navigator.cxx file.
void Navigator::ResliceImageCallback( const itk::EventObject & event )
{
if (
igstk::NavigatorQuadrantViews::ManualReslicingEvent().CheckEvent(&event))
{
igstk::NavigatorQuadrantViews::ManualReslicingEvent *resliceEvent =
( igstk::NavigatorQuadrantViews::ManualReslicingEvent *) & event;
ImageSpatialObjectType::IndexType index = resliceEvent->Get();
PointType point;
m_ImageSpatialObject->TransformIndexToPhysicalPoint( index, point );
const double *data = point.GetVnlVector().data_block();
m_AxialPlaneSpatialObject->RequestSetCursorPosition( data );
m_SagittalPlaneSpatialObject->RequestSetCursorPosition( data );
m_CoronalPlaneSpatialObject->RequestSetCursorPosition( data );
m_CrossHair->RequestSetCursorPosition( data );
}
}
Patrick
On 4/30/2010 4:32 AM, María Álvarez Telenti wrote:
> Hi!
>
> I'm taking a look at Navigation code, but I don't understand how
> scrolling through DICOM slices works. i've already noticed that it uses
> an observer (m_reporter) in the class "navigatorquadrantviews", but I
> can't find the piece of code in charge of moving the image upon
> receiving the event.
>
> Thanks!
>
> Regards,
>
> --
> María Álvarez Telenti
>
>
>
> _______________________________________________
> 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