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


Public Member Functions | |
| virtual | ~TimeMapTriple () |
| TimeMapTriple () | |
| TimeMapTriple (double position) | |
| TimeMapTriple (double position, TimeMapTriple *entry) | |
| void | SetFirst (double first) |
| void | SetSecond (double second) |
| void | SetThird (double third) |
| double | GetFirst () |
| double | GetSecond () |
| double | GetThird () |
| TimeMapTriple * | Get (double position, TimeMapTriple *ante) |
Protected Attributes | |
| double | first |
| double | second |
| double | third |
|
|
Definition at line 126 of file time_map.h. 00126 { }
|
|
|
Definition at line 127 of file time_map.h. References TimeEntry< TimeMapTriple >::SetEditable(), and TimeEntry< TimeMapTriple >::SetPosition(). Referenced by Get(). 00127 : first(0), second(0), third(0) { SetPosition( 0 ); SetEditable( false ); }
|
|
|
Definition at line 128 of file time_map.h. References TimeEntry< TimeMapTriple >::SetEditable(), and TimeEntry< TimeMapTriple >::SetPosition(). 00128 : first(0), second(0), third(0) { SetPosition( position ); SetEditable( false ); }
|
|
||||||||||||
|
Definition at line 129 of file time_map.h. References first, second, TimeEntry< TimeMapTriple >::SetEditable(), TimeEntry< TimeMapTriple >::SetPosition(), and third. 00130 {
00131 SetPosition( position );
00132 SetEditable( false );
00133 this->first = entry->first;
00134 this->second = entry->second;
00135 this->third = entry->third;
00136 }
|
|
||||||||||||
|
Implements TimeEntry< TimeMapTriple >. Definition at line 143 of file time_map.h. References first, GetFirst(), TimeEntry< Entry >::GetPosition(), TimeEntry< TimeMapTriple >::GetPosition(), GetSecond(), GetThird(), second, SetFirst(), SetSecond(), SetThird(), third, and TimeMapTriple(). 00144 {
00145 TimeMapTriple *entry = new TimeMapTriple();
00146 double r = ( position - GetPosition( ) ) / ( ante->GetPosition() - GetPosition( ) );
00147 entry->SetFirst( first + ( ante->GetFirst() - first ) * r );
00148 entry->SetSecond( second + ( ante->GetSecond() - second ) * r );
00149 entry->SetThird( third + ( ante->GetThird() - third ) * r );
00150 return entry;
00151 }
|
|
|
Definition at line 140 of file time_map.h. References first. Referenced by Get(). 00140 { return first; }
|
|
|
Definition at line 141 of file time_map.h. References second. Referenced by Get(). 00141 { return second; }
|
|
|
Definition at line 142 of file time_map.h. References third. Referenced by Get(). 00142 { return third; }
|
|
|
Definition at line 137 of file time_map.h. Referenced by Get().
|
|
|
Definition at line 138 of file time_map.h. Referenced by Get().
|
|
|
Definition at line 139 of file time_map.h. Referenced by Get().
|
|
|
Definition at line 121 of file time_map.h. Referenced by Get(), GetFirst(), and TimeMapTriple(). |
|
|
Definition at line 122 of file time_map.h. Referenced by Get(), GetSecond(), and TimeMapTriple(). |
|
|
Definition at line 123 of file time_map.h. Referenced by Get(), GetThird(), and TimeMapTriple(). |
1.4.2