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

TimeMapTriple Class Reference

#include <time_map.h>

Inheritance diagram for TimeMapTriple:

Inheritance graph
[legend]
Collaboration diagram for TimeMapTriple:

Collaboration graph
[legend]
List of all members.

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 ()
TimeMapTripleGet (double position, TimeMapTriple *ante)

Protected Attributes

double first
double second
double third

Constructor & Destructor Documentation

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

Definition at line 126 of file time_map.h.

00126 { }

TimeMapTriple::TimeMapTriple  )  [inline]
 

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

TimeMapTriple::TimeMapTriple double  position  )  [inline]
 

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

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

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         }


Member Function Documentation

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

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         }

double TimeMapTriple::GetFirst  )  [inline]
 

Definition at line 140 of file time_map.h.

References first.

Referenced by Get().

00140 { return first; }

double TimeMapTriple::GetSecond  )  [inline]
 

Definition at line 141 of file time_map.h.

References second.

Referenced by Get().

00141 { return second; }

double TimeMapTriple::GetThird  )  [inline]
 

Definition at line 142 of file time_map.h.

References third.

Referenced by Get().

00142 { return third; }

void TimeMapTriple::SetFirst double  first  )  [inline]
 

Definition at line 137 of file time_map.h.

Referenced by Get().

00137 { this->first = first; }

void TimeMapTriple::SetSecond double  second  )  [inline]
 

Definition at line 138 of file time_map.h.

Referenced by Get().

00138 { this->second = second; }

void TimeMapTriple::SetThird double  third  )  [inline]
 

Definition at line 139 of file time_map.h.

Referenced by Get().

00139 { this->third = third; }


Member Data Documentation

double TimeMapTriple::first [protected]
 

Definition at line 121 of file time_map.h.

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

double TimeMapTriple::second [protected]
 

Definition at line 122 of file time_map.h.

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

double TimeMapTriple::third [protected]
 

Definition at line 123 of file time_map.h.

Referenced by Get(), GetThird(), and TimeMapTriple().


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