IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6938


Ignore:
Timestamp:
Apr 21, 2006, 10:47:39 AM (20 years ago)
Author:
magnier
Message:

replaced psRegion support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadata.c

    r6913 r6938  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.103 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-04-20 01:46:00 $
     14 *  @version $Revision: 1.104 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-04-21 20:47:39 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    293293    case     PS_DATA_POLYNOMIAL4D:              // psPolynomial4D
    294294    case     PS_DATA_PROJECTION:                // psProjection
     295    case     PS_DATA_REGION:                  // psRegion
    295296    case     PS_DATA_SCALAR:                    // psScalar
    296297    case     PS_DATA_SPHERE:                    // psSphere
     
    396397            break;
    397398        }
    398         /*    case PS_DATA_REGION: {
    399                     psRegion *region = in->data.V; // The region
    400                     psRegion *new = psRegionAlloc(region->x0, region->x1, region->y0, region->y1); // Copy of the region
    401                     newItem = psMetadataItemAlloc(in->name, PS_DATA_REGION, in->comment, new);
    402                     psFree(new);                  // Drop reference
    403                     break;
    404                 }
    405         */
     399    case PS_DATA_REGION: {
     400            psRegion *region = in->data.V; // The region
     401            psRegion *new = psRegionAlloc(region->x0, region->x1, region->y0, region->y1); // Copy of the region
     402            newItem = psMetadataItemAlloc(in->name, PS_DATA_REGION, in->comment, new);
     403            psFree(new);                  // Drop reference
     404            break;
     405        }
    406406    default:
    407407        // Other kinds of pointers
     
    11341134            psMetadataPrint(item->data.V, level + 1);
    11351135            break;
    1136             /*        case PS_DATA_REGION: {
    1137                             psString region = psRegionToString(*(psRegion*)item->data.V);
    1138                             printf("%s", region);
    1139                             psFree(region);
    1140                             break;
    1141                         }
    1142             */
     1136        case PS_DATA_REGION: {
     1137                psString region = psRegionToString(*(psRegion*)item->data.V);
     1138                printf("%s", region);
     1139                psFree(region);
     1140                break;
     1141            }
    11431142        case PS_DATA_LIST:
    11441143            printf("<a list of unknown contents>");
Note: See TracChangeset for help on using the changeset viewer.