Eclipse 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-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
15
// A class to realise a uniform n:m - relationship using the
16
/****************************************************************************/
17
#ifndef Bresenham_h
18
#define Bresenham_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
27
// ===========================================================================
28
// class definitions
29
// ===========================================================================
34
class
Bresenham
{
35
public
:
43
class
BresenhamCallBack
{
44
public
:
46
BresenhamCallBack
() { }
47
49
virtual
~BresenhamCallBack
() { }
50
52
virtual
void
execute
(
const
int
val1,
const
int
val2) = 0;
53
};
54
55
public
:
60
static
void
compute
(
BresenhamCallBack
* callBack,
const
int
val1,
const
int
val2);
61
};
62
63
64
#endif
65
66
/****************************************************************************/
67
Bresenham::BresenhamCallBack::BresenhamCallBack
BresenhamCallBack()
Definition:
Bresenham.h:46
Bresenham::BresenhamCallBack::execute
virtual void execute(const int val1, const int val2)=0
Bresenham::compute
static void compute(BresenhamCallBack *callBack, const int val1, const int val2)
Definition:
Bresenham.cpp:33
config.h
Bresenham::BresenhamCallBack
Definition:
Bresenham.h:43
Bresenham
Definition:
Bresenham.h:34
Bresenham::BresenhamCallBack::~BresenhamCallBack
virtual ~BresenhamCallBack()
Definition:
Bresenham.h:49
src
utils
geom
Bresenham.h
Generated on Sun Dec 13 2020 08:44:58 for Eclipse SUMO - Simulation of Urban MObility by
1.8.20