Class LineMeshBase
Line primitive mesh base component. To render this mesh, use the LineMeshRenderer3D class.
Inheritance
Implements
Inherited Members
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 |
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
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
ModelMeshName
Gets or sets the specified mesh name to render.
Declaration
public override string ModelMeshName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
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
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
OnDeactivated()
Invoked when the object is deactivated.
Declaration
protected override void OnDeactivated()
Overrides
OnDestroy()
Invoked when the object is about to be disposed.
Declaration
protected override void OnDestroy()
Overrides
OnDetached()
Invoked when the object is detached.
Declaration
protected override void OnDetached()
Overrides
Refresh()
Refreshes the mesh when a value from the list has changed.
Declaration
public void Refresh()
RefreshMeshes()
Refreshes meshes.
Declaration
protected virtual void RefreshMeshes()