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
    • Constructor Detail

      • MDLSubmesh

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

        public static 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • 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)
      • 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

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

        public 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​(MDLMeshBuffer indexBuffer,
                                                                                     long indexCount,
                                                                                     long indexType,
                                                                                     long geometryType,
                                                                                     MDLMaterial material)
        initWithIndexBuffer:indexCount:indexType:geometryType:material: Initialize submesh with all data necessary to make properties valid
      • initWithMDLSubmeshIndexTypeGeometryType

        public MDLSubmesh initWithMDLSubmeshIndexTypeGeometryType​(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​(java.lang.String name,
                                                                                         MDLMeshBuffer indexBuffer,
                                                                                         long indexCount,
                                                                                         long indexType,
                                                                                         long geometryType,
                                                                                         MDLMaterial material)
        initWithName:indexBuffer:indexCount:indexType:geometryType:material: Initialize submesh with all data necessary to make properties valid
      • initWithNameIndexBufferIndexCountIndexTypeGeometryTypeMaterialTopology

        public MDLSubmesh initWithNameIndexBufferIndexCountIndexTypeGeometryTypeMaterialTopology​(java.lang.String name,
                                                                                                 MDLMeshBuffer indexBuffer,
                                                                                                 long indexCount,
                                                                                                 long indexType,
                                                                                                 long geometryType,
                                                                                                 MDLMaterial material,
                                                                                                 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

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

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

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

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

        public void setTopology​(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

        public 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.