]> git.tdb.fi Git - netvis.git/blob - source/port.h
Refactor the rendering code
[netvis.git] / source / port.h
1 /* $Id$
2
3 This file is part of NetVis
4 Copyright @ 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed unter the GPL
6 */
7
8 #ifndef PORT_H_
9 #define PORT_H_
10
11 #include <string>
12 #include <msp/gl/color.h>
13 #include <msp/gl/mesh.h>
14
15 class NetVis;
16
17 class Port
18 {
19 private:
20         NetVis &netvis;
21         unsigned number;
22         std::string name;
23         Msp::GL::Color color;
24         Msp::GL::Mesh mesh;
25
26 public:
27         Port(NetVis &, unsigned);
28
29         unsigned get_number() const { return number; }
30         const std::string &get_name() const { return name; }
31         const Msp::GL::Color &get_color() const { return color; }
32
33         void render() const;
34 };
35
36 #endif