TopologyVis.h

Go to the documentation of this file.
00001 // Copyright (C) 2008 Institut fuer Telematik, Universitaet Karlsruhe (TH)
00002 //
00003 // This program is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU General Public License
00005 // as published by the Free Software Foundation; either version 2
00006 // of the License, or (at your option) any later version.
00007 //
00008 // This program is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 // GNU General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU General Public License
00014 // along with this program; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00016 //
00017 
00023 #ifndef TOPOLOGYVIS_H_
00024 #define TOPOLOGYVIS_H_
00025 
00026 class NodeHandle;
00027 class GlobalNodeList;
00028 class cModule;
00029 
00030 
00031 enum VisDrawDirection
00032 {
00033     VIS_IN,
00034     VIS_OUT
00035 };
00036 
00037 class TopologyVis
00038 {
00039 public:
00040     TopologyVis();
00041 
00042 protected:
00043     // overlay identity
00044     cModule* thisTerminal; 
00045     GlobalNodeList* globalNodeList;
00046 
00047     void initVis(cModule* terminal);
00048 
00058     void showOverlayNeighborArrow(const NodeHandle& neighbor,
00059                                   bool flush = true,
00060                                   const char* displayString = NULL);
00061 
00069     void deleteOverlayNeighborArrow(const NodeHandle& neighbor);
00070 
00071 private:
00078     void compactGateArray(cModule* terminal, enum VisDrawDirection dir);
00079 };
00080 
00081 #endif /*TOPOLOGYVIS_H_*/
Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3