API reference
API reference
Select your platform
No SDKs available
No versions available

PoseAttribute

PoseAttribute

class PoseAttribute(keyString: String, key: Int, component: ComponentBase, initialValue: Pose) : TypedAbstractAttribute<Pose>
An attribute that stores a Pose value.
XML Usage Example:
<component name="MyTransform">
  <PoseAttribute name="worldPose" defaultValue="0.0 0.0 0.0 0.0 0.0 0.0 1.0" />
</component>
The pose format is "tx ty tz qx qy qz qw" where:
  • tx, ty, tz: Translation components (Vector3)
  • qx, qy, qz, qw: Rotation components as a Quaternion

Constructors

NameSummary
PoseAttribute
constructor(keyString: String, key: Int, component: ComponentBase, initialValue: Pose)

Properties

NameSummary
value
var value: WatchedPose

Functions

NameSummary
checkIfComponentIsOld
fun checkIfComponentIsOld()
checkIfComponentIsRecycled
fun checkIfComponentIsRecycled()
get
open override fun get(): Any
getValue
operator fun getValue(thisRef: Any?, property: KProperty<*>): Pose
keyName
fun keyName(): String
markDirty
fun markDirty(potentialValue: WatchedPose)
set
open override fun set(value: Any)
setValue
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: Pose)
Did you find this page helpful?
Thumbs up icon
Thumbs down icon