Class PrimitiveBaseMesh
Base class for primitive mesh components.
Inheritance
DependencyObject
AttachableObject
PrefabInstanceObject
Component
BaseModel
MeshComponent
PrimitiveBaseMesh
Implements
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
Component.Owner
Component.Managers
Component.ShouldBeActivated
Component.Clone()
Component.Attach(Entity)
Component.OnLoaded()
Component.OnActivated()
Component.Start()
Component.OnDeactivated()
Component.OnDetach()
PrefabInstanceObject.PrefabSource
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
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 mesh name 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()
Destroy this object.
Declaration
public override void Destroy()
Overrides
Evergine.Framework.AttachableObject.Destroy()
GetPrimitiveHashCode()
Gets an unique identifier of the primitive definition.
Declaration
protected abstract int GetPrimitiveHashCode()
Returns
Type | Description |
---|---|
int | An 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 all is OK. |
Overrides
Evergine.Components.Graphics3D.MeshComponent.OnAttached()