Click or drag to resize
Ab4d.SharpEngine logo

LineBaseNode Class

LineBaseNode is an abstract class that is used by SceneNodes that are rendered as lines.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public abstract class LineBaseNode : RenderedNode, 
	IMaterialNode

The LineBaseNode type exposes the following members.

Constructors
 NameDescription
Protected methodLineBaseNode(String)Initializes a new instance of the LineBaseNode class
Protected methodLineBaseNode(Material, String)Initializes a new instance of the LineBaseNode class
Protected methodLineBaseNode(Color3, Single, String)Initializes a new instance of the LineBaseNode class
Protected methodLineBaseNode(Color4, Single, String)Initializes a new instance of the LineBaseNode class
Top
Properties
 NameDescription
Public propertyLineColor Gets or sets the color of the line
Public propertyLineThickness Gets or sets the thickness of the line in screen coordinates.
Public propertyMaterial Gets the material that is used to render this 3D line. The material is created by this SceneNode. If you want to use a custom material then it must be set by a special constructor that takes Material as a parameter.
Top
Methods
 NameDescription
Public methodCollectRenderingItems
(Overrides SceneNodeCollectRenderingItems(RenderingContext))
Protected methodDisconnectMesh 
Protected methodDispose
(Overrides SceneNodeDispose(Boolean))
Public methodDisposeRenderingItems
(Overrides SceneNodeDisposeRenderingItems)
Public methodDisposeWithMaterial DisposeWithMaterial disposes this SceneNode and also disposes the Material even if the material is created by the user and then used in the constructor of this SceneNode (in this case the standard Dispose method does not dispose the materials). This also always disposes the mesh, because it for lines the mesh is always created by the SceneNode.
Public methodGetCenterPosition Returns center position of this line. Center position is calculated from the center position of the line mesh that is transformed by the Transform (when applyTransformation is true). When mesh is not defined, then (0, 0, 0) is returned (regardless of the Transformation).
(Overrides RenderedNodeGetCenterPosition(Boolean, Boolean))
Public methodGetMesh Returns the mesh that is used by this ModelNode.
Public methodGetOverviewText
(Overrides SceneNodeGetOverviewText(StringBuilder, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean))
Protected methodOnInitializeSceneResources
(Overrides InitializedSceneComponentOnInitializeSceneResources(Scene, VulkanDevice))
Protected methodOnIsVisibleChanged
(Overrides SceneNodeOnIsVisibleChanged(Boolean))
Protected methodOnUpdate
(Overrides SceneNodeOnUpdate)
Protected methodOnWorldMatrixChanged
(Overrides SceneNodeOnWorldMatrixChanged)
Protected methodSetMesh SetMesh is a protected method that sets the mesh that is used for this SceneNode. The method disconnects and disposes the previous mesh (if any). If the new mesh was not yet initialized and if this scene node was, it calls InitializeDeviceResources method. The method also sets the disposeMesh to true - this will dispose the mesh when this SceneNode is disposed.
Protected methodUpdateLocalBoundingBox
(Overrides SceneNodeUpdateLocalBoundingBox)
Protected methodUpdateRenderingItemMesh 
Protected methodUpdateWorldBoundingBox
(Overrides SceneNodeUpdateWorldBoundingBox)
Top
Fields
 NameDescription
Public fieldStatic memberDefaultLineThickness DefaultLineThickness specifies the default value for LineThickness that is used when LineThickness is not set in constructor. Default value is 1.
Protected fieldmaterial 
Protected fieldrenderingItem 
Top
See Also