diff --git a/src/netanim/model/animation-interface.cc b/src/netanim/model/animation-interface.cc index a9192ec1f..2e5a2af85 100644 --- a/src/netanim/model/animation-interface.cc +++ b/src/netanim/model/animation-interface.cc @@ -376,6 +376,12 @@ AnimationInterface::SetBackgroundImage(std::string fileName, WriteXmlUpdateBackground(fileName, x, y, scaleX, scaleY, opacity); } +void +AnimationInterface::UpdateNodeSize(Ptr n, double width, double height) +{ + UpdateNodeSize(n->GetId(), width, height); +} + void AnimationInterface::UpdateNodeSize(uint32_t nodeId, double width, double height) { diff --git a/src/netanim/model/animation-interface.h b/src/netanim/model/animation-interface.h index 8149a9980..65610cf2b 100644 --- a/src/netanim/model/animation-interface.h +++ b/src/netanim/model/animation-interface.h @@ -284,6 +284,15 @@ class AnimationInterface */ void UpdateNodeImage(uint32_t nodeId, uint32_t resourceId); + /** + * \brief Helper function to update the size of a node + * \param n Ptr to the node + * \param width Width of the node + * \param height Height of the node + * + */ + void UpdateNodeSize(Ptr n, double width, double height); + /** * \brief Helper function to update the size of a node * \param nodeId Id of the node