|
abstract void | ApplyPattern () |
| Calculate the noise according to the user input. Mapped to NoiseDataPanel ApplyPattern button. More...
|
|
virtual void | GenerateNewDistribution () |
| Generate a new normal(Gaussian) distribution Mapped to NoiseDataPanel NewDistribution button. More...
|
|
virtual void | CanclePattern () |
| Cancel the current noise pattern and reset it with default speed. Mapped to NoiseDataPanel CancelPattern button. More...
|
|
Definition at line 9 of file BaseNoiseClass.cs.
◆ ApplyPattern()
abstract void BaseNoiseClass.ApplyPattern |
( |
| ) |
|
|
pure virtual |
Calculate the noise according to the user input. Mapped to NoiseDataPanel ApplyPattern button.
Implemented in ISONoise, PinkNoise, and WhiteNoise.
◆ Awake()
virtual void BaseNoiseClass.Awake |
( |
| ) |
|
|
inlineprotectedvirtual |
When invoke the scripts performas all the initializations including, Lists, scripts, and noise scaling values such as standard distribution and mean.
Reimplemented in ISONoise, PinkNoise, and WhiteNoise.
Definition at line 93 of file BaseNoiseClass.cs.
◆ CalculateBaseNoise()
abstract void BaseNoiseClass.CalculateBaseNoise |
( |
| ) |
|
|
protectedpure virtual |
◆ CalculateNoise()
abstract void BaseNoiseClass.CalculateNoise |
( |
| ) |
|
|
protectedpure virtual |
◆ CanclePattern()
virtual void BaseNoiseClass.CanclePattern |
( |
| ) |
|
|
inlinevirtual |
Cancel the current noise pattern and reset it with default speed. Mapped to NoiseDataPanel CancelPattern button.
Reimplemented in ISONoise.
Definition at line 197 of file BaseNoiseClass.cs.
◆ ConvertToZScore()
void BaseNoiseClass.ConvertToZScore |
( |
ref List< float > |
basePinkNoiseList | ) |
|
|
inlineprotected |
This converts Z values to Z Score values. May get off a small amount due to round error.
- Parameters
-
Definition at line 156 of file BaseNoiseClass.cs.
◆ ExtractDecimalFromUI()
double BaseNoiseClass.ExtractDecimalFromUI |
( |
string |
textFromUI | ) |
|
|
inlineprotected |
Get the number part from the UI textfields.
- Parameters
-
- Returns
Definition at line 241 of file BaseNoiseClass.cs.
◆ GenerateNewDistribution()
virtual void BaseNoiseClass.GenerateNewDistribution |
( |
| ) |
|
|
inlinevirtual |
◆ GetStandardDeviation()
double BaseNoiseClass.GetStandardDeviation |
( |
ref List< float > |
basePinkNoiseList | ) |
|
|
inlineprotected |
This function calculate the sample Standard Deviation value and return it.
- Parameters
-
- Returns
- Sample Standard Deviation
Definition at line 131 of file BaseNoiseClass.cs.
◆ InitializeNoiseDataPanelObjects()
void BaseNoiseClass.InitializeNoiseDataPanelObjects |
( |
| ) |
|
|
inlineprotected |
Cache the references of NoiseDataPanel gameobjects.
Definition at line 106 of file BaseNoiseClass.cs.
◆ PopulateVariablesWithDataFromUI()
virtual void BaseNoiseClass.PopulateVariablesWithDataFromUI |
( |
| ) |
|
|
inlineprotectedvirtual |
Populate data variables used to alter noise. The data are gained through UI lables which are set by the keyboard input.
Reimplemented in PinkNoise.
Definition at line 270 of file BaseNoiseClass.cs.
◆ SetReadyMessage()
void BaseNoiseClass.SetReadyMessage |
( |
bool |
flag, |
|
|
string |
lbl |
|
) |
| |
|
inlineprotected |
Indicate noise is successgully applied or not.
- Parameters
-
flag | Indicate noise applied or not. |
lbl | Indicate the type of noise. |
Definition at line 222 of file BaseNoiseClass.cs.
◆ SetUITextVisibility()
virtual void BaseNoiseClass.SetUITextVisibility |
( |
| ) |
|
|
inlineprotectedvirtual |
Change the visibility of the text fields according to the noise patterns.
Reimplemented in ISONoise.
Definition at line 258 of file BaseNoiseClass.cs.
◆ m_ApplyButton
GameObject BaseNoiseClass.m_ApplyButton |
|
protected |
◆ m_CurrentPattern
TextMeshPro BaseNoiseClass.m_CurrentPattern |
|
protected |
◆ m_DefaultISOWalkSpeed
const float BaseNoiseClass.m_DefaultISOWalkSpeed = -1.0f |
|
staticprotected |
◆ m_DistributionButton
GameObject BaseNoiseClass.m_DistributionButton |
|
protected |
◆ m_GaussianDistribution
◆ m_Mean
const float BaseNoiseClass.m_Mean = 0.0f |
|
staticprotected |
◆ m_MeanPeriod
float BaseNoiseClass.m_MeanPeriod = 1.0f |
|
protected |
◆ m_MeanPeriodLabel
TextMeshPro BaseNoiseClass.m_MeanPeriodLabel |
|
protected |
◆ m_Multiplier
float BaseNoiseClass.m_Multiplier = 0.0f |
|
protected |
Used this as a multiplier to calculate pink noise.
Definition at line 34 of file BaseNoiseClass.cs.
◆ m_NoiseAppliedFlag
bool BaseNoiseClass.m_NoiseAppliedFlag = false |
|
protected |
This flag will indicate we applied or cancel the noise to animations.
Definition at line 43 of file BaseNoiseClass.cs.
◆ m_NoiseDataPanel
GameObject BaseNoiseClass.m_NoiseDataPanel = null |
|
private |
◆ m_NoiseSTD
const float BaseNoiseClass.m_NoiseSTD = 1.0f |
|
staticprotected |
◆ m_NoiseValueList
List<float> BaseNoiseClass.m_NoiseValueList = null |
|
protected |
This list stores the calculated colored noise values.
Definition at line 52 of file BaseNoiseClass.cs.
◆ m_PreferredSpeedLabel
TextMeshPro BaseNoiseClass.m_PreferredSpeedLabel |
|
protected |
◆ m_PreferredWalkingSpeed
◆ m_SampleSize
int BaseNoiseClass.m_SampleSize = 5000 |
|
protected |
◆ m_SampleSizeLabel
TextMeshPro BaseNoiseClass.m_SampleSizeLabel |
|
protected |
◆ m_SDPeriod
float BaseNoiseClass.m_SDPeriod = 2.0f |
|
protected |
◆ m_SDPeriodLabel
TextMeshPro BaseNoiseClass.m_SDPeriodLabel |
|
protected |
◆ m_StandardNoiseDistribution
List<float> BaseNoiseClass.m_StandardNoiseDistribution = null |
|
protected |
◆ m_Title
TextMeshPro BaseNoiseClass.m_Title |
|
protected |
◆ CurrentPattern
TextMeshPro BaseNoiseClass.CurrentPattern |
|
get |
Property to get the current noise in use (Read-Only)
Definition at line 79 of file BaseNoiseClass.cs.
◆ NoiseAppliedFlag
bool BaseNoiseClass.NoiseAppliedFlag |
|
get |
Property to get noise applied flag (Read-Only)
Definition at line 76 of file BaseNoiseClass.cs.
◆ NoiseDistribution
List<float> BaseNoiseClass.NoiseDistribution |
|
get |
Property to get standard normal(Gaussian) distribution (Read-Only)
Definition at line 85 of file BaseNoiseClass.cs.
◆ NoiseValueList
List<float> BaseNoiseClass.NoiseValueList |
|
get |
Property to get colored noise distribution (Read-Only)
Definition at line 73 of file BaseNoiseClass.cs.
◆ PreferredWalkingSpeed
float BaseNoiseClass.PreferredWalkingSpeed |
|
get |
Property to get user's preferred walking speed (Read-Only)
Definition at line 82 of file BaseNoiseClass.cs.
The documentation for this class was generated from the following file: