<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hello all,<br><br>I'm relatively new at IGSTK and am trying to accomplish tool driven oblique slicing. What I want to do is have the coronal, axial and sagittal slices in a render window and reslice them depending on where the tool is. I can get the slices to appear in my render window, but when I move the tool nothing happens. I've included the relevant code: <br><br>m_imageResliceRepresentation3D.resize(3);<br>m_reslicerPlaneSpatialObject3D.resize(3);<br><br>for( int p = 0; p < 3; p++ ){<br> m_imageResliceRepresentation3D[p] = ImageResliceRepresentationType::New();<br> m_imageResliceRepresentation3D[p]->RequestSetImageSpatialObject( m_ImageSpatialObject );<br> <br> m_reslicerPlaneSpatialObject3D[p] = ReslicerPlaneType::New();<br> m_reslicerPlaneSpatialObject3D[p]->RequestSetReslicingMode( ReslicerPlaneType::Oblique );<br> m_reslicerPlaneSpatialObject3D[p]->RequestSetOrientationType( ReslicerPlaneType::PlaneOrientationWithZAxesNormal );<br> m_reslicerPlaneSpatialObject3D[p]->RequestSetBoundingBoxProviderSpatialObject( m_ImageSpatialObject );<br>}<br><br><br>igstk::Transform identity;<br>identity.SetToIdentity( igstk::TimeStamp::GetLongestPossibleTime() );<br><br>m_ImageSpatialObject->RequestSetTransformAndParent( identity, m_WorldReference );<br><br>for( int p = 0; p < 3; p++ ){<br> m_reslicerPlaneSpatialObject3D[p]->RequestSetTransformAndParent( identity, m_WorldReference );<br> m_imageResliceRepresentation3D[p]->RequestSetReslicePlaneSpatialObject( m_reslicerPlaneSpatialObject3D[p] );<br>}<br><br>for( int p = 0; p < 3; p++ ){<br> m_reslicerPlaneSpatialObject3D[p]->RequestSetToolSpatialObject( m_PolarisToolObject );<br>}<br><br>m_Views[idx3D]->RequestAddObject( m_imageResliceRepresentation3D[idxObl] );<br>m_reslicerPlaneSpatialObject3D[idxNormal]->RequestSetOrientationType( ReslicerPlaneType::PlaneOrientationWithXAxesNormal );<br>m_reslicerPlaneSpatialObject3D[idxHorizontal]->RequestSetOrientationType( ReslicerPlaneType::PlaneOrientationWithYAxesNormal );<br>m_reslicerPlaneSpatialObject3D[idxVertical]->RequestSetOrientationType( ReslicerPlaneType::PlaneOrientationWithZAxesNormal );<br><br>Any help would be greatly appreciated! Thank you very much.<br> </div></body>
</html>