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:
51  public:
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 
static void compute(BresenhamCallBack *callBack, const int val1, const int val2)
Definition: Bresenham.cpp:40
virtual void execute(const int val1, const int val2)=0