Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Table Class Reference
[Data classes]

A two-dimensional bicubic-interpolated look up table. More...

#include <Interpolate.h>

Inheritance diagram for Table:

InterpolatedData< float > BaseType List of all members.

Public Types

typedef float value_t
typedef std::vector< value_tvector_t
typedef std::vector< value_t
>::iterator 
vector_it
typedef std::vector< value_t
>::const_iterator 
vector_cit

Public Methods

 Table ()
 Table (const Table &)
virtual ~Table ()
const Table & operator= (const Table &)
void invalidate ()
int isValid () const
virtual void serialize (Archive &)
 Serialize to or from a data archive.

vector_t getXBreaks () const
vector_t getYBreaks () const
void setXBreaks (const vector_t &breaks)
void setYBreaks (const vector_t &breaks)
void setBreaks (const vector_t &x_breaks, const vector_t &y_breaks)
void setXSpacing (value_t spacing)
void setYSpacing (value_t spacing)
void setSpacing (value_t x_spacing, value_t y_spacing)
value_t getXSpacing () const
value_t getYSpacing () const
void setData (const vector_t &data)
void interpolate ()
value_t getPrecise (value_t x, value_t y) const
value_t getValue (value_t x, value_t y) const
void toPGM (FILE *fp) const
void dumpTable (FILE *fp) const
void dumpDRows (FILE *fp) const
void dumpDCols (FILE *fp) const
virtual std::string asString () const
 Return a string representation of the instance.

virtual std::string typeString () const
 Type representation.

virtual value_t getValue (value_t, value_t) const
virtual value_t getPrecise (value_t, value_t) const
int find (vector_t b, value_t v) const
virtual void parseXML (const char *cdata)
 Parse cdata from within the XML tags for this object.

virtual void convertXML ()
 Convert XML data to internal format prior to serialization.


Public Attributes

std::string _x_label
std::string _y_label
vector_t _x_breaks
vector_t _y_breaks
vector_t _data
vector_t _table
vector_t _dcols
vector_t _drows
value_t _x_spacing
value_t _y_spacing
value_t _x_min
value_t _y_min
value_t _x_range
value_t _y_range
int _x_in
int _y_in
int _x_n
int _y_n
int _valid
Enum< InterpolatedData< float
>::Method
method

Static Public Attributes

const Enumeration Method

Protected Methods

virtual void _compute_second_derivatives ()
vector_t _compute_second_derivatives (const vector_t &breaks, const vector_t &data)

Detailed Description

A two-dimensional bicubic-interpolated look up table.

Author:
Mark Rose <mrose@stm.lbl.gov>
Deprecated:
Use Table2 instead.


Member Typedef Documentation

typedef float InterpolatedData< float >::value_t [inherited]
 

typedef std::vector<value_t>::const_iterator InterpolatedData< float >::vector_cit [inherited]
 

typedef std::vector<value_t>::iterator InterpolatedData< float >::vector_it [inherited]
 

typedef std::vector<value_t> InterpolatedData< float >::vector_t [inherited]
 


Constructor & Destructor Documentation

Table::Table  
 

Table::Table const Table &   
 

Table::~Table   [virtual]
 


Member Function Documentation

vector_t InterpolatedData< float >::_compute_second_derivatives const vector_t   breaks,
const vector_t   data
[protected, inherited]
 

void Table::_compute_second_derivatives   [protected, virtual]
 

Implements InterpolatedData< float >.

std::string Table::asString   [virtual]
 

Return a string representation of the instance.

This method is used to provide a string representation of the object for output to ostreams (using <<), and also serves as __repr__ in Python.

Implements BaseType.

void BaseType::convertXML   [virtual, inherited]
 

Convert XML data to internal format prior to serialization.

This method is currently only called by the XML parser for Object classes. If another BaseType class requires this method, a call must be added to the appropriate XML handler in the parser.

void Table::dumpDCols FILE *    fp const
 

void Table::dumpDRows FILE *    fp const
 

void Table::dumpTable FILE *    fp const
 

int InterpolatedData< float >::find vector_t    b,
value_t    v
const [inherited]
 

virtual value_t InterpolatedData< float >::getPrecise value_t   ,
value_t   
const [virtual, inherited]
 

Table::value_t Table::getPrecise value_t    x,
value_t    y
const
 

virtual value_t InterpolatedData< float >::getValue value_t   ,
value_t   
const [virtual, inherited]
 

Table::value_t Table::getValue value_t    x,
value_t    y
const
 

Table::vector_t Table::getXBreaks  
 

Table::value_t Table::getXSpacing  
 

Table::vector_t Table::getYBreaks  
 

Table::value_t Table::getYSpacing  
 

void Table::interpolate  
 

void Table::invalidate  
 

int Table::isValid  
 

const Table & Table::operator= const Table &   
 

void BaseType::parseXML const char *    cdata [virtual, inherited]
 

Parse cdata from within the XML tags for this object.

Reimplemented in SimDate, EnumLink, GeoPos, LLA, UTM, Matrix3, Quat, Real, and Vector3.

void Table::serialize Archive   [virtual]
 

Serialize to or from a data archive.

Reimplemented from InterpolatedData< float >.

void Table::setBreaks const vector_t   x_breaks,
const vector_t   y_breaks
 

void Table::setData const vector_t   data
 

void Table::setSpacing value_t    x_spacing,
value_t    y_spacing
 

void Table::setXBreaks const vector_t   breaks
 

void Table::setXSpacing value_t    spacing
 

void Table::setYBreaks const vector_t   breaks
 

void Table::setYSpacing value_t    spacing
 

void Table::toPGM FILE *    fp const
 

std::string Table::typeString   [virtual]
 

Type representation.

Implements BaseType.


Member Data Documentation

vector_t Table::_data
 

vector_t Table::_dcols
 

vector_t Table::_drows
 

vector_t Table::_table
 

int Table::_valid
 

vector_t Table::_x_breaks
 

int Table::_x_in
 

std::string Table::_x_label
 

value_t Table::_x_min
 

int Table::_x_n
 

value_t Table::_x_range
 

value_t Table::_x_spacing
 

vector_t Table::_y_breaks
 

int Table::_y_in
 

std::string Table::_y_label
 

value_t Table::_y_min
 

int Table::_y_n
 

value_t Table::_y_range
 

value_t Table::_y_spacing
 

Enum<InterpolatedData<float>::Method> InterpolatedData< float >::method [inherited]
 

const Enumeration InterpolatedData< float >::Method [static, inherited]
 


The documentation for this class was generated from the following files:
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:42 2003, using Doxygen 1.2.18.

[SF.net]