Mercurial > hg > minc-tools
changeset 964:f2a6cd8b7c62
*** empty log message ***
author | david <david> |
---|---|
date | Fri, 24 Nov 1995 18:19:08 +0000 |
parents | 5f57a5888cf5 |
children | e45da450069e |
files | volume_io/Volumes/volumes.c |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/volume_io/Volumes/volumes.c +++ b/volume_io/Volumes/volumes.c @@ -17,7 +17,7 @@ #include <float.h> #ifndef lint -static char rcsid[] = "$Header: /private-cvsroot/minc/volume_io/Volumes/volumes.c,v 1.57 1995-11-20 12:37:39 david Exp $"; +static char rcsid[] = "$Header: /private-cvsroot/minc/volume_io/Volumes/volumes.c,v 1.58 1995-11-24 18:19:08 david Exp $"; #endif STRING XYZ_dimension_names[] = { MIxspace, MIyspace, MIzspace }; @@ -214,8 +214,6 @@ make_identity_transform( &identity ); create_linear_transform( &volume->voxel_to_world_transform, &identity ); - set_volume_functions( volume ); - return( volume ); } @@ -284,8 +282,6 @@ volume->signed_flag = signed_flag; set_volume_voxel_range( volume, voxel_min, voxel_max ); - - set_volume_functions( volume ); } } @@ -406,8 +402,6 @@ { alloc_multidim_array( &volume->array ); } - - set_volume_functions( volume ); } /* ----------------------------- MNI Header ----------------------------------- @@ -1474,6 +1468,8 @@ if( volume->real_range_set ) set_volume_real_range( volume, real_min, real_max ); + else + cache_volume_range_has_changed( volume ); } /* ----------------------------- MNI Header ----------------------------------- @@ -1602,6 +1598,9 @@ volume->real_range_set = TRUE; } + + if( volume->is_cached_volume ) + cache_volume_range_has_changed( volume ); } /* ----------------------------- MNI Header -----------------------------------