w2img::Data2DAdapter< X > Class Template Reference

Inheritance diagram for w2img::Data2DAdapter< X >:

w2img::GeographicData2DAdapter< X > List of all members.

Detailed Description

template<class X>
class w2img::Data2DAdapter< X >

Any class X that satisfies the requirements of the Data2DAdapter should allow simple read access to its elements.

Author:
Lakshman
Version:
Id
w2img_Data2DAdapter.h,v 1.9 2009/06/02 20:17:57 lakshman Exp


Public Member Functions

 Data2DAdapter (const X &data)
 because we make a copy of X, it would be preferable for the copy to be reference counted.
double getVal (int x, int y) const
 read the value of the x,y point.
int numRows () const
 Number of rows (first dimension).
int numCols () const
 Number of columns (second dimension).
code::Image< float > getImageClone () const
code::Image< float > getImage ()
const X & data () const
X & data ()

Protected Attributes

myData


Constructor & Destructor Documentation

template<class X>
w2img::Data2DAdapter< X >::Data2DAdapter ( const X &  data  )  [inline]

because we make a copy of X, it would be preferable for the copy to be reference counted.


Member Function Documentation

template<class X>
X& w2img::Data2DAdapter< X >::data (  )  [inline]

template<class X>
const X& w2img::Data2DAdapter< X >::data (  )  const [inline]

template<class X>
code::Image<float> w2img::Data2DAdapter< X >::getImage (  ) 

template<class X>
code::Image<float> w2img::Data2DAdapter< X >::getImageClone (  )  const [inline]

template<class X>
double w2img::Data2DAdapter< X >::getVal ( int  x,
int  y 
) const [inline]

read the value of the x,y point.

template<class X>
int w2img::Data2DAdapter< X >::numCols (  )  const [inline]

Number of columns (second dimension).

template<class X>
int w2img::Data2DAdapter< X >::numRows (  )  const [inline]

Number of rows (first dimension).


Member Data Documentation

template<class X>
X w2img::Data2DAdapter< X >::myData [protected]


Generated on Fri May 4 13:40:23 2012 for WDSS-IIw2algs by  doxygen 1.4.7