OverSim
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
TopologyVis.h
Go to the documentation of this file.
1
// Copyright (C) 2008 Institut fuer Telematik, Universitaet Karlsruhe (TH)
2
//
3
// This program is free software; you can redistribute it and/or
4
// modify it under the terms of the GNU General Public License
5
// as published by the Free Software Foundation; either version 2
6
// of the License, or (at your option) any later version.
7
//
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software
15
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
//
17
23
#ifndef TOPOLOGYVIS_H_
24
#define TOPOLOGYVIS_H_
25
26
class
NodeHandle
;
27
class
GlobalNodeList
;
28
class
cModule;
29
30
31
enum
VisDrawDirection
32
{
33
VIS_IN
,
34
VIS_OUT
35
};
36
37
class
TopologyVis
38
{
39
public
:
40
TopologyVis
();
41
42
protected
:
43
// overlay identity
44
cModule*
thisTerminal
;
45
GlobalNodeList
*
globalNodeList
;
46
47
void
initVis
(cModule* terminal);
48
public
:
58
void
showOverlayNeighborArrow
(
const
NodeHandle
& neighbor,
59
bool
flush =
true
,
60
const
char
* displayString = NULL);
61
69
void
deleteOverlayNeighborArrow
(
const
NodeHandle
& neighbor);
70
71
private
:
78
void
compactGateArray
(cModule* terminal,
enum
VisDrawDirection
dir);
79
};
80
81
#endif
/*TOPOLOGYVIS_H_*/
src
common
TopologyVis.h
Generated on Fri Dec 7 2012 13:37:53 for OverSim by
1.8.1.2