Interhaptics SDK for Unity 1.6
Loading...
Searching...
No Matches
Interhaptics.Platforms.Mobile.Tools.ParameterCurve Class Reference
Inheritance diagram for Interhaptics.Platforms.Mobile.Tools.ParameterCurve:
Interhaptics.Platforms.Mobile.Tools.PatternObject

Public Member Functions

override string ToJson ()
 
- Public Member Functions inherited from Interhaptics.Platforms.Mobile.Tools.PatternObject
string ToJson ()
 

Public Attributes

ParameterID parameterID = ParameterID.HapticIntensityControl
 
double Time = 0
 
List< ParameterCurveControlPointparameterCurveControlPoints
 

Detailed Description

Definition at line 326 of file iOSUtilities.cs.

Member Function Documentation

◆ ToJson()

override string Interhaptics.Platforms.Mobile.Tools.ParameterCurve.ToJson ( )

Definition at line 329 of file iOSUtilities.cs.

330 {
331 string json = "";
332
333 string pccp = "\"ParameterCurveControlPoints\": [";
334
335 if (parameterCurveControlPoints.Count > 0)
336 {
337 for (int i = 0; i < parameterCurveControlPoints.Count; i++)
338 {
339 if (i > 0)
340 {
341 pccp += ", ";
342 }
343
344 pccp += "{" + "" +
345 "\"Time\": " + parameterCurveControlPoints[i].Time + "," +
346 "\"ParameterValue\": " + parameterCurveControlPoints[i].ParameterValue +
347 "}";
348 }
349 }
350 pccp += "]";
351
352 json += "{" +
353 "\"ParameterCurve\": {" +
354 "\"ParameterID\": \"" + parameterID.ToString() + "\"," +
355 "\"Time\": " + Time + "," +
356 pccp +
357 "}" +
358 "}";
359
360 return json;
361 }
List< ParameterCurveControlPoint > parameterCurveControlPoints

Member Data Documentation

◆ parameterCurveControlPoints

List<ParameterCurveControlPoint> Interhaptics.Platforms.Mobile.Tools.ParameterCurve.parameterCurveControlPoints

Definition at line 365 of file iOSUtilities.cs.

◆ parameterID

ParameterID Interhaptics.Platforms.Mobile.Tools.ParameterCurve.parameterID = ParameterID.HapticIntensityControl

Definition at line 363 of file iOSUtilities.cs.

◆ Time

double Interhaptics.Platforms.Mobile.Tools.ParameterCurve.Time = 0

Definition at line 364 of file iOSUtilities.cs.


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