Class SCNMaterialProperty

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, SCNAnimatable, ObjCProtocol

public class SCNMaterialProperty
extends NSObject
implements SCNAnimatable, NSSecureCoding
  • Constructor Details

    • SCNMaterialProperty

      public SCNMaterialProperty()
    • SCNMaterialProperty

      protected SCNMaterialProperty​(NSObject.Handle h, long handle)
    • SCNMaterialProperty

      protected SCNMaterialProperty​(NSObject.SkipInit skipInit)
    • SCNMaterialProperty

      public SCNMaterialProperty​(NSCoder coder)
  • Method Details

    • getContents

      public NSObject getContents()
    • setContents

      public void setContents​(NSObject v)
    • getIntensity

      public double getIntensity()
    • setIntensity

      public void setIntensity​(double v)
    • getMinificationFilter

      public SCNFilterMode getMinificationFilter()
    • setMinificationFilter

      public void setMinificationFilter​(SCNFilterMode v)
    • getMagnificationFilter

      public SCNFilterMode getMagnificationFilter()
    • setMagnificationFilter

      public void setMagnificationFilter​(SCNFilterMode v)
    • getMipFilter

      public SCNFilterMode getMipFilter()
    • setMipFilter

      public void setMipFilter​(SCNFilterMode v)
    • getContentsTransform

      public SCNMatrix4 getContentsTransform()
    • setContentsTransform

      public void setContentsTransform​(SCNMatrix4 v)
    • getWrapS

      public SCNWrapMode getWrapS()
    • setWrapS

      public void setWrapS​(SCNWrapMode v)
    • getWrapT

      public SCNWrapMode getWrapT()
    • setWrapT

      public void setWrapT​(SCNWrapMode v)
    • getMappingChannel

      public long getMappingChannel()
    • setMappingChannel

      public void setMappingChannel​(long v)
    • getTextureComponents

      public SCNColorMask getTextureComponents()
      Since:
      Available in iOS 11.0 and later.
    • setTextureComponents

      public void setTextureComponents​(SCNColorMask v)
      Since:
      Available in iOS 11.0 and later.
    • getMaxAnisotropy

      public double getMaxAnisotropy()
    • setMaxAnisotropy

      public void setMaxAnisotropy​(double v)
    • getBorderColor

      @Deprecated public NSObject getBorderColor()
      Deprecated.
      Deprecated in iOS 10.0. Deprecated
    • setBorderColor

      @Deprecated public void setBorderColor​(NSObject v)
      Deprecated.
      Deprecated in iOS 10.0. Deprecated
    • getAnimationKeys

      public NSArray<NSString> getAnimationKeys()
      Specified by:
      getAnimationKeys in interface SCNAnimatable
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • create

      public static SCNMaterialProperty create​(NSObject contents)
    • addAnimation

      public void addAnimation​(SCNAnimationProtocol animation, String key)
      Specified by:
      addAnimation in interface SCNAnimatable
    • addAnimationPlayer

      public void addAnimationPlayer​(SCNAnimationPlayer player, String key)
      Specified by:
      addAnimationPlayer in interface SCNAnimatable
      Since:
      Available in iOS 11.0 and later.
    • removeAllAnimations

      public void removeAllAnimations()
      Specified by:
      removeAllAnimations in interface SCNAnimatable
    • removeAllAnimations

      public void removeAllAnimations​(double duration)
      Specified by:
      removeAllAnimations in interface SCNAnimatable
      Since:
      Available in iOS 15.0 and later.
    • removeAnimation

      public void removeAnimation​(String key)
      Specified by:
      removeAnimation in interface SCNAnimatable
    • removeAnimationForKey

      public void removeAnimationForKey​(String key, double duration)
      Specified by:
      removeAnimationForKey in interface SCNAnimatable
      Since:
      Available in iOS 11.0 and later.
    • animationPlayerForKey

      public SCNAnimationPlayer animationPlayerForKey​(String key)
      Specified by:
      animationPlayerForKey in interface SCNAnimatable
      Since:
      Available in iOS 11.0 and later.
    • removeAnimation

      @Deprecated public void removeAnimation​(String key, double duration)
      Deprecated.
      Deprecated in iOS 11.0. Use -removeAnimationForKey:blendOutDuration:
      Specified by:
      removeAnimation in interface SCNAnimatable
    • getAnimation

      @Deprecated public CAAnimation getAnimation​(String key)
      Deprecated.
      Deprecated in iOS 11.0. Use -animationPlayerForKey:
      Specified by:
      getAnimation in interface SCNAnimatable
    • pauseAnimation

      @Deprecated public void pauseAnimation​(String key)
      Deprecated.
      Deprecated in iOS 11.0. Use -[SCNAnimationPlayer setPaused:] instead
      Specified by:
      pauseAnimation in interface SCNAnimatable
    • resumeAnimation

      @Deprecated public void resumeAnimation​(String key)
      Deprecated.
      Deprecated in iOS 11.0. Use -[SCNAnimationPlayer setPaused:] instead
      Specified by:
      resumeAnimation in interface SCNAnimatable
    • setSpeed

      @Deprecated public void setSpeed​(double speed, String key)
      Deprecated.
      Deprecated in iOS 11.0. Use -[SCNAnimationPlayer setSpeed:] instead
      Specified by:
      setSpeed in interface SCNAnimatable
      Since:
      Available in iOS 10.0 and later.
    • isAnimationPaused

      @Deprecated public boolean isAnimationPaused​(String key)
      Deprecated.
      Deprecated in iOS 11.0. Use -[SCNAnimationPlayer paused] instead
      Specified by:
      isAnimationPaused in interface SCNAnimatable
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)