static QGraphicsLineItem * line = 0;
if (!line && m_currentTime > 0)
{
AnimNode * a = AnimNodeMgr::getInstance()->getNode(0);
AnimNode * b = AnimNodeMgr::getInstance()->getNode(1);
line = AnimatorScene::getInstance()->addLine(a->x(), a->y(),b->x(),b->y());
QPen p;
p.setColor(QColor(Qt::red));
line->setPen(p);
}
if (line && m_currentTime > 6)
{
line->setVisible(false);
}
God day John:
hg diff src/netanim/examples/dumbbell-animation.cc
diff -r 1bb606297cff src/netanim/examples/dumbbell-animation.cc
--- a/src/netanim/examples/dumbbell-animation.cc Wed Jun 21 11:55:57 2017 +0300
+++ b/src/netanim/examples/dumbbell-animation.cc Tue Aug 22 07:15:06 2017 -0700
@@ -25,6 +25,7 @@
#include "ns3/netanim-module.h"
#include "ns3/applications-module.h"
#include "ns3/point-to-point-layout-module.h"
+#include "ns3/point-to-point-module.h"
using namespace ns3;
@@ -63,6 +64,8 @@
nRightLeaf, pointToPointLeaf,
pointToPointRouter);
+ PointToPointHelper h;
+ h.Install (d.GetRight(2), d.GetLeft(3));
// Install Stack
InternetStackHelper stack;
d.InstallStack (stack);
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.