Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cMapChanHeight.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_CMapChanHeight_H
7 #define _INC_CMapChanHeight_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cMapBase.h"
14 
15 namespace GrayCodec
16 {
17  class cImageJP2;
18 };
19 
20 namespace GrayMapData
21 {
22 #define MAP_OCTANT_EXT ".jp2"
23 
25  {
31  public:
33  : m_bGenerated(false)
34  , m_bBufferRedisplay(true)
35  , m_bSkirtDone(false)
36  , m_bSkirtTried(false)
37  {
38  }
39 
40 #define MAP_PATCH_SIZE1 (128+1) // real allocated size for height includes a 1 point skirt.
41 
42  public:
43  MAP_HEIGHT_t m_Grid[MAP_PATCH_SIZE1 * MAP_PATCH_SIZE1]; // raw height grid + skirt.
44  cNewPtr<::GrayCodec::cImageJP2> m_pImage; // Octant uses a compressed 16 bit grey-scale image for the ground height map. NULL for other patch LODs
45  cValueRange<MAP_HEIGHT_t> m_Range; // height min/max so we can build a bbox from m_Height.m_Grid
46 
47  bool m_bGenerated; // The height is purely programmatic. Don't save this.
48  bool m_bBufferRedisplay; // used by terrain editor to flag when a buffer needs to be redisplayed
49 
50  // the +1 height overlap is computed as needed.
51  bool m_bSkirtDone; // We have computed all the overlap info we need.
52  bool m_bSkirtTried; // We have tried for overlap. clear on load of more data. so we can try again.
53  };
54 }
55 
56 #endif
#define GRAYMAPDATA_LINK
Definition: GrayMapData.h:13
#define MAP_PATCH_SIZE1
Definition: cMapChanHeight.h:40
Definition: cMapChanHeight.h:25
bool m_bBufferRedisplay
Definition: cMapChanHeight.h:48
CMapChanHeight()
Definition: cMapChanHeight.h:32
bool m_bGenerated
Definition: cMapChanHeight.h:47
bool m_bSkirtDone
Definition: cMapChanHeight.h:51
cNewPtr<::GrayCodec::cImageJP2 > m_pImage
Definition: cMapChanHeight.h:44
cValueRange< MAP_HEIGHT_t > m_Range
Definition: cMapChanHeight.h:45
bool m_bSkirtTried
Definition: cMapChanHeight.h:52
Definition: cNewPtr.h:18
lib jp2 opaque internal structure.
Definition: GrayCodec.cpp:26
Definition: GrayMapData.cpp:12
unsigned short MAP_HEIGHT_t
Definition: cMapBase.h:108