public class GKNoise extends NSObject
GKNoiseSource,
GKNoiseMapNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
GKNoise(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addWithNoise(GKNoise noise)
Adds all noise values by the noise values at the same position in specified noise.
|
static GKNoise |
alloc() |
static GKNoise |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
void |
applyAbsoluteValue()
Takes the absoltue value of all noise positions.
|
void |
applyTurbulenceWithFrequencyPowerRoughnessSeed(double frequency,
double power,
int roughness,
int seed)
Applies a turbulent displacement to all noise values.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
void |
clampWithLowerBoundUpperBound(double lowerBound,
double upperBound)
Clamps all noise values to the specified bounds.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
displaceXWithNoiseYWithNoiseZWithNoise(GKNoise xDisplacementNoise,
GKNoise yDisplacementNoise,
GKNoise zDisplacementNoise)
Displaces all noise values by the values at the same positions of the specified noises.
|
NSDictionary<? extends NSNumber,? extends UIColor> |
gradientColors()
Color gradient of this noise, represented as 'value : color' pairs.
|
static long |
hash_static() |
GKNoise |
init()
Initializes a constant noise of 0.0 at all positions.
|
GKNoise |
initWithNoiseSource(GKNoiseSource noiseSource)
Initializes a noise with the specified noise source.
|
GKNoise |
initWithNoiseSourceGradientColors(GKNoiseSource noiseSource,
NSDictionary<? extends NSNumber,? extends UIColor> gradientColors)
Initializes a noise with the specified noise source and parameters.
|
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) |
void |
invert()
Inverts all noise values, from positive to negative and vice versa.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
void |
maximumWithNoise(GKNoise noise)
Takes the maximum value between this noise and the specified noise at each position.
|
void |
minimumWithNoise(GKNoise noise)
Takes the minimum value between this noise and the specified noise at each position.
|
void |
multiplyWithNoise(GKNoise noise)
Multiplies all noise values by the noise values at the same position in specified noise.
|
static GKNoise |
new_objc() |
static GKNoise |
noiseWithComponentNoisesSelectionNoise(NSArray<? extends GKNoise> noises,
GKNoise selectionNoise)
Initializes a composite noise from one or more component noises.
|
static GKNoise |
noiseWithComponentNoisesSelectionNoiseComponentBoundariesBoundaryBlendDistances(NSArray<? extends GKNoise> noises,
GKNoise selectionNoise,
NSArray<? extends NSNumber> componentBoundaries,
NSArray<? extends NSNumber> blendDistances)
Initializes a composite noise from one or more component noises.
|
static GKNoise |
noiseWithNoiseSource(GKNoiseSource noiseSource)
Initializes a noise with the specified noise source.
|
static GKNoise |
noiseWithNoiseSourceGradientColors(GKNoiseSource noiseSource,
NSDictionary<? extends NSNumber,? extends UIColor> gradientColors)
Initializes a noise with the specified noise source and parameters.
|
void |
raiseToPower(double power)
Raises all noise values to the specified power.
|
void |
raiseToPowerWithNoise(GKNoise noise)
Raises all noise values to the power of the value at the same position of the specified noise.
|
void |
remapValuesToCurveWithControlPoints(NSDictionary<? extends NSNumber,? extends NSNumber> controlPoints)
Remaps all noise values to a smooth curve that passes through the specified control points.
|
void |
remapValuesToTerracesWithPeaksTerracesInverted(NSArray<? extends NSNumber> peakInputValues,
boolean inverted)
Remaps all noise values to one or more terraces with peaks.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setGradientColors(NSDictionary<? extends NSNumber,? extends UIColor> value)
Color gradient of this noise, represented as 'value : color' pairs.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
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 GKNoise alloc()
public static GKNoise 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 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 GKNoise new_objc()
public static GKNoise noiseWithComponentNoisesSelectionNoise(NSArray<? extends GKNoise> noises, GKNoise selectionNoise)
noises - The component noises to combine.selectionNoise - The noise that governs which component noise is chosen for each position of the resulting noise.
The range of values is equally-subdivided for each component noise.public static GKNoise noiseWithComponentNoisesSelectionNoiseComponentBoundariesBoundaryBlendDistances(NSArray<? extends GKNoise> noises, GKNoise selectionNoise, NSArray<? extends NSNumber> componentBoundaries, NSArray<? extends NSNumber> blendDistances)
noises - The component noises to combine.selectionNoise - The noise that governs which component noise is chosen for each position of the resulting noise.
The range of values is equally-subdivided for each component noise.componentBoundaries - The noise value boundaries of the selection noise to use for the component noises. Specify
one less boundary than the number of component noises. This is a parallel array to blendDistances.blendDistances - The size of smoothing that is applied to boundaries where two component noises meet. Specify
one less blend distance than the number of component noises. This is a parallel array to componentBoundaries.public static GKNoise noiseWithNoiseSource(GKNoiseSource noiseSource)
noiseSource - The noise source to use to initially populate the 3D noise space.public static GKNoise noiseWithNoiseSourceGradientColors(GKNoiseSource noiseSource, NSDictionary<? extends NSNumber,? extends UIColor> gradientColors)
noiseSource - The noise source to use to initially populate the 3D noise space.gradientColors - The color gradient to use for this noise in 'value : color' pairs.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 long version_static()
public void addWithNoise(GKNoise noise)
noise - The noise from which to add values to this noise.public void applyAbsoluteValue()
public void applyTurbulenceWithFrequencyPowerRoughnessSeed(double frequency,
double power,
int roughness,
int seed)
public void clampWithLowerBoundUpperBound(double lowerBound,
double upperBound)
lowerBound - The noise value lower bound.upperBound - The noise value upper bound.public void displaceXWithNoiseYWithNoiseZWithNoise(GKNoise xDisplacementNoise, GKNoise yDisplacementNoise, GKNoise zDisplacementNoise)
xDisplacementNoise - The noise from which to displace along the x-axis this noise's values at the same positions.yDisplacementNoise - The noise from which to displace along the y-axis this noise's values at the same positions.zDisplacementNoise - The noise from which to displace along the z-axis this noise's values at the same positions.public NSDictionary<? extends NSNumber,? extends UIColor> gradientColors()
public GKNoise init()
public GKNoise initWithNoiseSource(GKNoiseSource noiseSource)
noiseSource - The noise source to use to initially populate the 3D noise space.public GKNoise initWithNoiseSourceGradientColors(GKNoiseSource noiseSource, NSDictionary<? extends NSNumber,? extends UIColor> gradientColors)
noiseSource - The noise source to use to initially populate the 3D noise space.gradientColors - The color gradient to use for this noise in 'value : color' pairs.public void invert()
public void maximumWithNoise(GKNoise noise)
noise - The noise to compare against this noise at each position in determining which to take the maximum value from.public void minimumWithNoise(GKNoise noise)
noise - The noise to compare against this noise at each position in determining which to take the minimum value from.public void multiplyWithNoise(GKNoise noise)
noise - The noise from which to multiply values to this noise.public void raiseToPower(double power)
power - The power to which to raise all noise values.public void raiseToPowerWithNoise(GKNoise noise)
noise - The noise from which to raise this noise's values by.public void remapValuesToCurveWithControlPoints(NSDictionary<? extends NSNumber,? extends NSNumber> controlPoints)
controlPoints - Pairs of 'input : output' values to use as control points for the smooth remapping curve.
Duplicate input values are not permitted.public void remapValuesToTerracesWithPeaksTerracesInverted(NSArray<? extends NSNumber> peakInputValues, boolean inverted)
peakInputValues - Inputs positions of terrace peaks.inverted - Governs the curve direction from peak to peak.public void setGradientColors(NSDictionary<? extends NSNumber,? extends UIColor> value)