com.bugvm.apple.scenekit.SCNView Maven / Gradle / Ivy
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bugvm.apple.scenekit;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.uikit.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coreanimation.*;
import com.bugvm.apple.dispatch.*;
import com.bugvm.apple.glkit.*;
import com.bugvm.apple.spritekit.*;
import com.bugvm.apple.opengles.*;
/* */
/**/
/* */
/**/@Library("SceneKit") @NativeClass/* */
/**/public/* */ class /**/SCNView/* */
extends /**/UIView/* */
/**/implements SCNSceneRenderer, SCNTechniqueSupport/* */ {
/**/public static class SCNViewPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(SCNView.class); }/* */
/**//* */
/**/
public SCNView() {}
protected SCNView(SkipInit skipInit) { super(skipInit); }
public SCNView(@ByVal CGRect frame, NSDictionary options) { super((SkipInit) null); initObject(init(frame, options)); }
/* */
public SCNView(CGRect frame) {
super(frame);
}
/**/
@Property(selector = "scene")
public native SCNScene getScene();
@Property(selector = "setScene:")
public native void setScene(SCNScene v);
@Property(selector = "allowsCameraControl")
public native boolean allowsCameraControl();
@Property(selector = "setAllowsCameraControl:")
public native void setAllowsCameraControl(boolean v);
@Property(selector = "eaglContext")
public native EAGLContext getEaglContext();
@Property(selector = "setEaglContext:")
public native void setEaglContext(EAGLContext v);
@Property(selector = "preferredFramesPerSecond")
public native @MachineSizedSInt long getPreferredFramesPerSecond();
@Property(selector = "setPreferredFramesPerSecond:")
public native void setPreferredFramesPerSecond(@MachineSizedSInt long v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "antialiasingMode")
public native SCNAntialiasingMode getAntialiasingMode();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setAntialiasingMode:")
public native void setAntialiasingMode(SCNAntialiasingMode v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "sceneTime")
public native double getSceneTime();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setSceneTime:")
public native void setSceneTime(double v);
@Property(selector = "delegate")
public native SCNSceneRendererDelegate getDelegate();
@Property(selector = "setDelegate:", strongRef = true)
public native void setDelegate(SCNSceneRendererDelegate v);
@Property(selector = "isPlaying")
public native boolean isPlaying();
@Property(selector = "setPlaying:")
public native void setPlaying(boolean v);
@Property(selector = "loops")
public native boolean loops();
@Property(selector = "setLoops:")
public native void setLoops(boolean v);
@Property(selector = "pointOfView")
public native SCNNode getPointOfView();
@Property(selector = "setPointOfView:")
public native void setPointOfView(SCNNode v);
@Property(selector = "autoenablesDefaultLighting")
public native boolean autoenablesDefaultLighting();
@Property(selector = "setAutoenablesDefaultLighting:")
public native void setAutoenablesDefaultLighting(boolean v);
@Property(selector = "isJitteringEnabled")
public native boolean isJitteringEnabled();
@Property(selector = "setJitteringEnabled:")
public native void setJitteringEnabled(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "showsStatistics")
public native boolean showsStatistics();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setShowsStatistics:")
public native void setShowsStatistics(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@WeaklyLinked
@Property(selector = "overlaySKScene")
public native SKScene getOverlaySKScene();
/**
* @since Available in iOS 8.0 and later.
*/
@WeaklyLinked
@Property(selector = "setOverlaySKScene:")
public native void setOverlaySKScene(SKScene v);
@WeaklyLinked
@Property(selector = "context")
public native EAGLContext getContext();
@Property(selector = "technique")
public native SCNTechnique getTechnique();
@Property(selector = "setTechnique:")
public native void setTechnique(SCNTechnique v);
/* */
/**//* */
/**/
@Method(selector = "initWithFrame:options:")
protected native @Pointer long init(@ByVal CGRect frame, NSDictionary options);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "snapshot")
public native UIImage snapshot();
@Method(selector = "play:")
public native void play(NSObject sender);
@Method(selector = "pause:")
public native void pause(NSObject sender);
@Method(selector = "stop:")
public native void stop(NSObject sender);
@Method(selector = "hitTest:options:")
public native NSArray hitTest(@ByVal CGPoint thePoint, SCNHitTestOptions options);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "isNodeInsideFrustum:withPointOfView:")
public native boolean isNodeInsideFrustum(SCNNode node, SCNNode pointOfView);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "projectPoint:")
public native @ByVal SCNVector3 projectPoint(@ByVal SCNVector3 point);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "unprojectPoint:")
public native @ByVal SCNVector3 unprojectPoint(@ByVal SCNVector3 point);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "prepareObject:shouldAbortBlock:")
public native boolean prepareObject(NSObject object, @Block Block0 block);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "prepareObjects:withCompletionHandler:")
public native void prepareObjects(NSArray> objects, @Block VoidBooleanBlock completionHandler);
/* */
}