SUMO - Simulation of Urban MObility
Bresenham.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4
/****************************************************************************/
5
//
6
// This program and the accompanying materials
7
// are made available under the terms of the Eclipse Public License v2.0
8
// which accompanies this distribution, and is available at
9
// http://www.eclipse.org/legal/epl-v20.html
10
//
11
/****************************************************************************/
18
// A class to realise a uniform n:m - relationship using the
19
/****************************************************************************/
20
#ifndef Bresenham_h
21
#define Bresenham_h
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
34
// ===========================================================================
35
// class definitions
36
// ===========================================================================
41
class
Bresenham
{
42
public
:
50
class
BresenhamCallBack
{
51
public
:
53
BresenhamCallBack
() { }
54
56
virtual
~BresenhamCallBack
() { }
57
59
virtual
void
execute
(
const
int
val1,
const
int
val2) = 0;
60
};
61
62
public
:
67
static
void
compute
(
BresenhamCallBack
* callBack,
const
int
val1,
const
int
val2);
68
};
69
70
71
#endif
72
73
/****************************************************************************/
74
windows_config.h
config.h
Bresenham::BresenhamCallBack::BresenhamCallBack
BresenhamCallBack()
Definition:
Bresenham.h:53
Bresenham::BresenhamCallBack::~BresenhamCallBack
virtual ~BresenhamCallBack()
Definition:
Bresenham.h:56
Bresenham::BresenhamCallBack
Definition:
Bresenham.h:50
Bresenham
Definition:
Bresenham.h:41
Bresenham::compute
static void compute(BresenhamCallBack *callBack, const int val1, const int val2)
Definition:
Bresenham.cpp:40
Bresenham::BresenhamCallBack::execute
virtual void execute(const int val1, const int val2)=0
src
utils
geom
Bresenham.h
Generated on Sat May 12 2018 19:00:22 for SUMO - Simulation of Urban MObility by
1.8.13