- if(tempext[0] <= xx && xx <= tempext[1] && tempext[2] <= yy && yy <= tempext[3]){
-
- GetVtkInfoTextImage()->PutPosition( (int)xx , (int)yy , (int)zz );
- GetVtkInfoTextImage()->PutPixelIntensity( (int)xx , (int)yy , (int)zz );
+ if(tempext[0] <= dxx && dxx <= tempext[1] && tempext[2] <= dyy && dyy <= tempext[3])
+ {
+ ixx=(int)(dxx+0.5);
+ iyy=(int)(dyy+0.5);
+ izz=(int)(dzz+0.0);
+ GetVtkInfoTextImage()->PutPosition( ixx , iyy , izz );
+ GetVtkInfoTextImage()->PutPixelIntensity( ixx , iyy , izz );