All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jogamp.oculusvr.ovrSensorState Maven / Gradle / Ivy

There is a newer version: 2.3.2
Show newest version
/* !---- DO NOT EDIT: This file autogenerated by com/jogamp/gluegen/JavaEmitter.java on Thu Aug 07 00:34:50 CEST 2014 ----! */


package com.jogamp.oculusvr;

import java.nio.*;

import com.jogamp.gluegen.runtime.*;
import com.jogamp.common.os.*;
import com.jogamp.common.nio.*;
import jogamp.common.os.MachineDescriptionRuntime;

import com.jogamp.oculusvr.*;
import java.security.AccessController;
import java.security.PrivilegedAction;

public class ovrSensorState {

  StructAccessor accessor;

  private static final int mdIdx = MachineDescriptionRuntime.getStatic().ordinal();

  private static final int[] ovrSensorState_size = new int[] { 184 /* ARMle_EABI */, 176 /* X86_32_UNIX */, 184 /* X86_64_UNIX */, 176 /* X86_32_MACOS */, 184 /* X86_32_WINDOWS */, 184 /* X86_64_WINDOWS */, 184 /* SPARC_32_SUNOS */  };
  private static final int[] Predicted_offset = new int[] { 0 /* ARMle_EABI */, 0 /* X86_32_UNIX */, 0 /* X86_64_UNIX */, 0 /* X86_32_MACOS */, 0 /* X86_32_WINDOWS */, 0 /* X86_64_WINDOWS */, 0 /* SPARC_32_SUNOS */ };
  private static final int[] Predicted_size = new int[] { 88 /* ARMle_EABI */, 84 /* X86_32_UNIX */, 88 /* X86_64_UNIX */, 84 /* X86_32_MACOS */, 88 /* X86_32_WINDOWS */, 88 /* X86_64_WINDOWS */, 88 /* SPARC_32_SUNOS */  };
  private static final int[] Recorded_offset = new int[] { 88 /* ARMle_EABI */, 84 /* X86_32_UNIX */, 88 /* X86_64_UNIX */, 84 /* X86_32_MACOS */, 88 /* X86_32_WINDOWS */, 88 /* X86_64_WINDOWS */, 88 /* SPARC_32_SUNOS */ };
  private static final int[] Recorded_size = new int[] { 88 /* ARMle_EABI */, 84 /* X86_32_UNIX */, 88 /* X86_64_UNIX */, 84 /* X86_32_MACOS */, 88 /* X86_32_WINDOWS */, 88 /* X86_64_WINDOWS */, 88 /* SPARC_32_SUNOS */  };
  private static final int[] Temperature_offset = new int[] { 176 /* ARMle_EABI */, 168 /* X86_32_UNIX */, 176 /* X86_64_UNIX */, 168 /* X86_32_MACOS */, 176 /* X86_32_WINDOWS */, 176 /* X86_64_WINDOWS */, 176 /* SPARC_32_SUNOS */ };
//private static final int[] Temperature_size = new int[] { 4 /* ARMle_EABI */, 4 /* X86_32_UNIX */, 4 /* X86_64_UNIX */, 4 /* X86_32_MACOS */, 4 /* X86_32_WINDOWS */, 4 /* X86_64_WINDOWS */, 4 /* SPARC_32_SUNOS */  };
  private static final int[] StatusFlags_offset = new int[] { 180 /* ARMle_EABI */, 172 /* X86_32_UNIX */, 180 /* X86_64_UNIX */, 172 /* X86_32_MACOS */, 180 /* X86_32_WINDOWS */, 180 /* X86_64_WINDOWS */, 180 /* SPARC_32_SUNOS */ };
//private static final int[] StatusFlags_size = new int[] { 4 /* ARMle_EABI */, 4 /* X86_32_UNIX */, 4 /* X86_64_UNIX */, 4 /* X86_32_MACOS */, 4 /* X86_32_WINDOWS */, 4 /* X86_64_WINDOWS */, 4 /* SPARC_32_SUNOS */  };

  public static int size() {
    return ovrSensorState_size[mdIdx];
  }

  public static ovrSensorState create() {
    return create(Buffers.newDirectByteBuffer(size()));
  }

  public static ovrSensorState create(java.nio.ByteBuffer buf) {
      return new ovrSensorState(buf);
  }

  ovrSensorState(java.nio.ByteBuffer buf) {
    accessor = new StructAccessor(buf);
  }

  public java.nio.ByteBuffer getBuffer() {
    return accessor.getBuffer();
  }

  /** Getter for native field: CType['ovrPoseStatef' (typedef), size [fixed false, lnx64 88], [struct{6}]] */
  public ovrPoseStatef getPredicted() {
    return ovrPoseStatef.create( accessor.slice( Predicted_offset[mdIdx], Predicted_size[mdIdx] ) );
 }

  /** Getter for native field: CType['ovrPoseStatef' (typedef), size [fixed false, lnx64 88], [struct{6}]] */
  public ovrPoseStatef getRecorded() {
    return ovrPoseStatef.create( accessor.slice( Recorded_offset[mdIdx], Recorded_size[mdIdx] ) );
 }

  /** Setter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
  public ovrSensorState setTemperature(float val) {
    accessor.setFloatAt(Temperature_offset[mdIdx], val);
    return this;
  }

  /** Getter for native field: CType['float', size [fixed true, lnx64 4], [float]] */
  public float getTemperature() {
    return accessor.getFloatAt(Temperature_offset[mdIdx]);
  }

  /** Setter for native field: CType['int', size [fixed false, lnx64 4], [int]] */
  public ovrSensorState setStatusFlags(int val) {
    accessor.setIntAt(StatusFlags_offset[mdIdx], val, MachineDescriptionRuntime.getStatic().md.intSizeInBytes());
    return this;
  }

  /** Getter for native field: CType['int', size [fixed false, lnx64 4], [int]] */
  public int getStatusFlags() {
    return accessor.getIntAt(StatusFlags_offset[mdIdx], MachineDescriptionRuntime.getStatic().md.intSizeInBytes());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy