Show / Hide Table of Contents

Class Dx3DLine

Inheritance
Object
LazyAttachableObject
Dx3DLine
Dx3DMaterialLine
SightLine
Implements
IDrawable
Inherited Members
LazyAttachableObject.toAttached
LazyAttachableObject.Offset
LazyAttachableObject.ToAttached
LazyAttachableObject.IsAttached
LazyAttachableObject.AttachTo(PhysicalElement, Matrix4x4)
LazyAttachableObject.AttachTo(PhysicalElement, Vector3, Vector3)
LazyAttachableObject.AttachTo(PhysicalElement, Vector3, Quaternion)
LazyAttachableObject.AttachTo(PhysicalElement)
LazyAttachableObject.Detach()
LazyAttachableObject.OnAttach()
LazyAttachableObject.OnDetach()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Dx
Assembly: SlipeClient.dll
Syntax
public class Dx3DLine : LazyAttachableObject, IDrawable

Constructors

| Improve this Doc View Source

Dx3DLine(PhysicalElement, Vector3, Matrix4x4)

Create a 3D line attached to a certain object

Declaration
public Dx3DLine(PhysicalElement attachedTo, Vector3 relativeEndPos, Matrix4x4 offset)
Parameters
Type Name Description
PhysicalElement attachedTo
Vector3 relativeEndPos
Matrix4x4 offset
| Improve this Doc View Source

Dx3DLine(Vector3, Vector3)

Create a red line

Declaration
public Dx3DLine(Vector3 startPos, Vector3 endPos)
Parameters
Type Name Description
Vector3 startPos
Vector3 endPos
| Improve this Doc View Source

Dx3DLine(Vector3, Vector3, Color, Single, Boolean)

Create a new 3D line

Declaration
public Dx3DLine(Vector3 startPos, Vector3 endPos, Color color, float width = 1F, bool postGUI = false)
Parameters
Type Name Description
Vector3 startPos
Vector3 endPos
Color color
Single width
Boolean postGUI

Fields

| Improve this Doc View Source

endPos

The end position of the 3D line

Declaration
protected Vector3 endPos
Field Value
Type Description
Vector3
| Improve this Doc View Source

relativeEndPosition

Declaration
protected Vector3 relativeEndPosition
Field Value
Type Description
Vector3
| Improve this Doc View Source

startPos

The start position of the 3D line

Declaration
protected Vector3 startPos
Field Value
Type Description
Vector3

Properties

| Improve this Doc View Source

Color

The color of the 3D line

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color
| Improve this Doc View Source

EndPosition

Declaration
public Vector3 EndPosition { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

PostGUI

Wether to draw the line behind or in front of GUI elements

Declaration
public bool PostGUI { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

StartPosition

Declaration
public Vector3 StartPosition { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Visible

Get and set if this line is currently visible

Declaration
public bool Visible { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Width

The width of the 3D line

Declaration
public float Width { get; set; }
Property Value
Type Description
Single

Methods

| Improve this Doc View Source

Draw(RootElement, OnRenderEventArgs)

Draw this line

Declaration
public virtual bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
Type Name Description
RootElement source
OnRenderEventArgs eventArgs
Returns
Type Description
Boolean
| Improve this Doc View Source

Update(RootElement, OnUpdateEventArgs)

Declaration
protected override void Update(RootElement source = null, OnUpdateEventArgs eventArgs = null)
Parameters
Type Name Description
RootElement source
OnUpdateEventArgs eventArgs
Overrides
LazyAttachableObject.Update(RootElement, OnUpdateEventArgs)

Implements

IDrawable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX