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