Vamos_Geometry::Linear_Interpolator Class Reference

#include <Linear_Interpolator.h>

Inheritance diagram for Vamos_Geometry::Linear_Interpolator:

Inheritance graph
[legend]
Collaboration diagram for Vamos_Geometry::Linear_Interpolator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Linear_Interpolator ()
 Linear_Interpolator (const std::vector< Two_Point > &points)
void load (const Two_Point &point)
void load (const std::vector< Two_Point > &points)
void clear ()
void remove_greater (double limit)
void scale (double factor)
double interpolate (double dist) const
Two_Point normal (double dist) const

Private Attributes

std::vector< Two_Pointm_points
double m_delta_x
double m_delta_y

Detailed Description

Definition at line 29 of file Linear_Interpolator.h.


Constructor & Destructor Documentation

Vamos_Geometry::Linear_Interpolator::Linear_Interpolator  ) 
 

Definition at line 26 of file Linear_Interpolator.cc.

Vamos_Geometry::Linear_Interpolator::Linear_Interpolator const std::vector< Two_Point > &  points  ) 
 

Definition at line 34 of file Linear_Interpolator.cc.


Member Function Documentation

void Vamos_Geometry::Linear_Interpolator::clear  )  [virtual]
 

Implements Vamos_Geometry::Interpolator.

Definition at line 59 of file Linear_Interpolator.cc.

References m_points.

double Vamos_Geometry::Linear_Interpolator::interpolate double  dist  )  const [virtual]
 

Implements Vamos_Geometry::Interpolator.

Definition at line 94 of file Linear_Interpolator.cc.

References m_delta_x, m_delta_y, and m_points.

Referenced by normal().

void Vamos_Geometry::Linear_Interpolator::load const std::vector< Two_Point > &  points  )  [virtual]
 

Implements Vamos_Geometry::Interpolator.

Definition at line 48 of file Linear_Interpolator.cc.

References m_points.

void Vamos_Geometry::Linear_Interpolator::load const Two_Point point  )  [virtual]
 

Implements Vamos_Geometry::Interpolator.

Definition at line 42 of file Linear_Interpolator.cc.

References m_points.

Vamos_Geometry::Two_Point Vamos_Geometry::Linear_Interpolator::normal double  dist  )  const [virtual]
 

Implements Vamos_Geometry::Interpolator.

Definition at line 130 of file Linear_Interpolator.cc.

References interpolate(), m_delta_x, and m_delta_y.

void Vamos_Geometry::Linear_Interpolator::remove_greater double  limit  )  [virtual]
 

Implements Vamos_Geometry::Interpolator.

Definition at line 66 of file Linear_Interpolator.cc.

References m_points.

void Vamos_Geometry::Linear_Interpolator::scale double  factor  )  [virtual]
 

Implements Vamos_Geometry::Interpolator.

Definition at line 83 of file Linear_Interpolator.cc.

References m_points.


Member Data Documentation

double Vamos_Geometry::Linear_Interpolator::m_delta_x [mutable, private]
 

Definition at line 33 of file Linear_Interpolator.h.

Referenced by interpolate(), and normal().

double Vamos_Geometry::Linear_Interpolator::m_delta_y [mutable, private]
 

Definition at line 34 of file Linear_Interpolator.h.

Referenced by interpolate(), and normal().

std::vector<Two_Point> Vamos_Geometry::Linear_Interpolator::m_points [private]
 

Definition at line 31 of file Linear_Interpolator.h.

Referenced by clear(), interpolate(), load(), remove_greater(), and scale().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:13:56 2006 by  doxygen 1.4.6