Click or drag to resize
Ab4d.SharpEngine logo

MultiLineNode Class

MultiLineNode class is used to render multiple lines with a single draw call. When IsLineStrip is false, then lines are not connected and two positions are required to define each line. When isLineStrip is true, then lines are connected (but connection part is not rendered by using mitter limit as with PolyLineNode).
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class MultiLineNode : MultiLineBaseNode

The MultiLineNode type exposes the following members.

Constructors
 NameDescription
Public methodMultiLineNode(String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Material, String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Boolean, Material, String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Color3, Single, String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Vector3, Boolean, String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Vector3, Boolean, Material, String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Vector3, Boolean, BoundingBox, Material, String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Vector3, Boolean, Color3, Single, String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Vector3, Boolean, Color4, Single, String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Vector3, Boolean, BoundingBox, Color3, Single, String)Initializes a new instance of the MultiLineNode class
Public methodMultiLineNode(Vector3, Boolean, BoundingBox, Color4, Single, String)Initializes a new instance of the MultiLineNode class
Top
Properties
 NameDescription
Public propertyIsLineStrip If true than the Positions define connected lines, if false than lines are not connected and each line is defined by two positions.
Public propertyPositions Positions array that form 3D lines. When the contents of the array is changed, call the UpdatePositions(NullableBoundingBox) method to update the mesh that stores the positions on the graphic card. When the Position property is set to another array instance, then it is not needed to call UpdateMesh method.
Top
Methods
 NameDescription
Public methodUpdatePositions UpdatePositions method needs to be called after the content of the Positions array is changed. The method updates the local bounding box and will update the mesh in the update pass. To update mesh, call Update method. Optionally it is possible to set the bounding box of the positions. This prevents calculating the bounding box form the positions. When the Positions property is set to another positions instance, then it is not needed to call this method.
Top
See Also