File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BinaryMapBase.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************************************
3 Copyright (c) 2011, Christopher John Topping, Aarhus University
4 All rights reserved.
5 
6 Redistribution and use in source and binary forms, with or without modification, are permitted provided
7 that the following conditions are met:
8 
9 Redistributions of source code must retain the above copyright notice, this list of conditions and the
10 following disclaimer.
11 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
12 the following disclaimer in the documentation and/or other materials provided with the distribution.
13 
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
15 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
16 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
17 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
19 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 ********************************************************************************************************
23 */
24 
25 #ifndef __BINARYMAPBASE_H
26 #define __BINARYMAPBASE_H
27 
29 {
30 public:
31  BinaryMapBase(unsigned int a_width, unsigned int a_height, unsigned int a_resolution, unsigned int a_noValues);
33  uint64 GetValue(unsigned a_x, unsigned a_y);
34  void SetValue(unsigned a_x, unsigned a_y, unsigned a_value);
35  void ClearValue(unsigned a_x, unsigned a_y);
36  void ClearMap();
37 protected:
39  unsigned int m_height;
40  unsigned int m_width;
41  unsigned int m_colourRes;
42  unsigned int m_colourScaler;
43  unsigned int m_resolution;
44  unsigned int m_resolutionscaler;
45  unsigned int m_maskbits;
46  unsigned int m_maplength;
48 };
49 
50 #endif
BinaryMapBase::m_maskbits
unsigned int m_maskbits
Definition: BinaryMapBase.h:45
BinaryMapBase::ClearMap
void ClearMap()
Definition: BinaryMapBase.cpp:74
BinaryMapBase::GetValue
uint64 GetValue(unsigned a_x, unsigned a_y)
Definition: BinaryMapBase.cpp:79
BinaryMapBase::m_colourScaler
unsigned int m_colourScaler
Definition: BinaryMapBase.h:42
uint64
unsigned long long uint64
Definition: ALMaSS_Setup.h:35
BinaryMapBase::m_height
unsigned int m_height
Definition: BinaryMapBase.h:39
BinaryMapBase::ClearValue
void ClearValue(unsigned a_x, unsigned a_y)
Definition: BinaryMapBase.cpp:125
BinaryMapBase
Definition: BinaryMapBase.h:28
BinaryMapBase::m_colourRes
unsigned int m_colourRes
Definition: BinaryMapBase.h:41
BinaryMapBase::m_width
unsigned int m_width
Definition: BinaryMapBase.h:40
BinaryMapBase::m_resolution
unsigned int m_resolution
Definition: BinaryMapBase.h:43
BinaryMapBase::m_map
uint64 * m_map
Definition: BinaryMapBase.h:38
BinaryMapBase::m_mask
uint64 m_mask
Definition: BinaryMapBase.h:47
BinaryMapBase::m_maplength
unsigned int m_maplength
Definition: BinaryMapBase.h:46
BinaryMapBase::BinaryMapBase
BinaryMapBase(unsigned int a_width, unsigned int a_height, unsigned int a_resolution, unsigned int a_noValues)
Definition: BinaryMapBase.cpp:30
BinaryMapBase::SetValue
void SetValue(unsigned a_x, unsigned a_y, unsigned a_value)
Definition: BinaryMapBase.cpp:98
BinaryMapBase::~BinaryMapBase
~BinaryMapBase()
Definition: BinaryMapBase.cpp:69
BinaryMapBase::m_resolutionscaler
unsigned int m_resolutionscaler
Definition: BinaryMapBase.h:44