ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapio.h
Revision: 2.6
Committed: Tue May 17 17:39:47 2016 UTC (7 years, 11 months ago) by rschregle
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R2, rad5R1
Changes since 2.5: +31 -5 lines
Log Message:
Initial import of ooC photon map

File Contents

# User Rev Content
1 rschregle 2.6 /* RCSid $Id: pmapio.h,v 1.7 2015/12/03 11:51:43 taschreg Exp taschreg $ */
2    
3 greg 2.1 /*
4 rschregle 2.6 ======================================================================
5 greg 2.1 Photon map file I/O
6    
7     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
8     (c) Fraunhofer Institute for Solar Energy Systems,
9 rschregle 2.2 (c) Lucerne University of Applied Sciences and Arts,
10 rschregle 2.6 supported by the Swiss National Science Foundation (SNSF, #147053)
11     ======================================================================
12 greg 2.1
13 rschregle 2.6 $Id: pmapio.h,v 1.7 2015/12/03 11:51:43 taschreg Exp taschreg $
14 greg 2.1 */
15    
16    
17     #ifndef PMAPIO_H
18     #define PMAPIO_H
19    
20     #include "pmapdata.h"
21 rschregle 2.6
22    
23     /* File format version with feature suffix */
24     #define PMAP_FILEVER_MAJ "3.0"
25    
26     #ifdef PMAP_OOC
27     #define PMAP_FILEVER_TYP "o"
28     #else
29     #define PMAP_FILEVER_TYP "k"
30     #endif
31    
32     #ifdef PMAP_FLOAT_FLUX
33     #define PMAP_FILEVER_FLX "f"
34     #else
35     #define PMAP_FILEVER_FLX ""
36     #endif
37    
38     #ifdef PMAP_PRIMARYPOS
39     #define PMAP_FILEVER_PRI "p"
40     #else
41     #define PMAP_FILEVER_PRI ""
42     #endif
43    
44     #define PMAP_FILEVER (PMAP_FILEVER_MAJ PMAP_FILEVER_TYP \
45     PMAP_FILEVER_FLX PMAP_FILEVER_PRI)
46 greg 2.1
47    
48     void savePhotonMap (const PhotonMap *pmap, const char *fname,
49 greg 2.3 int argc, char **argv);
50 greg 2.1 /* Save portable photon map of specified type to filename,
51     along with the corresponding command line. */
52    
53     PhotonMapType loadPhotonMap (PhotonMap *pmap, const char* fname);
54     /* Load portable photon map from specified filename, and return photon
55     * map type as identified from file header. */
56    
57     #endif