#include <time_map.h>
Inheritance diagram for TimeMapPair:


Public Member Functions | |
| virtual | ~TimeMapPair () |
| TimeMapPair () | |
| TimeMapPair (double position) | |
| TimeMapPair (double position, TimeMapPair *entry) | |
| void | SetFirst (double first) |
| void | SetSecond (double second) |
| double | GetFirst () |
| double | GetSecond () |
| TimeMapPair * | Get (double position, TimeMapPair *ante) |
Protected Attributes | |
| double | first |
| double | second |
|
|
Definition at line 94 of file time_map.h. 00094 { }
|
|
|
Definition at line 95 of file time_map.h. References TimeEntry< TimeMapPair >::SetEditable(), and TimeEntry< TimeMapPair >::SetPosition(). Referenced by Get(). 00095 : first(0), second(0) { SetPosition( 0 ); SetEditable( false ); }
|
|
|
Definition at line 96 of file time_map.h. References TimeEntry< TimeMapPair >::SetEditable(), and TimeEntry< TimeMapPair >::SetPosition(). 00096 : first(0), second(0) { SetPosition( position ); SetEditable( false ); }
|
|
||||||||||||
|
Definition at line 97 of file time_map.h. References first, second, TimeEntry< TimeMapPair >::SetEditable(), and TimeEntry< TimeMapPair >::SetPosition(). 00098 {
00099 SetPosition( position );
00100 SetEditable( false );
00101 this->first = entry->first;
00102 this->second = entry->second;
00103 }
|
|
||||||||||||
|
Implements TimeEntry< TimeMapPair >. Definition at line 108 of file time_map.h. References first, GetFirst(), TimeEntry< Entry >::GetPosition(), TimeEntry< TimeMapPair >::GetPosition(), GetSecond(), second, SetFirst(), SetSecond(), and TimeMapPair(). 00109 {
00110 TimeMapPair *entry = new TimeMapPair();
00111 double r = ( position - GetPosition( ) ) / ( ante->GetPosition() - GetPosition( ) );
00112 entry->SetFirst( first + ( ante->GetFirst() - first ) * r );
00113 entry->SetSecond( second + ( ante->GetSecond() - second ) * r );
00114 return entry;
00115 }
|
|
|
Definition at line 106 of file time_map.h. References first. Referenced by Get(). 00106 { return first; }
|
|
|
Definition at line 107 of file time_map.h. References second. Referenced by Get(). 00107 { return second; }
|
|
|
Definition at line 104 of file time_map.h. Referenced by Get().
|
|
|
Definition at line 105 of file time_map.h. Referenced by Get().
|
|
|
Definition at line 90 of file time_map.h. Referenced by Get(), GetFirst(), and TimeMapPair(). |
|
|
Definition at line 91 of file time_map.h. Referenced by Get(), GetSecond(), and TimeMapPair(). |
1.4.2