Package org.robovm.apple.scenekit
Class SCNView
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIResponder
-
- org.robovm.apple.uikit.UIView
-
- org.robovm.apple.scenekit.SCNView
-
- All Implemented Interfaces:
CALayerDelegate
,NSCoding
,NSObjectProtocol
,SCNSceneRenderer
,SCNTechniqueSupport
,UIAccessibility
,UIAccessibilityIdentification
,UIAppearanceContainer
,UICoordinateSpace
,UIDynamicItem
,UIFocusEnvironment
,UIFocusItem
,UIFocusItemContainer
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
ARSCNView
public class SCNView extends UIView implements SCNSceneRenderer, SCNTechniqueSupport
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SCNView.SCNViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIView
UIView.UIViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
Nested classes/interfaces inherited from class org.robovm.objc.ObjCObject
org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super
-
Nested classes/interfaces inherited from interface org.robovm.apple.uikit.UIAccessibility
UIAccessibility.Notifications
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description SCNView()
SCNView(CGRect frame)
SCNView(CGRect frame, NSDictionary<NSString,?> options)
SCNView(NSCoder decoder)
protected
SCNView(NSObject.Handle h, long handle)
protected
SCNView(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.uikit.UIView
addConstraint, addConstraints, addGestureRecognizer, addInteraction, addKeyframe, addLayoutGuide, addMotionEffect, addSubview, animate, animate, animate, animate, animateKeyframes, areAnimationsEnabled, autoresizesSubviews, beginAnimations, bringSubviewToFront, canBecomeFocused, clearsContextBeforeDrawing, clipsToBounds, commitAnimations, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, decodeRestorableState, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocus, displayLayer, draw, draw, drawLayer, drawViewHierarchy, encode, encodeRestorableState, endEditing, exchangeSubview, exerciseAmbiguityInLayout, focusItemsInRect, gestureRecognizerShouldBegin, getAccessibilityIdentifier, getAction, getAlignmentRectForFrame, getAlignmentRectInsets, getAlpha, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getLastBaselineAnchor, getLayer, getLayerClass, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMotionEffects, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTintColor, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getUserInterfaceLayoutDirection, getUserInterfaceLayoutDirection, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, init, init, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, isUserInteractionEnabled, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, needsUpdateConstraints, NoIntrinsicMetric, performSystemAnimation, performWithoutAnimation, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, requiresConstraintBasedLayout, safeAreaInsetsDidChange, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDelegate, setAnimationDidStopSelector, setAnimationDurationInSeconds, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAnimationTransition, setAnimationWillStartSelector, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setContentScaleFactor, setDirectionalLayoutMargins, setExclusiveTouch, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLayoutMargins, setMaskView, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setSemanticContentAttribute, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocus, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubview
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
SCNView
public SCNView()
-
SCNView
protected SCNView(NSObject.Handle h, long handle)
-
SCNView
protected SCNView(NSObject.SkipInit skipInit)
-
SCNView
public SCNView(CGRect frame, NSDictionary<NSString,?> options)
-
SCNView
public SCNView(CGRect frame)
-
SCNView
public SCNView(NSCoder decoder)
-
-
Method Detail
-
getScene
public SCNScene getScene()
- Specified by:
getScene
in interfaceSCNSceneRenderer
-
setScene
public void setScene(SCNScene v)
- Specified by:
setScene
in interfaceSCNSceneRenderer
-
isRendersContinuously
public boolean isRendersContinuously()
-
setRendersContinuously
public void setRendersContinuously(boolean v)
-
allowsCameraControl
public boolean allowsCameraControl()
-
setAllowsCameraControl
public void setAllowsCameraControl(boolean v)
-
getCameraControlConfiguration
public SCNCameraControlConfiguration getCameraControlConfiguration()
- Since:
- Available in iOS 11.0 and later.
-
getDefaultCameraController
public SCNCameraController getDefaultCameraController()
- Since:
- Available in iOS 11.0 and later.
-
getPreferredFramesPerSecond
public long getPreferredFramesPerSecond()
-
setPreferredFramesPerSecond
public void setPreferredFramesPerSecond(long v)
-
getEaglContext
public EAGLContext getEaglContext()
-
setEaglContext
public void setEaglContext(EAGLContext v)
-
getAntialiasingMode
public SCNAntialiasingMode getAntialiasingMode()
-
setAntialiasingMode
public void setAntialiasingMode(SCNAntialiasingMode v)
-
getSceneTime
public double getSceneTime()
- Specified by:
getSceneTime
in interfaceSCNSceneRenderer
-
setSceneTime
public void setSceneTime(double v)
- Specified by:
setSceneTime
in interfaceSCNSceneRenderer
-
getDelegate
public SCNSceneRendererDelegate getDelegate()
- Specified by:
getDelegate
in interfaceSCNSceneRenderer
-
setDelegate
public void setDelegate(SCNSceneRendererDelegate v)
- Specified by:
setDelegate
in interfaceSCNSceneRenderer
-
isPlaying
public boolean isPlaying()
- Specified by:
isPlaying
in interfaceSCNSceneRenderer
-
setPlaying
public void setPlaying(boolean v)
- Specified by:
setPlaying
in interfaceSCNSceneRenderer
-
loops
public boolean loops()
- Specified by:
loops
in interfaceSCNSceneRenderer
-
setLoops
public void setLoops(boolean v)
- Specified by:
setLoops
in interfaceSCNSceneRenderer
-
getPointOfView
public SCNNode getPointOfView()
- Specified by:
getPointOfView
in interfaceSCNSceneRenderer
-
setPointOfView
public void setPointOfView(SCNNode v)
- Specified by:
setPointOfView
in interfaceSCNSceneRenderer
-
autoenablesDefaultLighting
public boolean autoenablesDefaultLighting()
- Specified by:
autoenablesDefaultLighting
in interfaceSCNSceneRenderer
-
setAutoenablesDefaultLighting
public void setAutoenablesDefaultLighting(boolean v)
- Specified by:
setAutoenablesDefaultLighting
in interfaceSCNSceneRenderer
-
isJitteringEnabled
public boolean isJitteringEnabled()
- Specified by:
isJitteringEnabled
in interfaceSCNSceneRenderer
-
setJitteringEnabled
public void setJitteringEnabled(boolean v)
- Specified by:
setJitteringEnabled
in interfaceSCNSceneRenderer
-
showsStatistics
public boolean showsStatistics()
- Specified by:
showsStatistics
in interfaceSCNSceneRenderer
-
setShowsStatistics
public void setShowsStatistics(boolean v)
- Specified by:
setShowsStatistics
in interfaceSCNSceneRenderer
-
getDebugOptions
public SCNDebugOptions getDebugOptions()
- Specified by:
getDebugOptions
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
setDebugOptions
public void setDebugOptions(SCNDebugOptions v)
- Specified by:
setDebugOptions
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getOverlaySKScene
public SKScene getOverlaySKScene()
- Specified by:
getOverlaySKScene
in interfaceSCNSceneRenderer
-
setOverlaySKScene
public void setOverlaySKScene(SKScene v)
- Specified by:
setOverlaySKScene
in interfaceSCNSceneRenderer
-
getRenderingAPI
public SCNRenderingAPI getRenderingAPI()
- Specified by:
getRenderingAPI
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getContext
public EAGLContext getContext()
- Specified by:
getContext
in interfaceSCNSceneRenderer
-
getCurrentRenderCommandEncoder
public MTLRenderCommandEncoder getCurrentRenderCommandEncoder()
- Specified by:
getCurrentRenderCommandEncoder
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getDevice
public MTLDevice getDevice()
- Specified by:
getDevice
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getColorPixelFormat
public MTLPixelFormat getColorPixelFormat()
- Specified by:
getColorPixelFormat
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getDepthPixelFormat
public MTLPixelFormat getDepthPixelFormat()
- Specified by:
getDepthPixelFormat
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getStencilPixelFormat
public MTLPixelFormat getStencilPixelFormat()
- Specified by:
getStencilPixelFormat
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getCommandQueue
public MTLCommandQueue getCommandQueue()
- Specified by:
getCommandQueue
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getAudioEngine
public AVAudioEngine getAudioEngine()
- Specified by:
getAudioEngine
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getAudioEnvironmentNode
public AVAudioEnvironmentNode getAudioEnvironmentNode()
- Specified by:
getAudioEnvironmentNode
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getAudioListener
public SCNNode getAudioListener()
- Specified by:
getAudioListener
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
setAudioListener
public void setAudioListener(SCNNode v)
- Specified by:
setAudioListener
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
getTechnique
public SCNTechnique getTechnique()
- Specified by:
getTechnique
in interfaceSCNTechniqueSupport
-
setTechnique
public void setTechnique(SCNTechnique v)
- Specified by:
setTechnique
in interfaceSCNTechniqueSupport
-
SCNPreferredRenderingAPIKey
public static java.lang.String SCNPreferredRenderingAPIKey()
- Since:
- Available in iOS 9.0 and later.
-
SCNPreferredDeviceKey
public static java.lang.String SCNPreferredDeviceKey()
- Since:
- Available in iOS 9.0 and later.
-
SCNPreferLowPowerDeviceKey
public static java.lang.String SCNPreferLowPowerDeviceKey()
- Since:
- Available in iOS 9.0 and later.
-
init
protected long init(CGRect frame, NSDictionary<NSString,?> options)
-
snapshot
public UIImage snapshot()
-
play
public void play(NSObject sender)
-
pause
public void pause(NSObject sender)
-
stop
public void stop(NSObject sender)
-
presentScene
public void presentScene(SCNScene scene, SKTransition transition, SCNNode pointOfView, java.lang.Runnable completionHandler)
- Specified by:
presentScene
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
hitTest
public NSArray<SCNHitTestResult> hitTest(CGPoint point, SCNHitTestOptions options)
- Specified by:
hitTest
in interfaceSCNSceneRenderer
-
isNodeInsideFrustum
public boolean isNodeInsideFrustum(SCNNode node, SCNNode pointOfView)
- Specified by:
isNodeInsideFrustum
in interfaceSCNSceneRenderer
-
getNodesInsideFrustum
public NSArray<SCNNode> getNodesInsideFrustum(SCNNode pointOfView)
- Specified by:
getNodesInsideFrustum
in interfaceSCNSceneRenderer
- Since:
- Available in iOS 9.0 and later.
-
projectPoint
public SCNVector3 projectPoint(SCNVector3 point)
- Specified by:
projectPoint
in interfaceSCNSceneRenderer
-
unprojectPoint
public SCNVector3 unprojectPoint(SCNVector3 point)
- Specified by:
unprojectPoint
in interfaceSCNSceneRenderer
-
prepareObject
public boolean prepareObject(NSObject object, org.robovm.objc.block.BooleanBlock block)
- Specified by:
prepareObject
in interfaceSCNSceneRenderer
-
prepareObjects
public void prepareObjects(NSArray<?> objects, org.robovm.objc.block.VoidBooleanBlock completionHandler)
- Specified by:
prepareObjects
in interfaceSCNSceneRenderer
-
-