Line |
public abstract class LineBaseNode : RenderedNode, IMaterialNode
The LineBaseNode type exposes the following members.
Name | Description | |
---|---|---|
LineBaseNode(String) | Initializes a new instance of the LineBaseNode class | |
LineBaseNode(Material, String) | Initializes a new instance of the LineBaseNode class | |
LineBaseNode(Color3, Single, String) | Initializes a new instance of the LineBaseNode class | |
LineBaseNode(Color4, Single, String) | Initializes a new instance of the LineBaseNode class |
Name | Description | |
---|---|---|
LineColor | Gets or sets the color of the line | |
LineThickness | Gets or sets the thickness of the line in screen coordinates. | |
Material | 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. |
Name | Description | |
---|---|---|
CollectRenderingItems | (Overrides SceneNodeCollectRenderingItems(RenderingContext)) | |
DisconnectMesh | ||
Dispose | (Overrides SceneNodeDispose(Boolean)) | |
DisposeRenderingItems | (Overrides SceneNodeDisposeRenderingItems) | |
DisposeWithMaterial | 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. | |
GetCenterPosition |
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)) | |
GetMesh | Returns the mesh that is used by this ModelNode. | |
GetOverviewText | (Overrides SceneNodeGetOverviewText(StringBuilder, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)) | |
OnInitializeSceneResources | (Overrides InitializedSceneComponentOnInitializeSceneResources(Scene, VulkanDevice)) | |
OnIsVisibleChanged | (Overrides SceneNodeOnIsVisibleChanged(Boolean)) | |
OnUpdate | (Overrides SceneNodeOnUpdate) | |
OnWorldMatrixChanged | (Overrides SceneNodeOnWorldMatrixChanged) | |
SetMesh | 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. | |
UpdateLocalBoundingBox | (Overrides SceneNodeUpdateLocalBoundingBox) | |
UpdateRenderingItemMesh | ||
UpdateWorldBoundingBox | (Overrides SceneNodeUpdateWorldBoundingBox) |
Name | Description | |
---|---|---|
DefaultLineThickness | DefaultLineThickness specifies the default value for LineThickness that is used when LineThickness is not set in constructor. Default value is 1. | |
material | ||
renderingItem |