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
/****************************************************************************/
16
// A class to realise a uniform n:m - relationship using the
17
/****************************************************************************/
18
#ifndef Bresenham_h
19
#define Bresenham_h
20
21
22
// ===========================================================================
23
// included modules
24
// ===========================================================================
25
#include <
config.h
>
26
27
28
// ===========================================================================
29
// class definitions
30
// ===========================================================================
35
class
Bresenham
{
36
public
:
44
class
BresenhamCallBack
{
45
public
:
47
BresenhamCallBack
() { }
48
50
virtual
~BresenhamCallBack
() { }
51
53
virtual
void
execute
(
const
int
val1,
const
int
val2) = 0;
54
};
55
56
public
:
61
static
void
compute
(
BresenhamCallBack
* callBack,
const
int
val1,
const
int
val2);
62
};
63
64
65
#endif
66
67
/****************************************************************************/
68
config.h
Bresenham::BresenhamCallBack::BresenhamCallBack
BresenhamCallBack()
Definition:
Bresenham.h:47
Bresenham::BresenhamCallBack::~BresenhamCallBack
virtual ~BresenhamCallBack()
Definition:
Bresenham.h:50
Bresenham::BresenhamCallBack
Definition:
Bresenham.h:44
Bresenham
Definition:
Bresenham.h:35
Bresenham::compute
static void compute(BresenhamCallBack *callBack, const int val1, const int val2)
Definition:
Bresenham.cpp:34
Bresenham::BresenhamCallBack::execute
virtual void execute(const int val1, const int val2)=0
src
utils
geom
Bresenham.h
Generated on Sat Nov 23 2019 19:02:54 for Eclipse SUMO - Simulation of Urban MObility by
1.8.13