|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectholoedit.data.HoloExternalData
holoedit.data.HoloSDIFdata
public class HoloSDIFdata
Field Summary | |
---|---|
java.util.Vector<HoloSDIFdata> |
children
|
java.util.Vector<HoloSDIFdata> |
createdSDIFvector
|
int |
cutBeg
|
int |
cutEnd
|
private boolean |
dirty
|
private int |
drawStyle
|
private double |
endTime
Date de fin des donnŽes |
private java.lang.String[] |
fields
|
java.util.HashMap<java.lang.String,java.lang.String[]> |
fieldsImportOptions
|
private HoloSDIFdataStat |
holoDataStat
|
java.util.HashMap<java.lang.String,int[]> |
indexImportOptions
|
int |
initialTreeMapSize
|
int |
listID
|
float |
maximum
|
private float |
maxY
|
private float |
minY
|
private HoloSDIFdata |
parent
|
boolean |
reversed
|
private int |
sdifNbrFrame
nbre de frames dŽcrites pr le SDIF |
java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> |
sdifTreeMap
|
private double |
startTime
Date de dŽbut des donnŽes (firstKey of this HoloSDIFdata sdifTreeMap) |
private int |
valuesToDrawIndex
Index sur les values des treeMap dont on se sert pour dessiner. |
Fields inherited from class holoedit.data.HoloExternalData |
---|
dataType, extDataFile |
Constructor Summary | |
---|---|
HoloSDIFdata(java.io.File f)
Constructs an holoSDIFData from a file and sets its dataType by default to "SDIF". |
|
HoloSDIFdata(java.io.File f,
java.lang.String dataType)
Constructs an holoSDIFData from a file and sets its dataType to the given dataType. |
|
HoloSDIFdata(HoloSDIFdata h,
HoloSDIFdata parent)
Constructs an holoSDIFData from an existing holoSDIFData, and sets its parent to the given parent. |
Method Summary | |
---|---|
void |
addChild(HoloSDIFdata child)
Adds a child to the HoloSDIFdata instance. |
void |
autoreverse()
Reverse the key order of the holoSDIFdata's sdifTreeMap. |
private void |
createList(javax.media.opengl.GL gl,
HoloSDIFdata holoSDIFdata)
Create the lists to draw in the soundPool |
HoloSDIFdata |
cut(int dateBegin,
int dateEnd)
on enleve tous les points entre dateBegin & dateEnd on retourne la fin du sdif. |
boolean |
cutBegin(double dateBegin)
on enleve tous les points jusqu'ˆ dateBegin. |
boolean |
cutEnd(double dateEnd)
on enleve tous les points ˆ partir de dateEnd. |
int |
drawSoundPool(javax.media.opengl.GL gl,
float[] color,
int ID)
Pour l'affichage dans la soundpool |
boolean |
equals(java.lang.Object o)
Surcharge de la mŽthode equals qui avait ŽtŽ redŽfinie dans la classe mere HoloExternalData |
java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> |
getBetweenTimes(double timeBeg,
double timeEnd)
Returns a sub-treeMap whose keys are greater than or equal to timeBeg, and less than or equals to timeEnd. |
HoloSDIFdata |
getChild(int index)
Returns the child at the specified position in the children Vector. |
int |
getChildIndex(HoloSDIFdata child)
return the index of a child |
int |
getChildrenCount()
Returns the number of children of the HoloSDIFdata instance. |
java.util.Vector<java.util.Vector<java.lang.Double>> |
getDataAtTime(double time)
Returns the values corresponding to the given time. |
double |
getDataAtTimeField(double time,
int field)
Returns the field value corresponding to this key if the given time is equal to a key of the holoSDIFdata's sdiftreeMap. |
double |
getDataLength()
Returns the length of this holoSDIFdata in milliseconds |
double |
getDataLengthCS()
Returns the length of this holoSDIFdata in centiseconds |
int |
getDrawStyle()
|
double |
getEndTime()
|
java.util.Vector<java.lang.Double> |
getFieldAtTime(double time,
int fieldIndex)
Returns the field corresponding to the given time. |
java.lang.String[] |
getFields()
|
java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> |
getFromTime(double timeBeg)
Returns a sub-treeMap whose keys are greater than or equal to timeBeg. |
HoloSDIFdataStat |
getHoloDataStat()
|
java.lang.String |
getInfo()
Return a String containing some informations about the holoSDIFdata. |
HoloSDIFdata |
getLastChild()
Returns the last child of the children Vector. |
float |
getMaxY()
|
float |
getMinY()
|
HoloSDIFdata |
getParent()
Returns the parent of the HoloSDIFdata instance. |
static float |
getRescaleYallSDIF(HoloSDIFdata[] _hsdifdt)
Calcule et retourne la valeur permettant de remettre les ordonnŽes ˆ l'Žchelle pour le dessin |
double |
getSDIFendTime()
retourne le endTime du SDIF, donc du plus grand parent |
int |
getSDIFnbrFrame()
retourne le nombre de frame du SDIF, donc du plus grand parent |
double |
getSDIFstartTime()
retourne le startTime du SDIF, donc du plus grand parent |
java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> |
getSDIFtreeMap()
|
double |
getStartTime()
Returns the startTime
of this holoSDIFdata. |
java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> |
getToTime(double timeEnd)
Returns a sub-treeMap whose keys are less than or equals to timeEnd. |
int |
getValuesToDrawIndex()
|
boolean |
hasDataAtTime(double time)
Returns false is returned if the sdifTreeMap is empty or if the time we look for is out of the treeMap keyset range. |
boolean |
hasTime(double time)
Returns true if the holoSDIFdata contains a value for the given time. |
void |
init(double startTime,
java.lang.String type,
int drawCol,
int drawStyle,
java.lang.String[] sdifFields)
Pour l'initialisation des parametres de la holoSDIFdata |
boolean |
isEmpty()
Returns false if this holoSDIFmap or if one of this holoSDIFdata's child sdifTreeMap contains some key-value mappings. |
boolean |
removeChild(HoloSDIFdata child)
Removes a child of the HoloSDIFdata instance. |
void |
setDirty(boolean dirt)
|
void |
setEndTime(double endTime)
|
void |
setHoloDataStat()
|
void |
setParent(HoloSDIFdata parent)
Sets the parent of the HoloSDIFdata instance. |
void |
setSDIFnbrFrame(int sdifNbrFrame)
|
void |
setSDIFtreeMap(java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> sdifTreeMap)
|
void |
setValuesToDrawIndex(int index)
|
void |
stretchDates(int oldBegin,
int oldEnd,
int newBegin,
int newEnd)
Stretching des keys du sdifTreeMap de l'intervalle [oldBegin,oldEnd] vers [newBegin,newEnd] |
java.lang.String |
toString()
Returns a String representation of this holoSDIFdata. |
double |
updateEndTime()
UtilisŽ pour la mise ˆ jour des diffŽrents temps, apres un strech par exemple. |
private void |
updateMinYMaxY()
|
double |
updateStartTime()
UtilisŽ pour la mise ˆ jour des diffŽrents temps, apres un strech par exemple. |
Methods inherited from class holoedit.data.HoloExternalData |
---|
getDataType, getExtDataLength, getExtDataLengthCS, getFileName, getFileType, isFine, setExtDataLength, setFine, toString2 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private double startTime
private double endTime
private int sdifNbrFrame
private int valuesToDrawIndex
private int drawStyle
private HoloSDIFdata parent
public java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> sdifTreeMap
public java.util.Vector<HoloSDIFdata> children
private java.lang.String[] fields
private float minY
private float maxY
public int listID
public float maximum
public int cutBeg
public int cutEnd
public boolean reversed
public int initialTreeMapSize
private boolean dirty
public java.util.HashMap<java.lang.String,int[]> indexImportOptions
public java.util.HashMap<java.lang.String,java.lang.String[]> fieldsImportOptions
public java.util.Vector<HoloSDIFdata> createdSDIFvector
private HoloSDIFdataStat holoDataStat
Constructor Detail |
---|
public HoloSDIFdata(java.io.File f)
dataType
by default to "SDIF".
public HoloSDIFdata(java.io.File f, java.lang.String dataType)
dataType
to the given dataType.
public HoloSDIFdata(HoloSDIFdata h, HoloSDIFdata parent)
Method Detail |
---|
public void init(double startTime, java.lang.String type, int drawCol, int drawStyle, java.lang.String[] sdifFields)
startTime
- type
- drawCol
- drawStyle
- sdifFields
- public int drawSoundPool(javax.media.opengl.GL gl, float[] color, int ID)
private void createList(javax.media.opengl.GL gl, HoloSDIFdata holoSDIFdata)
public void setSDIFtreeMap(java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> sdifTreeMap)
public java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> getSDIFtreeMap()
public boolean isEmpty()
public void addChild(HoloSDIFdata child)
child
- The child to be added.public boolean removeChild(HoloSDIFdata child)
child
- The child to be removed.public HoloSDIFdata getChild(int index)
public HoloSDIFdata getLastChild()
public int getChildIndex(HoloSDIFdata child)
public int getChildrenCount()
public HoloSDIFdata getParent()
public void setParent(HoloSDIFdata parent)
public double getStartTime()
startTime
of this holoSDIFdata.
public double getSDIFstartTime()
public void setEndTime(double endTime)
public double getEndTime()
public void setSDIFnbrFrame(int sdifNbrFrame)
public int getSDIFnbrFrame()
public double updateEndTime()
public double updateStartTime()
public double getSDIFendTime()
public double getDataLengthCS()
public double getDataLength()
public int getDrawStyle()
public void setValuesToDrawIndex(int index)
public int getValuesToDrawIndex()
private void updateMinYMaxY()
public float getMaxY()
public float getMinY()
public java.lang.String getInfo()
public java.lang.String toString()
toString
in class java.lang.Object
public static float getRescaleYallSDIF(HoloSDIFdata[] _hsdifdt)
public boolean equals(java.lang.Object o)
equals
in class HoloExternalData
o
- - the reference object with which to compare.public java.lang.String[] getFields()
public void setHoloDataStat()
public HoloSDIFdataStat getHoloDataStat()
public boolean hasTime(double time)
public java.util.Vector<java.util.Vector<java.lang.Double>> getDataAtTime(double time)
public double getDataAtTimeField(double time, int field)
public boolean hasDataAtTime(double time)
public java.util.Vector<java.lang.Double> getFieldAtTime(double time, int fieldIndex)
public java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> getBetweenTimes(double timeBeg, double timeEnd)
timeBeg
- - low endpoint (inclusive) of the subMap.timeEnd
- - high endpoint (inclusive) of the subMap.public java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> getToTime(double timeEnd)
timeEnd
- - high endpoint (inclusive) of the subMap.public java.util.TreeMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> getFromTime(double timeBeg)
timeBeg
- - low endpoint (inclusive) of the subMap.public void stretchDates(int oldBegin, int oldEnd, int newBegin, int newEnd)
public void autoreverse()
public HoloSDIFdata cut(int dateBegin, int dateEnd)
public boolean cutEnd(double dateEnd)
public boolean cutBegin(double dateBegin)
public void setDirty(boolean dirt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |