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

TimeMapPair Class Reference

#include <time_map.h>

Inheritance diagram for TimeMapPair:

Inheritance graph
[legend]
Collaboration diagram for TimeMapPair:

Collaboration graph
[legend]
List of all members.

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 ()
TimeMapPairGet (double position, TimeMapPair *ante)

Protected Attributes

double first
double second

Constructor & Destructor Documentation

virtual TimeMapPair::~TimeMapPair  )  [inline, virtual]
 

Definition at line 94 of file time_map.h.

00094 { }

TimeMapPair::TimeMapPair  )  [inline]
 

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 ); }

TimeMapPair::TimeMapPair double  position  )  [inline]
 

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 ); }

TimeMapPair::TimeMapPair double  position,
TimeMapPair entry
[inline]
 

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         }


Member Function Documentation

TimeMapPair* TimeMapPair::Get double  position,
TimeMapPair ante
[inline, virtual]
 

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         }

double TimeMapPair::GetFirst  )  [inline]
 

Definition at line 106 of file time_map.h.

References first.

Referenced by Get().

00106 { return first; }

double TimeMapPair::GetSecond  )  [inline]
 

Definition at line 107 of file time_map.h.

References second.

Referenced by Get().

00107 { return second; }

void TimeMapPair::SetFirst double  first  )  [inline]
 

Definition at line 104 of file time_map.h.

Referenced by Get().

00104 { this->first = first; }

void TimeMapPair::SetSecond double  second  )  [inline]
 

Definition at line 105 of file time_map.h.

Referenced by Get().

00105 { this->second = second; }


Member Data Documentation

double TimeMapPair::first [protected]
 

Definition at line 90 of file time_map.h.

Referenced by Get(), GetFirst(), and TimeMapPair().

double TimeMapPair::second [protected]
 

Definition at line 91 of file time_map.h.

Referenced by Get(), GetSecond(), and TimeMapPair().


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 22:13:26 2007 for Kino by  doxygen 1.4.2