Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends

Pixel_base< T, V > Class Template Reference

List of all members.

Public Types

enum  unit_type { RADIANS, DEGREES }
typedef Pixel_base< T, V > Pixel_type
typedef T coord_type
typedef T distance_type
typedef V value_type

Public Member Functions

 Pixel_base (const coord_type lat, const coord_type lon, const value_type &val, const unit_type unit=DEGREES)
bool operator< (const Pixel_type &other) const
bool operator== (const Pixel_type &other) const
coord_type get_lat () const
coord_type get_lon () const
value_type get_val () const
distance_type distance (const Pixel_type &other) const
void get_neighbours (std::vector< Pixel_type > &neighbours, std::multiset< Pixel_type > &pixels, distance_type resolution, bool sorted=false) const

Static Public Member Functions

static coord_type get_resolution ()
static void set_resolution (distance_type new_resolution)

Static Public Attributes

static const coord_type DEFAULT_RESOLUTION = 1.
static const coord_type R_EARTH = 6371.005076
static const coord_type R_EARTH_EQUATORIAL = 6378.137
static const coord_type R_EARTH_POLAR = 6356.7523
static const distance_type DEG2RAD = M_PI/180.
static const distance_type RAD2DEG = 180.*M_1_PI

Friends

std::ostream & operator<< (std::ostream &os, const Pixel_type &pixel)

template<typename T, typename V>
class Pixel_base< T, V >


The documentation for this class was generated from the following file: