Esempio n. 1
0
 public static long getComponentType() {
   return NativeEyePointeeHolder.getComponentType();
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  * @param gvrContext Current {@link GVRContext}
  */
 public GVREyePointeeHolder(GVRContext gvrContext) {
   this(gvrContext, NativeEyePointeeHolder.ctor());
 }
Esempio n. 3
0
 public GVREyePointeeHolder(GVRContext gvrContext, GVRSceneObject owner) {
   this(gvrContext, NativeEyePointeeHolder.ctor(), sCleanup);
   setOwnerObject(owner);
 }
Esempio 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());
 }
Esempio 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());
 }
Esempio 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());
 }
Esempio 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);
 }
Esempio 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());
 }