ScriptedHeadTracker class final
A HeadTracker a test turns by hand: the head is where turnTo put it, and only while the tracker follows it.
As a sensor behaves. A pose given while the tracker is stopped is not seen, as a sensor nobody listens to reports nothing; stop leaves the pose where it was, and start may follow it. starts and stops count the calls, for a test of who turned the tracker on.
- Inheritance
-
- Object
- HeadTracker
- ScriptedHeadTracker
Constructors
- ScriptedHeadTracker()
- A stopped tracker at the identity pose.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFollowing → bool
-
Whether the tracker follows the head now.
no setter
-
pose
→ ValueListenable<
RigidPose> -
The latest pose. A listenable rather than a stream so that a widget can be
rebuilt by it without an application holding a subscription.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- starts → int
-
How many times start was called.
no setter
- stops → int
-
How many times stop was called.
no setter
Methods
-
dispose(
) → void - Releases pose. Nothing may be called after it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → Future< void> -
Begins following the head. Nothing to begin by default.
override
-
stop(
) → Future< void> -
Stops following it; the pose stays where it was. Nothing to stop by
default.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
turnTo(
RigidPose pose) → void -
The head turns to
pose: seen when the tracker follows it.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited