ne_grp_addGeometricShape

VTransformation2D *sbne::ne_grp_addGeometricShape(VRenderGroup *g, const RenderGroupElementShape rGEShape, const bool &lineending = false, const int &numvertices = -1, const std::string &href = "")

Creates a VTransformation2D object, sets the values of its attributes, and adds it to the VRenderGroup object.

Parameters
  • g – a pointer to the VRenderGroup object.

  • rGEShape – a RenderGroupElementShape to use as the “shape” attribute of the VTransformation2D object.

  • numvertices – an integer value indicating the number of vertices for a VPolygon object.

  • linending – a bool value to determine whether the VTransformation2D object is used for a line ending or not.

  • href – a string to use as the value of the “href” attribute of a VImage object.

Returns

a pointer to the added VTransformation2D object.