Search Results for

    Show / Hide Table of Contents

    Class LineMeshBase

    Line primitive mesh base component. To render this mesh, use the LineMeshRenderer3D class.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    BaseModel
    MeshComponent
    LineMeshBase
    LineArcMeshBase
    LineBezierMesh
    LineCubeMesh
    LineMesh
    LineRectangleMesh
    Implements
    IDependencyObject
    Inherited Members
    MeshComponent.modelLink
    MeshComponent.meshContainer
    MeshComponent.ChangedMesh
    MeshComponent.modelMeshName
    MeshComponent.MeshCount
    MeshComponent.MeshContainer
    MeshComponent.MeshNames
    MeshComponent.Meshes
    MeshComponent.UnloadModel()
    MeshComponent.ThrowRefreshEvent()
    MeshComponent.RefreshMesh()
    BaseModel.customBoundingBoxSet
    BaseModel.Refreshed
    BaseModel.BoundingBoxRefreshed
    BaseModel.GetBoneByMeshIndex(int)
    Component.Owner
    Component.Managers
    Component.ShouldBeActivated
    Component.Clone()
    Component.Attach(Entity)
    Component.OnLoaded()
    Component.Start()
    PrefabInstanceObject.PrefabSource
    PrefabInstanceObject.RefreshPrefab(Prefab)
    PrefabInstanceObject.PrefabElementId
    PrefabInstanceObject.IsPrefabInstance
    PrefabInstanceObject.IsMissingPrefabSource
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Components.Primitives
    Assembly: Evergine.Components.dll
    Syntax
    public abstract class LineMeshBase : MeshComponent, IDependencyObject

    Constructors

    LineMeshBase()

    Initializes a new instance of the LineMeshBase class.

    Declaration
    public LineMeshBase()

    Fields

    graphicsContext

    Graphics context.

    Declaration
    [BindService(true)]
    protected GraphicsContext graphicsContext
    Field Value
    Type Description
    GraphicsContext

    isLoop

    Indicates whether the first point of the list is appended to the last one.

    Declaration
    protected bool isLoop
    Field Value
    Type Description
    bool

    linePoints

    The list of points for the line.

    Declaration
    public List<LinePointInfo> linePoints
    Field Value
    Type Description
    List<LinePointInfo>

    lineType

    The line type.

    Declaration
    public LineType lineType
    Field Value
    Type Description
    LineType

    Properties

    BoundingBox

    Gets the mesh bounding box.

    Declaration
    public override BoundingBox? BoundingBox { get; }
    Property Value
    Type Description
    BoundingBox?

    The bounding box.

    Overrides
    MeshComponent.BoundingBox

    DiffuseSampler

    Gets or sets the line diffuse texture. This is the in-memory representation for the given asset. See Texture for more information.

    Declaration
    public SamplerState DiffuseSampler { get; set; }
    Property Value
    Type Description
    SamplerState

    The line diffuse texture.

    DiffuseTexture

    Gets or sets the line diffuse texture. This is the in-memory representation for the given asset. See Texture for more information.

    Declaration
    public Texture DiffuseTexture { get; set; }
    Property Value
    Type Description
    Texture

    The line diffuse texture.

    IsCameraAligned

    Gets or sets a value indicating whether the line will be oriented to the camera.

    Declaration
    [RenderProperty(CustomPropertyName = "Is Camera Aligned", Tooltip = "Indicates whether the line will be oriented to the camera")]
    public bool IsCameraAligned { get; set; }
    Property Value
    Type Description
    bool

    Model

    Gets or sets the model data.

    Declaration
    public override Model Model { get; set; }
    Property Value
    Type Description
    Model
    Overrides
    MeshComponent.Model

    ModelMeshName

    Gets or sets the specified mesh name to render.

    Declaration
    public override string ModelMeshName { get; }
    Property Value
    Type Description
    string
    Overrides
    MeshComponent.ModelMeshName

    TexcoordOffset

    Gets or sets the texture coordinate offset.

    Declaration
    [RenderProperty(CustomPropertyName = "Texture Coordinate Offset", Tooltip = "Texture coordinate offset")]
    public Vector2 TexcoordOffset { get; set; }
    Property Value
    Type Description
    Vector2

    TextureTiling

    Gets or sets a value indicating texture tiling (U,V).

    Declaration
    [RenderProperty(CustomPropertyName = "Texture Tiling", Tooltip = "Sets the tiling for the texture [U,V] coordinates")]
    public Vector2 TextureTiling { get; set; }
    Property Value
    Type Description
    Vector2

    UseWorldSpace

    Gets or sets a value indicating whether the points are considered as world space coordinates, instead of being subject to the Transform3D of the owner Entity of this component.

    Declaration
    [RenderProperty(CustomPropertyName = "Use World Space", Tooltip = "Indicates whether the points are considered as world space coordinates")]
    public bool UseWorldSpace { get; set; }
    Property Value
    Type Description
    bool

    Methods

    OnActivated()

    Invoked when the object is activated once it is attached.

    Declaration
    protected override void OnActivated()
    Overrides
    Component.OnActivated()

    OnAttached()

    Invoked when the object is attached to the system.

    Declaration
    protected override bool OnAttached()
    Returns
    Type Description
    bool

    True if everything is OK.

    Overrides
    MeshComponent.OnAttached()

    OnDeactivated()

    Invoked when the object is deactivated.

    Declaration
    protected override void OnDeactivated()
    Overrides
    Component.OnDeactivated()

    OnDestroy()

    Invoked when the object is about to be disposed.

    Declaration
    protected override void OnDestroy()
    Overrides
    MeshComponent.OnDestroy()

    OnDetach()

    Invoked when the object is detached.

    Declaration
    protected override void OnDetach()
    Overrides
    Component.OnDetach()

    RefreshMeshes()

    Refreshes meshes.

    Declaration
    protected virtual void RefreshMeshes()

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX