public class that contains information for a visual token for tracking More...
#include <MBARI/VisualEvent.H>
Public Member Functions | |
Token () | |
default constructor | |
Token (float x, float y, uint frame, BitObject bo) | |
constructor that fills the members with initial values | |
Token (BitObject bo, uint frame) | |
constructor with the location being the centroid of the BitObject | |
Token (std::istream &is) | |
read the Token from the input stream is | |
void | writeToStream (std::ostream &os) const |
write the entire Token to the output stream os | |
void | readFromStream (std::istream &is) |
read the Token from the input stream is | |
void | writePosition (std::ostream &os) const |
write the Token's position to the output streeam os | |
Public Attributes | |
BitObject | bitObject |
the BitObject that holds info about the shape of this Token | |
Vector2D | location |
the x and y coordinates of the token in the frame | |
Vector2D | prediction |
the expected location for this token | |
StraightLine2D | line |
the straight line on which this token is moving | |
float | angle |
the angle between line and the connection to the FOE | |
uint | frame_nr |
the frame number at which the token occurred |
public class that contains information for a visual token for tracking
Definition at line 59 of file VisualEvent.H.
Token::Token | ( | ) |
default constructor
Definition at line 58 of file VisualEvent.C.
constructor that fills the members with initial values
Definition at line 68 of file VisualEvent.C.
constructor with the location being the centroid of the BitObject
Definition at line 78 of file VisualEvent.C.
Token::Token | ( | std::istream & | is | ) |
read the Token from the input stream is
Definition at line 88 of file VisualEvent.C.
References readFromStream().
void Token::readFromStream | ( | std::istream & | is | ) |
read the Token from the input stream is
Definition at line 106 of file VisualEvent.C.
References angle, bitObject, frame_nr, line, location, prediction, Vector2D::readFromStream(), and StraightLine2D::readFromStream().
Referenced by Token().
void Token::writePosition | ( | std::ostream & | os | ) | const |
write the Token's position to the output streeam os
Definition at line 117 of file VisualEvent.C.
References location, and Vector2D::writeToStream().
void Token::writeToStream | ( | std::ostream & | os | ) | const |
write the entire Token to the output stream os
Definition at line 94 of file VisualEvent.C.
References angle, bitObject, frame_nr, line, location, prediction, Vector2D::writeToStream(), StraightLine2D::writeToStream(), and BitObject::writeToStream().
float Token::angle |
the angle between line and the connection to the FOE
Definition at line 88 of file VisualEvent.H.
Referenced by VisualEvent::getPropertyVector(), readFromStream(), and writeToStream().
the BitObject that holds info about the shape of this Token
Definition at line 76 of file VisualEvent.H.
Referenced by VisualEvent::assign(), VisualEvent::doesIntersect(), VisualEventSet::drawTokens(), VisualEvent::getPropertyVector(), readFromStream(), VisualEvent::VisualEvent(), and writeToStream().
the frame number at which the token occurred
Definition at line 91 of file VisualEvent.H.
Referenced by VisualEvent::assign(), VisualEvent::isTokenOk(), readFromStream(), and writeToStream().
the straight line on which this token is moving
Definition at line 85 of file VisualEvent.H.
Referenced by readFromStream(), and writeToStream().
the x and y coordinates of the token in the frame
Definition at line 79 of file VisualEvent.H.
Referenced by VisualEvent::assign(), VisualEventSet::drawTokens(), VisualEvent::getCost(), readFromStream(), VisualEvent::VisualEvent(), writePosition(), and writeToStream().
the expected location for this token
Definition at line 82 of file VisualEvent.H.
Referenced by VisualEventSet::drawTokens(), readFromStream(), and writeToStream().