NetSimulyzer icon indicating copy to clipboard operation
NetSimulyzer copied to clipboard

Node Widget

Open bpe2 opened this issue 4 years ago • 1 comments

Seeing a Node in the 3D scene is nice, and there are some properties we can keep track of by changing things like the color of the model, but ns-3 supplies a lot of data that is much easier to comprehend in a text format, so add a widget that displays details about a given Node at the current time.

Widget Items

This widget should be able to display basic data about the Node, already known to the application (like location, name, and base/highlight color), as well as some new data (like IP addresses).

For now, at least, We'll keep this information read only, but we may allow for changes to visual elements (like Name and Base/Highlight color) later

Here's a list of some properties to show on the widget, their types, and where they came from:

Name

  • Node ID [unsigned int] (ns-3)
  • Node Name [string] (NetSimulyzer)

Color

  • BaseColor [color] (NetSimulyzer)
  • HighlightColor [color] (NetSimulyzer)
  • Motion Trail Color [color] (NetSimulyzer)

Position

  • Location [x,y,z double] (ns-3)
  • Offset [x,y,z double]
  • Orientation [x,y,z double] (NetSimulyzer)

Size

  • Scale [double] (NetSimulyzer)
  • ScaleAxes [x,y,z also double] (NetSimulyzer)
  • Height [double] (NetSimulyzer)
  • Width [double] (NetSimulyzer)
  • Depth [double] (NetSimulyzer)

Network

  • IP address(es) v4/v6 [string] (ns-3)
  • MAC address(es) [string] (ns-3)

If there's anything interesting that NetAnim uses, that would be good too

Here's a screenshot of NetAnim's node info image

Resources

https://doc.qt.io/qt-5/modelview.html https://doc.qt.io/qt-5/qtwidgets-itemviews-simpletreemodel-example.html

bpe2 avatar Sep 21 '20 15:09 bpe2