public class SCNGeometrySource extends NSObject implements NSSecureCoding
A geometry source contains geometry data for a specific semantic. The data format is described by properties.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
SCNGeometrySource(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static SCNGeometrySource |
alloc() |
static SCNGeometrySource |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
long |
bytesPerComponent()
[@property] bytesPerComponent
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
long |
componentsPerVector()
[@property] componentsPerVector
|
NSData |
data()
[@property] data
|
long |
dataOffset()
[@property] dataOffset
|
long |
dataStride()
[@property] dataStride
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
boolean |
floatComponents()
[@property] floatComponents
|
static SCNGeometrySource |
geometrySourceWithBufferVertexFormatSemanticVertexCountDataOffsetDataStride(MTLBuffer buffer,
long vertexFormat,
java.lang.String semantic,
long vertexCount,
long offset,
long stride)
geometrySourceWithBuffer:semantic:vectorCount:floatComponents:componentsPerVector:bytesPerComponent:dataOffset:dataStride:
|
static SCNGeometrySource |
geometrySourceWithDataSemanticVectorCountFloatComponentsComponentsPerVectorBytesPerComponentDataOffsetDataStride(NSData data,
java.lang.String semantic,
long vectorCount,
boolean floatComponents,
long componentsPerVector,
long bytesPerComponent,
long offset,
long stride)
geometrySourceWithData:semantic:vectorCount:floatComponents:componentsPerVector:bytesPerComponent:dataOffset:dataStride:
|
static SCNGeometrySource |
geometrySourceWithNormalsCount(org.moe.natj.general.ptr.ConstPtr<SCNVector3> normals,
long count)
geometrySourceWithNormals:count:
|
static SCNGeometrySource |
geometrySourceWithTextureCoordinatesCount(org.moe.natj.general.ptr.ConstPtr<CGPoint> texcoord,
long count)
geometrySourceWithTextureCoordinates:count:
|
static SCNGeometrySource |
geometrySourceWithVerticesCount(org.moe.natj.general.ptr.ConstPtr<SCNVector3> vertices,
long count)
geometrySourceWithVertices:count:
|
static long |
hash_static() |
SCNGeometrySource |
init() |
SCNGeometrySource |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static SCNGeometrySource |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
java.lang.String |
semantic()
[@property] semantic
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
long |
vectorCount()
[@property] vectorCount
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static SCNGeometrySource alloc()
public static SCNGeometrySource allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static SCNGeometrySource geometrySourceWithBufferVertexFormatSemanticVertexCountDataOffsetDataStride(MTLBuffer buffer, long vertexFormat, java.lang.String semantic, long vertexCount, long offset, long stride)
Creates and returns a geometry source from the given data and parameters.
Attempting to modify the Metal buffer outside the SCNSceneRenderer delegate callbacks is undefined. The typical usage it to modify the MTLBuffer within the willRenderScene callback, using a compute kernel or a vertex function in the user own command buffer. So something like:
- (void)renderer:(id
// get a compute command encoder
id
// configure the compute command encoder's pipeline state, buffer inputs etc...
//...
// dispatch the
[myComputeCommandEncoder dispatchThreadgroups:numberOfWorkingGroups threadsPerThreadgroup:numberOfThreads];
[myComputeCommandEncoder endEncoding];
[myCommandBuffer commit];
}
buffer - A Metal buffer.vertexFormat - The vertex format.semantic - The semantic of the geometry source.vertexCount - The number of vertex.offset - The offset from the beginning of the data. In bytes.stride - The number of bytes from a vector to the next one in the data.public static SCNGeometrySource geometrySourceWithDataSemanticVectorCountFloatComponentsComponentsPerVectorBytesPerComponentDataOffsetDataStride(NSData data, java.lang.String semantic, long vectorCount, boolean floatComponents, long componentsPerVector, long bytesPerComponent, long offset, long stride)
Creates and returns a geometry source from the given data and parameters.
data - The geometry data.semantic - The semantic of the geometry source.vectorCount - The number of geometry source vectors.floatComponents - A flag that indicates if vector components are floating point values.componentsPerVector - The number of scalar components in a vector.bytesPerComponent - The number of bytes that represent a vector component.offset - The offset from the beginning of the data. In bytes.stride - The number of bytes from a vector to the next one in the data.public static SCNGeometrySource geometrySourceWithNormalsCount(org.moe.natj.general.ptr.ConstPtr<SCNVector3> normals, long count)
Creates and returns a geometry source from normals stored in a buffer of SCNVector3 values.
Input normals are copied to an optimized data format. The actual format is described by the properties of the resulting instance.
normals - The buffer of normals.count - The number of normals.public static SCNGeometrySource geometrySourceWithTextureCoordinatesCount(org.moe.natj.general.ptr.ConstPtr<CGPoint> texcoord, long count)
Creates and returns a geometry source from texture coordinates stored in a buffer of CGPoint values.
Input texture coordinates are copied to an optimized data format. The actual format is described by the properties of the resulting instance.
texcoord - The buffer of texture coordinates.count - The number of texture coordinate points.public static SCNGeometrySource geometrySourceWithVerticesCount(org.moe.natj.general.ptr.ConstPtr<SCNVector3> vertices, long count)
Creates and returns a geometry source from vertices stored in a buffer of SCNVector3 values.
Input vertices are copied to an optimized data format. The actual format is described by the properties of the resulting instance.
vertices - The buffer of vertices.count - The number of vertices.public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static SCNGeometrySource new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public long bytesPerComponent()
The size of a vector component in bytes.
public long componentsPerVector()
The number of scalar components in each vector.
public NSData data()
The data for the geometry source
public long dataOffset()
The offset from the beginning of the data. In bytes.
public long dataStride()
The number of bytes from a vector to the next one in the data.
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic boolean floatComponents()
A flag that indicates if vector components are floating point values.
public SCNGeometrySource init()
public SCNGeometrySource initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic java.lang.String semantic()
The semantic of the geometry source
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic long vectorCount()
The number of vectors in the data.