IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2006, 5:36:41 PM (20 years ago)
Author:
Paul Price
Message:

Added psMetadataItemCopy, psRegionAlloc, PS_DATA_REGION.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r6613 r6732  
    1 %%% $Id: psLibSDRS.tex,v 1.388 2006-03-17 00:05:48 eugene Exp $
     1%%% $Id: psLibSDRS.tex,v 1.389 2006-03-30 03:36:41 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    982982    PS_DATA_POLYNOMIAL4D,              ///< psPolynomial4D
    983983    PS_DATA_PROJECTION,                ///< psProjection
     984    PS_DATA_REGION,                    ///< psRegion
    984985    PS_DATA_SCALAR,                    ///< psScalar
    985986    PS_DATA_SPHERE,                    ///< psSphere
     
    29022903header.
    29032904\begin{prototype}
     2905psMetadataItem *psMetadataItemCopy(const psMetadataItem *in);
    29042906psMetadata *psMetadataCopy(psMetadata *out, const psMetadata *in);
    29052907\end{prototype}
     2908\code{psMetadataItemCopy} shall create a new copy of the input
     2909\code{psMetadataItem}.  Since it is not feasible (at this time) to be
     2910able to copy every type, data of the standard numeric types plus
     2911\code{PS_DATA_VECTOR}, \code{PS_DATA_TIME}, \code{PS_DATA_METADATA}
     2912and \code{PS_DATA_REGION} shall be copied; other pointer types may
     2913simply be copied with a warning \tbd{for now}.
     2914
    29062915\code{psMetadataCopy} shall create a new copy of all
    29072916\code{psMetadataItem}s in the \code{in} metadata, and place them in
    29082917the \code{out} metadata, or a new \code{psMetadata} if \code{out} is
    2909 \code{NULL}.  Now, it is not feasible (at this time) to be able to
    2910 copy every type that we might put on a \code{psMetadata}.  Therefore,
    2911 \code{psMetadataCopy} shall copy only the numerical types and strings.
    2912 Other pointer types may simply have the pointer copied (with the
    2913 reference counter incremented appropriately), with the total number of
    2914 such copies (if positive) reported in a warning at the end of the
    2915 function.
     2918\code{NULL}.
    29162919
    29172920\subsubsection{Configuration files}
     
    36343637floats, and is defined statically.  Functions which accept or return a
    36353638\code{psRegion} shall do so by value, not by pointer.
     3639
     3640In the limited cases where we wish to store a \code{psRegion} on one
     3641of the containers, we need an attached \code{psMemBlock}, which can
     3642be obtained by calling \code{psRegionAlloc}:
     3643\begin{prototype}
     3644psRegion *psRegionAlloc(float x0, float x1, float y0, float y1);
     3645\end{prototype}
    36363646
    36373647All functions which use a \code{psRegion} must interpret the
Note: See TracChangeset for help on using the changeset viewer.