|
||||||||||
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
|
private int |
drawStyle
|
private double |
endTime
Date de fin des donnŽes |
private java.lang.String[] |
fields
|
private HoloSDIFdataStat |
holoDataStat
|
int |
listID
|
float |
maximum
|
private float |
maxY
|
private float |
minY
|
private HoloSDIFdata |
parent
|
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) |
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,
float max,
float min,
HoloSDIFdata holoSDIFdata,
float[] color)
Create the lists to draw in the soundPool |
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,
float rescaleAllSDIF,
boolean rewriteList,
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 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.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. |
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 |
setChildren(java.util.Vector<HoloSDIFdata> children)
Set the children Vector to the specified Vector. |
void |
setEndTime(double endTime)
|
void |
setHoloDataStat()
|
void |
setMaxY(float maxY)
|
void |
setMinY(float minY)
|
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 |
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. |
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 |
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
public 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
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, float rescaleAllSDIF, boolean rewriteList, int ID)
private void createList(javax.media.opengl.GL gl, float max, float min, HoloSDIFdata holoSDIFdata, float[] color)
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 void setChildren(java.util.Vector<HoloSDIFdata> children)
children
- The Vector (containing the children) to be set.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 setMaxY(float maxY)
public float getMaxY()
public void setMinY(float minY)
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 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 boolean cutEnd(double dateEnd)
public boolean cutBegin(double dateBegin)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |