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

File Contents

# Content
1 /* RCSid $Id: pmaptype.h,v 2.3 2015/08/18 18:45:55 greg Exp $ */
2
3 /*
4 ==================================================================
5 Photon map types and corresponding file format strings
6
7 Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
8 (c) Fraunhofer Institute for Solar Energy Systems,
9 (c) Lucerne University of Applied Sciences and Arts,
10 supported by the Swiss National Science Foundation (SNSF, #147053)
11 ==================================================================
12
13 $Id: pmaptype.h,v 2.2 2015/05/08 13:20:23 rschregle Exp $
14 */
15
16
17 #ifndef PMAPTYPE_H
18 #define PMAPTYPE_H
19
20 /* Photon map types */
21 typedef enum {
22 PMAP_TYPE_NONE = -1, PMAP_TYPE_GLOBAL, PMAP_TYPE_PRECOMP,
23 PMAP_TYPE_CAUSTIC, PMAP_TYPE_VOLUME, PMAP_TYPE_DIRECT,
24 PMAP_TYPE_CONTRIB, NUM_PMAP_TYPES
25 } PhotonMapType;
26
27 /* Check for valid photon map type */
28 #define validPmapType(t) ((t) >= 0 && (t) < NUM_PMAP_TYPES)
29
30 /* Glob string for extracting photon map format from file header */
31 #define PMAP_FORMAT_GLOB "Radiance_*_Photon_Map"
32
33 /* Format strings for photon map files corresponding to PhotonMapType */
34 extern const char *pmapFormat [];
35
36 /* Photon map names per type */
37 extern const char *pmapName [];
38 #endif