Ejemplo n.º 1
0
 public static long getComponentType() {
   return NativeEyePointeeHolder.getComponentType();
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  *
  * @param gvrContext Current {@link GVRContext}
  */
 public GVREyePointeeHolder(GVRContext gvrContext) {
   this(gvrContext, NativeEyePointeeHolder.ctor());
 }
Ejemplo n.º 3
0
 public GVREyePointeeHolder(GVRContext gvrContext, GVRSceneObject owner) {
   this(gvrContext, NativeEyePointeeHolder.ctor(), sCleanup);
   setOwnerObject(owner);
 }
Ejemplo n.º 4
0
 /**
  * Remove a {@link GVREyePointee} from this holder.
  *
  * <p>No exception is thrown if the eye pointee is not held by this holder.
  *
  * @param eyePointee The {@link GVREyePointee} to remove
  */
 public void removePointee(GVREyePointee eyePointee) {
   pointees.remove(eyePointee);
   NativeEyePointeeHolder.removePointee(getNative(), eyePointee.getNative());
 }
Ejemplo n.º 5
0
 /**
  * Add a {@link GVREyePointee} to this holder
  *
  * @param eyePointee The {@link GVREyePointee} to add
  */
 public void addPointee(GVREyePointee eyePointee) {
   pointees.add(eyePointee);
   NativeEyePointeeHolder.addPointee(getNative(), eyePointee.getNative());
 }
Ejemplo n.º 6
0
 /**
  * Get the x, y, z of the point of where the hit occurred in model space
  *
  * @return Three floats representing the x, y, z hit point.
  */
 public float[] getHit() {
   return NativeEyePointeeHolder.getHit(getNative());
 }
Ejemplo n.º 7
0
 /**
  * Enable or disable this holder.
  *
  * <p>If this holder is disabled, then picking will <b>not</b> occur against its {@link
  * GVREyePointee}s.
  *
  * @param enable whether this holder should be enabled.
  */
 public void setEnable(boolean enable) {
   NativeEyePointeeHolder.setEnable(getNative(), enable);
 }
Ejemplo n.º 8
0
 /**
  * Is this holder enabled?
  *
  * <p>If this holder is disabled, then picking will <b>not</b> occur against its {@link
  * GVREyePointee}s.
  *
  * @return true if enabled, false otherwise.
  */
 public boolean getEnable() {
   return NativeEyePointeeHolder.getEnable(getNative());
 }