mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-26 20:06:28 -08:00
Merge remote-tracking branch 'gui/main' into merge-gui-and-server
This commit is contained in:
commit
ae94de39b1
430 files changed
+44297
-50
No files matched your search
@@ -0,0 +1,72 @@
|
||||
package dev.slimevr.vr.trackers;
|
||||
|
||||
import com.jme3.math.Quaternion;
|
||||
import com.jme3.math.Vector3f;
|
||||
import dev.slimevr.config.TrackerConfig;
|
||||
import dev.slimevr.vr.Device;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
|
||||
public interface Tracker {
|
||||
|
||||
AtomicInteger nextLocalTrackerId = new AtomicInteger();
|
||||
|
||||
static int getNextLocalTrackerId() {
|
||||
return nextLocalTrackerId.incrementAndGet();
|
||||
}
|
||||
|
||||
boolean getPosition(Vector3f store);
|
||||
|
||||
boolean getRotation(Quaternion store);
|
||||
|
||||
boolean getAcceleration(Vector3f store);
|
||||
|
||||
String getName();
|
||||
|
||||
TrackerStatus getStatus();
|
||||
|
||||
void readConfig(TrackerConfig config);
|
||||
|
||||
void writeConfig(TrackerConfig config);
|
||||
|
||||
float getConfidenceLevel();
|
||||
|
||||
void resetFull(Quaternion reference);
|
||||
|
||||
void resetYaw(Quaternion reference);
|
||||
|
||||
void tick();
|
||||
|
||||
TrackerPosition getBodyPosition();
|
||||
|
||||
void setBodyPosition(TrackerPosition position);
|
||||
|
||||
boolean userEditable();
|
||||
|
||||
boolean hasRotation();
|
||||
|
||||
boolean hasPosition();
|
||||
|
||||
boolean isComputed();
|
||||
|
||||
int getTrackerId();
|
||||
|
||||
int getTrackerNum();
|
||||
|
||||
Device getDevice();
|
||||
|
||||
String getDisplayName();
|
||||
|
||||
String getCustomName();
|
||||
|
||||
|
||||
/**
|
||||
* Returns the real tracker behind this tracker. In case this tracker
|
||||
* transforms another tracker like {@link ReferenceAdjustedTracker}, this
|
||||
* will return the tracker it modifies. Otherwise, it will return itself.
|
||||
*/
|
||||
Tracker get();
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user