|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectholoedit.functions.ScriptEditorFunctions
public final class ScriptEditorFunctions
This class provides some methods whose names are easily understandable, and that can be used directly in the textArea of the script editor window.
Field Summary | |
---|---|
static GestionPistes[] |
gp
|
Constructor Summary | |
---|---|
private |
ScriptEditorFunctions()
ScriptEditorFunctions is non-instantiable. |
Method Summary | |
---|---|
static java.util.Vector<java.util.Vector<java.lang.Double>> |
getAllDataAtTime(SDIFdataInstance sdifdata,
double scoreTime)
Returns the values corresponding to the given SCORE time in ms if the given time is equal to a key of the holoSDIFdata's map. |
static int |
getBeginDate()
Returns the date at which the score selection begins. |
static int |
getDuration()
Returns the length of the score selection. |
static int |
getEndDate()
Returns the date at which the score selection is ending. |
static java.util.Vector<java.lang.Double> |
getFieldAtTime(SDIFdataInstance sdifdata,
double scoreTime,
int fieldIndex)
Returns The field corresponding to the given field index at the given SCORE time in ms if the given time is equal to a key of the holoSDIFdata's map. |
static SDIFdataInstance |
getSDIFdata(java.lang.String sdifdataDesc)
Returns the holoSDIFdata that corresponds to the given description sdifdataDesc. |
static java.lang.Double[] |
getTimes(SDIFdataInstance sdifdata)
Returns an array of double values corresponding to the frame times of the given sdifdata, and listed in natural order. |
static double |
getTimesCount(SDIFdataInstance sdifdata)
Returns the number of time samples that are contained by the given HoloSDIFdata. |
static HoloPoint |
getTrajectoryPoint(int pointIndex)
Returns A point of the selected trajectory, according to the given index. |
static int |
getTrajectorySize()
Returns The number of points of the selected trajectory. |
static boolean |
hasDataAtTime(SDIFdataInstance sdifdata,
double time)
|
static int |
howManyDataAtTime(SDIFdataInstance sdifdata,
double scoreTime)
Returns the number of values contained by the sdifdata at the given SCORE time in ms |
static double |
maxFieldValue(SDIFdataInstance sdifdata,
int fieldIndex)
Returns the largest value obtained from the sdifdata's field that corresponds to the given fieldIndex. |
static double |
meanFieldValue(SDIFdataInstance sdifdata,
int fieldIndex)
Returns the mean value obtained from the sdifdata's field that corresponds to the given fieldIndex. |
static double |
minFieldValue(SDIFdataInstance sdifdata,
int fieldIndex)
Returns the smallest value obtained from the sdifdata for the field corresponding to the given fieldIndex. |
static double |
rangeFieldValue(SDIFdataInstance sdifdata,
int fieldIndex)
Returns the range (i.e. maxValue-minValue) of the sdifdata's field that corresponds to the given fieldIndex. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static GestionPistes[] gp
Constructor Detail |
---|
private ScriptEditorFunctions()
Method Detail |
---|
public static SDIFdataInstance getSDIFdata(java.lang.String sdifdataDesc)
sdifdataDesc
- the description of an holoSDIFdata located in the score.
public static java.util.Vector<java.util.Vector<java.lang.Double>> getAllDataAtTime(SDIFdataInstance sdifdata, double scoreTime)
public static java.util.Vector<java.lang.Double> getFieldAtTime(SDIFdataInstance sdifdata, double scoreTime, int fieldIndex)
public static int howManyDataAtTime(SDIFdataInstance sdifdata, double scoreTime)
public static java.lang.Double[] getTimes(SDIFdataInstance sdifdata)
public static boolean hasDataAtTime(SDIFdataInstance sdifdata, double time)
public static double getTimesCount(SDIFdataInstance sdifdata)
public static double minFieldValue(SDIFdataInstance sdifdata, int fieldIndex)
public static double maxFieldValue(SDIFdataInstance sdifdata, int fieldIndex)
public static double meanFieldValue(SDIFdataInstance sdifdata, int fieldIndex)
public static double rangeFieldValue(SDIFdataInstance sdifdata, int fieldIndex)
public static int getBeginDate()
public static int getEndDate()
public static int getDuration()
public static HoloPoint getTrajectoryPoint(int pointIndex)
pointIndex
- Index of the point.
public static int getTrajectorySize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |