The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Timeline Struct Reference

#include <mainutil.h>

List of all members.

Public Types

typedef multimap< pair< int,
int >, ROISequence
EntryMap

Public Member Functions

void addEntry (int timept, float bx, float ex, float by, float ey, float bs, float es, int nf)
void getROISequences (int timept, list< ROISequence * > &seq)
 Timeline ()

Public Attributes

int curframe
EntryMap entries
int numframes


Member Typedef Documentation

typedef multimap< pair<int, int>, ROISequence> EntryMap
 

Definition at line 37 of file mainutil.h.


Constructor & Destructor Documentation

Timeline  )  [inline]
 

Definition at line 40 of file mainutil.h.

References numframes.

00040 : numframes(0), curframe(0) {}


Member Function Documentation

void addEntry int  timept,
float  bx,
float  ex,
float  by,
float  ey,
float  bs,
float  es,
int  nf
[inline]
 

Definition at line 42 of file mainutil.h.

References numframes.

Referenced by main().

00042                                                                                                       {
00043                 numframes = (numframes>timept+nf) ? numframes : timept + nf;
00044                 entries.insert(EntryMap::value_type(make_pair<int, int>(timept, timept+nf), ROISequence(bx, ex, by, ey, bs, es, nf)));
00045         }

void getROISequences int  timept,
list< ROISequence * > &  seq
[inline]
 

Definition at line 47 of file mainutil.h.

Referenced by main().

00047                                                                    {
00048                 seq.clear();
00049                 for (EntryMap::iterator pos = entries.begin(); pos != entries.end(); ++pos) {
00050                         pair<int, int> timerange = pos->first;
00051                         ROISequence &ROIs = pos->second;
00052 
00053                         if (timept >= timerange.first && timept < timerange.second)
00054                                 seq.push_back(&ROIs);
00055                 }
00056         }


Member Data Documentation

int curframe
 

Definition at line 36 of file mainutil.h.

EntryMap entries
 

Definition at line 38 of file mainutil.h.

int numframes
 

Definition at line 36 of file mainutil.h.

Referenced by main().


The documentation for this struct was generated from the following file:
Generated on Mon Nov 8 17:08:42 2004 for MPT by  doxygen 1.3.9.1