Package apple.modelio

Class MDLSubmesh

  • All Implemented Interfaces:
    MDLNamed, NSObject

    public class MDLSubmesh
    extends NSObject
    implements MDLNamed
    MDLSubmesh A drawable subset of an MDLMesh, with its own material API-Since: 9.0
    • Constructor Detail

      • MDLSubmesh

        protected MDLSubmesh​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static MDLSubmesh allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • submeshWithSCNGeometryElement

        public static MDLSubmesh submeshWithSCNGeometryElement​(@NotNull
                                                               @NotNull SCNGeometryElement scnGeometryElement)
        API-Since: 9.0
      • submeshWithSCNGeometryElementBufferAllocator

        public static MDLSubmesh submeshWithSCNGeometryElementBufferAllocator​(@NotNull
                                                                              @NotNull SCNGeometryElement scnGeometryElement,
                                                                              @Nullable
                                                                              @Nullable MDLMeshBufferAllocator bufferAllocator)
        API-Since: 10.0
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • geometryType

        public long geometryType()
        [@property] geometryType Type of primitive that vertices referenced by the indexBuffer are assembled into
      • indexBuffer

        @NotNull
        public @NotNull MDLMeshBuffer indexBuffer()
        [@property] indexBuffer Index data referencing vertex data in parent mesh
      • indexBufferAsIndexType

        @NotNull
        public @NotNull MDLMeshBuffer indexBufferAsIndexType​(long indexType)
      • indexCount

        public long indexCount()
        [@property] indexCount Number of indices in the indexBuffer
      • indexType

        public long indexType()
        [@property] indexType Data type of indices in indexBuffer Support 8, 16, and 32 bit unsigned integer values
      • initWithIndexBufferIndexCountIndexTypeGeometryTypeMaterial

        public MDLSubmesh initWithIndexBufferIndexCountIndexTypeGeometryTypeMaterial​(@NotNull
                                                                                     @NotNull MDLMeshBuffer indexBuffer,
                                                                                     long indexCount,
                                                                                     long indexType,
                                                                                     long geometryType,
                                                                                     @Nullable
                                                                                     @Nullable MDLMaterial material)
        initWithIndexBuffer:indexCount:indexType:geometryType:material: Initialize submesh with all data necessary to make properties valid
      • initWithMDLSubmeshIndexTypeGeometryType

        public MDLSubmesh initWithMDLSubmeshIndexTypeGeometryType​(@NotNull
                                                                  @NotNull MDLSubmesh submesh,
                                                                  long indexType,
                                                                  long geometryType)
        initWithMDLSubmesh:indexType:geometryType: Initialize submesh using another submesh as input. the resulting submesh will have a new index type if necessary. If a conversion from the source submesh's geometry type to the requested geometry type is possible, conversion will be performed. Otherwise nil will be returned.
      • initWithNameIndexBufferIndexCountIndexTypeGeometryTypeMaterial

        public MDLSubmesh initWithNameIndexBufferIndexCountIndexTypeGeometryTypeMaterial​(@NotNull
                                                                                         @NotNull java.lang.String name,
                                                                                         @NotNull
                                                                                         @NotNull MDLMeshBuffer indexBuffer,
                                                                                         long indexCount,
                                                                                         long indexType,
                                                                                         long geometryType,
                                                                                         @Nullable
                                                                                         @Nullable MDLMaterial material)
        initWithName:indexBuffer:indexCount:indexType:geometryType:material: Initialize submesh with all data necessary to make properties valid
      • initWithNameIndexBufferIndexCountIndexTypeGeometryTypeMaterialTopology

        public MDLSubmesh initWithNameIndexBufferIndexCountIndexTypeGeometryTypeMaterialTopology​(@NotNull
                                                                                                 @NotNull java.lang.String name,
                                                                                                 @NotNull
                                                                                                 @NotNull MDLMeshBuffer indexBuffer,
                                                                                                 long indexCount,
                                                                                                 long indexType,
                                                                                                 long geometryType,
                                                                                                 @Nullable
                                                                                                 @Nullable MDLMaterial material,
                                                                                                 @Nullable
                                                                                                 @Nullable MDLSubmeshTopology topology)
        initWithIndexBuffer:indexCount:indexType:faceTopologyBuffer:geometryType:material: Initialize submesh with all data necessary to make properties valid The geometry type will typically be MDLGeometryTypeVariableTopology, if other types are used the faceTopologyBuffer contents should reflect that.
      • material

        @Nullable
        public @Nullable MDLMaterial material()
        [@property] material Material to apply when rendering this object
      • name

        @NotNull
        public @NotNull java.lang.String name()
        Specified by:
        name in interface MDLNamed
      • setMaterial

        public void setMaterial​(@Nullable
                                @Nullable MDLMaterial value)
        [@property] material Material to apply when rendering this object
      • setName

        public void setName​(@NotNull
                            @NotNull java.lang.String value)
        Specified by:
        setName in interface MDLNamed
      • setTopology

        public void setTopology​(@Nullable
                                @Nullable MDLSubmeshTopology value)
        [@property] topology Topology data structure for use with MDLGeometryTypeVariableTopology ignored for geometry types other than MDLGeometryTypeVariableTopology. A submesh of type MDLGeometryTypeVariableTopology with no topology data is an empty submesh.
      • topology

        @Nullable
        public @Nullable MDLSubmeshTopology topology()
        [@property] topology Topology data structure for use with MDLGeometryTypeVariableTopology ignored for geometry types other than MDLGeometryTypeVariableTopology. A submesh of type MDLGeometryTypeVariableTopology with no topology data is an empty submesh.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.