HoloLens 2 Gait Training
The purpose of this project is to create gait training application.
Loading...
Searching...
No Matches
DataExporter Class Reference

This class is a helper class used to export data to files. More...

Inheritance diagram for DataExporter:
Inheritance graph
Collaboration diagram for DataExporter:
Collaboration graph

Public Member Functions

void ExportDataFiles ()
 This function start a Coroutine to export data Mapped to export data button. More...
 

Private Member Functions

void Start ()
 Initialize persistentDataPath More...
 
IEnumerator ExportFiles ()
 This function exports signal data and left/right heel strike time stamps. More...
 
async void ExportGenericFiles (string name, TextMeshPro label, List< float > valList)
 Export the data currently being used in the walking trials.
More...
 
async Task WriteToFile (string path, float line)
 Asynchronously write and append line by line to a file. The using statement before the StreamWrite also closes the StreamReader. So, no need to close it. More...
 
void CheckFileExists (string path, TextMeshPro label)
 Check the file exists and set the name of last file generated by the user. More...
 

Private Attributes

TextMeshPro m_LastFileLabel
 
TextMeshPro m_SignalFileLabel
 
TextMeshPro m_AnimLenLabel
 
AvatarAnimationState m_AvatarAnimationState = null
 Need this to access heel strike time stamps. More...
 
bool m_CoroutineIsRunning = false
 Check Coroutine is running or not. This is to prevent calling for multiple coroutines. More...
 
string m_DirectoryLocation = null
 Directory location where files stored. C:\Users\yourname\AppData\LocalLow\DefaultCompany_BarMetronome. More...
 

Detailed Description

This class is a helper class used to export data to files.

Definition at line 13 of file DataExporter.cs.

Member Function Documentation

◆ CheckFileExists()

void DataExporter.CheckFileExists ( string  path,
TextMeshPro  label 
)
inlineprivate

Check the file exists and set the name of last file generated by the user.

Definition at line 153 of file DataExporter.cs.

Here is the caller graph for this function:

◆ ExportDataFiles()

void DataExporter.ExportDataFiles ( )
inline

This function start a Coroutine to export data Mapped to export data button.

Definition at line 44 of file DataExporter.cs.

Here is the call graph for this function:

◆ ExportFiles()

IEnumerator DataExporter.ExportFiles ( )
inlineprivate

This function exports signal data and left/right heel strike time stamps.

Definition at line 59 of file DataExporter.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExportGenericFiles()

async void DataExporter.ExportGenericFiles ( string  name,
TextMeshPro  label,
List< float >  valList 
)
inlineprivate

Export the data currently being used in the walking trials.

Definition at line 83 of file DataExporter.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Start()

void DataExporter.Start ( )
inlineprivate

Initialize persistentDataPath

Definition at line 35 of file DataExporter.cs.

◆ WriteToFile()

async Task DataExporter.WriteToFile ( string  path,
float  line 
)
inlineprivate

Asynchronously write and append line by line to a file. The using statement before the StreamWrite also closes the StreamReader. So, no need to close it.

Returns

Definition at line 135 of file DataExporter.cs.

Here is the caller graph for this function:

Field Documentation

◆ m_AnimLenLabel

TextMeshPro DataExporter.m_AnimLenLabel
private

Definition at line 19 of file DataExporter.cs.

◆ m_AvatarAnimationState

AvatarAnimationState DataExporter.m_AvatarAnimationState = null
private

Need this to access heel strike time stamps.

Definition at line 22 of file DataExporter.cs.

◆ m_CoroutineIsRunning

bool DataExporter.m_CoroutineIsRunning = false
private

Check Coroutine is running or not. This is to prevent calling for multiple coroutines.

Definition at line 26 of file DataExporter.cs.

◆ m_DirectoryLocation

string DataExporter.m_DirectoryLocation = null
private

Directory location where files stored. C:\Users\yourname\AppData\LocalLow\DefaultCompany_BarMetronome.

Definition at line 30 of file DataExporter.cs.

◆ m_LastFileLabel

TextMeshPro DataExporter.m_LastFileLabel
private

Definition at line 17 of file DataExporter.cs.

◆ m_SignalFileLabel

TextMeshPro DataExporter.m_SignalFileLabel
private

Definition at line 18 of file DataExporter.cs.


The documentation for this class was generated from the following file: