caviargui
Class AllData

java.lang.Object
  |
  +--caviargui.AllData

public class AllData
extends java.lang.Object

Class solely used to represent the entire data that has been annotated on a sequence of frames in a video (jpg) sequence.


Field Summary
protected  caviargui.FrameData[] frameData
          An array of 2000 FrameData objects, based upon the assumption that there will be no more than 2000 frames in a given sequence of jpg files
protected static int FRAMES
          Variable used to determine the default number of frames Must be altered if the video sequence is longer than 2000 frames
 
Constructor Summary
AllData()
          Constructor, makes a new AllData object by creating a new FrameData[FRAMES] array
 
Method Summary
 java.awt.Point[] getAxisPoints(int angle, int x, int y, int width, int height)
          Similar to setAxisPoints in DrawCanvas, takes an angle and the coordinates of the top left corner of the rectangle along with the rectangle's height and width to calculate what the line should be for the relavent box object
 java.lang.String readFrom(java.lang.String seqName, java.lang.String fileName)
          Method used to read data from disk stored in a .txt file, returns the string consisting of all the data in text file fileName
 java.lang.String updateData(java.lang.String readString)
          Auxiliary method used by readFrom to create the required objects to represent the information gathered in readString
 void writeAll(java.lang.String seqName)
          Method used to write all of the data from sequence name seqName to disk
 java.lang.String writeString(int id, java.lang.String seqName, caviargui.FrameData data)
          Method used to return the data gathered from frame number id by the user's annotations
 void writeTo(java.lang.String seqName, int id, java.lang.String fileName)
          Method used when writing given data to a file so it may be restored and annotation continued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frameData

protected caviargui.FrameData[] frameData
An array of 2000 FrameData objects, based upon the assumption that there will be no more than 2000 frames in a given sequence of jpg files


FRAMES

protected static final int FRAMES
Variable used to determine the default number of frames Must be altered if the video sequence is longer than 2000 frames

See Also:
Constant Field Values
Constructor Detail

AllData

public AllData()
Constructor, makes a new AllData object by creating a new FrameData[FRAMES] array

Method Detail

writeTo

public void writeTo(java.lang.String seqName,
                    int id,
                    java.lang.String fileName)
Method used when writing given data to a file so it may be restored and annotation continued


writeAll

public void writeAll(java.lang.String seqName)
Method used to write all of the data from sequence name seqName to disk


writeString

public java.lang.String writeString(int id,
                                    java.lang.String seqName,
                                    caviargui.FrameData data)
Method used to return the data gathered from frame number id by the user's annotations


readFrom

public java.lang.String readFrom(java.lang.String seqName,
                                 java.lang.String fileName)
Method used to read data from disk stored in a .txt file, returns the string consisting of all the data in text file fileName


updateData

public java.lang.String updateData(java.lang.String readString)
Auxiliary method used by readFrom to create the required objects to represent the information gathered in readString


getAxisPoints

public java.awt.Point[] getAxisPoints(int angle,
                                      int x,
                                      int y,
                                      int width,
                                      int height)
Similar to setAxisPoints in DrawCanvas, takes an angle and the coordinates of the top left corner of the rectangle along with the rectangle's height and width to calculate what the line should be for the relavent box object