Fw: Re: Re: [IGSTK-Users] On Orthogonal Viewer Orientation Setup
Fucang Jia
jiafucang at asisz.com
Thu Mar 16 00:45:43 EST 2006
Hi, Patrick,
I have a try and found if I changed both camera position and view up vector, the view can display the same as VolView.
This is the change,
switch( m_Orientation )
{
case Sagittal:
{
position[0] += distanceToFocalPoint;
m_Camera->SetViewUp ( 0, 0, 1 );
break;
}
case Coronal:
{
position[1] -= distanceToFocalPoint;
m_Camera->SetViewUp ( 0, 0, 1 );
break;
}
case Axial:
{
position[2] -= distanceToFocalPoint;
m_Camera->SetViewUp ( 0, -1, 0 );
break;
}
}
Thanks a lot!
Fucang
More information about the IGSTK-Users
mailing list