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 |
is2DMode
Indicates whether the mesh will be renderer by a LineMeshRenderer2D.
Declaration
protected bool is2DMode
Field Value
Type | Description |
---|---|
bool |
isLoop
Indicates whether the first point of the list is appended with the last one.
Declaration
protected bool isLoop
Field Value
Type | Description |
---|---|
bool |
linePoints
The line points list.
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
DiffuseSampler
Gets or sets the line diffuse texture. Such 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. Such 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 specify the mesh name to render.
Declaration
public override string ModelMeshName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
TexcoordOffset
Gets or sets the texture coordinates 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 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 all is OK. |
Overrides
OnDeactivated()
Invoked when the object is deactivated.
Declaration
protected override void OnDeactivated()
Overrides
OnDestroy()
Invoked when the object is going to be disposed.
Declaration
protected override void OnDestroy()
Overrides
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()
Overrides
RefreshMeshes()
Refresh meshes method.
Declaration
protected virtual void RefreshMeshes()