ne_go_addText

NText *sbne::ne_go_addText(Network *net, NGraphicalObject *gO, LBox *box = NULL, std::string plaintext = "")

Creates a NText object, sets the its bounding box and plain text, and adds it to the Netwrok and NGraphicalObject object.

Parameters:
  • net – a pointer to the Network object.

  • gO – a pointer to the NGraphicalObject object.

  • plaintext – a string to use as the value of the “text” attribute of the NText object.

  • box – a LBox object to use as the bounding box attribute of the NText object.

Returns:

a pointer to the added NText object.