Show / Hide Table of Contents

Class LazyAttachableObject

Abstract class that implements attaching functionality in a lazy way (updates only when update is called)

Inheritance
Object
LazyAttachableObject
Dx2DObject
Dx3DLine
EagerAttachableObject
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Helpers
Assembly: SlipeClient.dll
Syntax
public abstract class LazyAttachableObject

Fields

| Improve this Doc View Source

toAttached

Declaration
protected PhysicalElement toAttached
Field Value
Type Description
PhysicalElement

Properties

| Improve this Doc View Source

IsAttached

Get if this attachable is attached to a ToAttachable

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

Offset

A matrix describing the offset with which this attachable is attached

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

ToAttached

Get the Physical Element to which this attachable is attached

Declaration
public PhysicalElement ToAttached { get; }
Property Value
Type Description
PhysicalElement

Methods

| Improve this Doc View Source

AttachTo(PhysicalElement)

Attach this attachable to a toAttachable without any offset

Declaration
public void AttachTo(PhysicalElement toElement)
Parameters
Type Name Description
PhysicalElement toElement
| Improve this Doc View Source

AttachTo(PhysicalElement, Matrix4x4)

Attach this attachable to a toAttachable using a matrix to describe the positional and rotational offset

Declaration
public void AttachTo(PhysicalElement toElement, Matrix4x4 offsetMatrix)
Parameters
Type Name Description
PhysicalElement toElement
Matrix4x4 offsetMatrix
| Improve this Doc View Source

AttachTo(PhysicalElement, Vector3, Quaternion)

Attach this attachable to a toAttachable with a vector describing the position offset and a quaternion describing the rotation offset

Declaration
public void AttachTo(PhysicalElement toElement, Vector3 positionOffset, Quaternion rotationOffset)
Parameters
Type Name Description
PhysicalElement toElement
Vector3 positionOffset
Quaternion rotationOffset
| Improve this Doc View Source

AttachTo(PhysicalElement, Vector3, Vector3)

Attach this attachable to a toAttachable with 2 vectors describing a position offset and a rotation offset

Declaration
public void AttachTo(PhysicalElement toElement, Vector3 positionOffset, Vector3 rotationOffset)
Parameters
Type Name Description
PhysicalElement toElement
Vector3 positionOffset
Vector3 rotationOffset
| Improve this Doc View Source

Detach()

Detach this attachable

Declaration
public void Detach()
| Improve this Doc View Source

OnAttach()

Declaration
protected virtual void OnAttach()
| Improve this Doc View Source

OnDetach()

Declaration
protected virtual void OnDetach()
| Improve this Doc View Source

Update(RootElement, OnUpdateEventArgs)

Updates this element to the correct position and rotation

Declaration
protected abstract void Update(RootElement source, OnUpdateEventArgs eventArgs)
Parameters
Type Name Description
RootElement source
OnUpdateEventArgs eventArgs
  • Improve this Doc
  • View Source
Back to top Generated by DocFX