Search Results for

    Show / Hide Table of Contents

    Class PrimitiveBaseMesh

    Base class for primitive mesh components.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    BaseModel
    MeshComponent
    PrimitiveBaseMesh
    CapsuleMesh
    ConeMesh
    CubeMesh
    CylinderMesh
    PlaneMesh
    PyramidMesh
    SphereMesh
    TeapotMesh
    TorusMesh
    Implements
    IDependencyObject
    Inherited Members
    MeshComponent.modelLink
    MeshComponent.meshContainer
    MeshComponent.ChangedMesh
    MeshComponent.modelMeshName
    MeshComponent.MeshCount
    MeshComponent.MeshContainer
    MeshComponent.MeshNames
    MeshComponent.Meshes
    MeshComponent.BoundingBox
    MeshComponent.OnDestroy()
    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.OnActivated()
    Component.Start()
    Component.OnDeactivated()
    Component.OnDetach()
    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.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Components.Graphics3D
    Assembly: Evergine.Components.dll
    Syntax
    public abstract class PrimitiveBaseMesh : MeshComponent, IDependencyObject

    Constructors

    PrimitiveBaseMesh()

    Initializes a new instance of the PrimitiveBaseMesh class.

    Declaration
    public PrimitiveBaseMesh()

    Properties

    Model

    Gets the model data.

    Declaration
    public Model Model { get; }
    Property Value
    Type Description
    Model

    ModelMeshName

    Gets the name of the mesh to render.

    Declaration
    public string ModelMeshName { get; }
    Property Value
    Type Description
    string

    Methods

    Build(PrimitiveModelBuilder)

    Builds a primitive instance using the given builder.

    Declaration
    protected abstract void Build(PrimitiveModelBuilder builder)
    Parameters
    Type Name Description
    PrimitiveModelBuilder builder

    The primitive model builder.

    Destroy()

    Destroys this object.

    Declaration
    public override void Destroy()
    Overrides
    AttachableObject.Destroy()

    GetPrimitiveHashCode()

    Gets a unique identifier of the primitive definition.

    Declaration
    protected abstract int GetPrimitiveHashCode()
    Returns
    Type Description
    int

    A unique identifier of the primitive definition.

    NotifyPropertyChange()

    Notifies that the primitive definition has changed, and the model should be refreshed.

    Declaration
    protected void NotifyPropertyChange()

    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()

    Implements

    IDependencyObject

    Extension Methods

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