Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis12/src/lib/common/dyn-seq.c
ViewVC logotype

Diff of /branches/vis12/src/lib/common/dyn-seq.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1979, Sat Jul 21 16:25:51 2012 UTC revision 2033, Fri Oct 12 03:05:33 2012 UTC
# Line 130  Line 130 
130      return nValuesPerElem;      return nValuesPerElem;
131  }  }
132    
133    
134  //! load a dynamic sequence from a Nrrd file, where the sequence elements have real ground type.  //! load a dynamic sequence from a Nrrd file, where the sequence elements have real ground type.
135  //! \param wrld the world; used to report errors  //! \param wrld the world; used to report errors
136  //! \param nin the nrrd to check  //! \param nin the nrrd to check
# Line 180  Line 181 
181  }  }
182    
183    
184    //! load a dynamic sequence from a Nrrd file, where the sequence elements have real ground type.
185    //! \param wrld the world; used to report errors
186    //! \param name the name of the nrrd file
187    //! \param nDims the number of dimensions in the sequence elements
188    //! \param dims the array of sequence element dimensions
189    //! \return the dynamic sequence, or zero on error
190    Diderot_DynSeq_t *Diderot_DynSeqLoadRealFromFile (
191        WorldPrefix_t *wrld,
192        const char *name,
193        unsigned int nDims,
194        unsigned int *dims)
195    {
196        Nrrd *nin = Diderot_LoadNrrdFile (wrld, name);
197        if (nin == 0)
198            return 0;
199        else
200            return Diderot_DynSeqLoadReal(wrld, nin, nDims, dims);
201    
202    }
203    
204    
205    
206  //! load a dynamic sequence from a Nrrd file, where the sequence elements have int ground type.  //! load a dynamic sequence from a Nrrd file, where the sequence elements have int ground type.
207  //! \param wrld the world; used to report errors  //! \param wrld the world; used to report errors
208  //! \param nin the nrrd to check  //! \param nin the nrrd to check
# Line 231  Line 254 
254  }  }
255    
256    
257    //! load a dynamic sequence from a Nrrd file, where the sequence elements have int ground type.
258    //! \param wrld the world; used to report errors
259    //! \param name the name of the nrrd file
260    //! \param nDims the number of dimensions in the sequence elements
261    //! \param dims the array of sequence element dimensions
262    //! \return the dynamic sequence, or zero on error
263    Diderot_DynSeq_t *Diderot_DynSeqLoadIntFromFile (
264        WorldPrefix_t *wrld,
265        const char *name,
266        unsigned int nDims,
267        unsigned int *dims)
268    {
269        Nrrd *nin = Diderot_LoadNrrdFile (wrld, name);
270        if (nin == 0)
271            return 0;
272        else
273            return Diderot_DynSeqLoadInt(wrld, nin, nDims, dims);
274    
275    }
276    
277    
278  //! load a dynamic sequence from a Nrrd file, where the sequence elements have bool ground type.  //! load a dynamic sequence from a Nrrd file, where the sequence elements have bool ground type.
279  //! \param wrld the world; used to report errors  //! \param wrld the world; used to report errors
280  //! \param nin the nrrd to check  //! \param nin the nrrd to check
# Line 280  Line 324 
324      return seq;      return seq;
325    
326  }  }
327    
328    //! load a dynamic sequence from a Nrrd file, where the sequence elements have bool ground type.
329    //! \param wrld the world; used to report errors
330    //! \param name the name of the nrrd file
331    //! \param nDims the number of dimensions in the sequence elements
332    //! \param dims the array of sequence element dimensions
333    //! \return the dynamic sequence, or zero on error
334    Diderot_DynSeq_t *Diderot_DynSeqLoadBoolFromFile (
335        WorldPrefix_t *wrld,
336        const char *name,
337        unsigned int nDims,
338        unsigned int *dims)
339    {
340        Nrrd *nin = Diderot_LoadNrrdFile (wrld, name);
341        if (nin == 0)
342            return 0;
343        else
344            return Diderot_DynSeqLoadBool(wrld, nin, nDims, dims);
345    
346    }

Legend:
Removed from v.1979  
changed lines
  Added in v.2033

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0