Click or drag to resize
Ab4d.SharpEngine logo

PolyLineNode Class

PolyLineNode class is used to create a poly-line (line that is defined from connected line segments).
Inheritance Hierarchy
System.Object
  Ab4d.SharpEngine.Core.ComponentBase
    Ab4d.SharpEngine.Core.InitializedSceneComponent
      Ab4d.SharpEngine.SceneNodes.SceneNode
        Ab4d.SharpEngine.SceneNodes.RenderedNode
          Ab4d.SharpEngine.SceneNodes.LineBaseNode
            Ab4d.SharpEngine.SceneNodes.MultiLineBaseNode
              Ab4d.SharpEngine.SceneNodes.PolyLineBaseNode
                Ab4d.SharpEngine.SceneNodes.PolyLineNode

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public class PolyLineNode : PolyLineBaseNode

The PolyLineNode type exposes the following members.

Constructors
 NameDescription
Public methodPolyLineNode(String)Initializes a new instance of the PolyLineNode class
Public methodPolyLineNode(IPolyLineMaterial, String)Initializes a new instance of the PolyLineNode class
Public methodPolyLineNode(Vector3[], String)Initializes a new instance of the PolyLineNode class
Public methodPolyLineNode(Color3, Single, String)Initializes a new instance of the PolyLineNode class
Public methodPolyLineNode(Vector3[], IPolyLineMaterial, String)Initializes a new instance of the PolyLineNode class
Public methodPolyLineNode(Vector3[], BoundingBox, IPolyLineMaterial, String)Initializes a new instance of the PolyLineNode class
Public methodPolyLineNode(Vector3[], Color3, Single, String)Initializes a new instance of the PolyLineNode class
Public methodPolyLineNode(Vector3[], Color4, Single, String)Initializes a new instance of the PolyLineNode class
Public methodPolyLineNode(Vector3[], BoundingBox, Color3, Single, String)Initializes a new instance of the PolyLineNode class
Public methodPolyLineNode(Vector3[], BoundingBox, Color4, Single, String)Initializes a new instance of the PolyLineNode class
Top
Properties
 NameDescription
Public propertyIsClosed Gets or sets a value that specifies if the PolyLineNode closes the lines by connecting the last and the first position. When true, then StartLineCap and EndLineCap are not rendered. This property is not automatically set to true when the first positions is the same as the last position. Also in this case the first and last position are not connected by rendering bevel or miter edge.
Public propertyPositions Positions array that form 3D lines. When the contents of the array is changed, call the UpdatePositions(Nullable<BoundingBox> ) 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