#include <string>
#include <msp/gl/color.h>
+#include <msp/gl/mesh.h>
+
+class NetVis;
class Port
{
private:
+ NetVis &netvis;
unsigned number;
+ bool registered;
std::string name;
Msp::GL::Color color;
+ Msp::GL::Mesh mesh;
public:
- Port(unsigned, const Msp::GL::Color &);
+ Port(NetVis &, unsigned);
unsigned get_number() const { return number; }
+ bool is_registered() const { return registered; }
const std::string &get_name() const { return name; }
const Msp::GL::Color &get_color() const { return color; }
+
+ void render() const;
};
#endif