Creates a new line given two points positions (extents of the segment), A and B, with a given width in pixels.
The width in pixels and the color of the line are set by the user.
The line is assigned a strictly positive id that will represent this line from now on. 0 is an invalid line id. Please note that this id
will be reused if the line is removed and another created again.
Before creating a line, materials to render this line must be created in the PrimitiveManagerMaterialInterface.
The id of the created line.
Gets the A point (origin) of the given line.
If found, pPointAOut is updated.
Returns true if the line is found and therefore pPointAOut is updated.
true if pPointAOut was updated.
Gets the B point (other end) of the given line.
If found, pPointBOut is updated.
Returns true if the line is found and therefore pPointBOut is updated.
true if pPointBOut was updated.
Tells if the given line is visible.
Returns false if the line does not exists or is setLineVisible with false has been called.
true if the line exists and is visible.
Updates the rendering of the given line, by changing the color of the line.
Returns true if the line was updated.
primitive material id to be used to draw the line.true if the line was found, if the materials exist and therefore the line rendering is updated.
Updates the rendering of the given line, by changing its visibility.
Returns true if the line was updated.
true if the line exists.
The PrimitiveManagerLineInterface is used to display 3D lines on top of the DMU.
The PrimitiveManagerLineInterface is accessed through the PrimitiveManagerInterface.getLineManager function (the PrimitiveManagerInterface is accessed through InfiniteEngineInterface.getPrimitiveManager).
A 3D line is defined as a segment, thus with two 3D points. Rendered 3D lines are manipulated through their ids (and not a dedicated object), indeed each line is assigned a strictly positive integer id that will represent it. 0 is an invalid line id.
The color of the 3D line is handled by the PrimitiveManagerMaterialInterface, accessed through PrimitiveManagerInterface.getPrimitiveMaterialManager. Materials are accessed by their ids, and modified by their ids. 3D primitives are rendered colored with their
primitive material id, and not directly from a color.WARNING : do not confuse the PrimitiveManagerMaterialInterface and the MaterialManagerInterface, these two interfaces are separated, do not use MaterialManagerInterface ids to draw lines !!!
Creating a 3D line may be done with the following :
You may create also boxes, points, etc with PrimitiveManagerBoxInterface, PrimitiveManagerPointInterface, etc.
See