mapnik::octree< T, InsertPolicy > Class Template Reference

#include <octree.hpp>

List of all members.

Classes

struct  node
struct  node_cmp

Public Member Functions

 octree (unsigned max_colors=256)
 ~octree ()
void insert (T const &data)
int quantize (rgb const &c) const
void create_palette (std::vector< rgb > &palette)
void reduce ()
void create_palette (std::vector< rgb > &palette, node *itr) const

template<typename T, typename InsertPolicy = RGBPolicy>
class mapnik::octree< T, InsertPolicy >


Constructor & Destructor Documentation

template<typename T, typename InsertPolicy = RGBPolicy>
mapnik::octree< T, InsertPolicy >::octree ( unsigned  max_colors = 256  )  [inline, explicit]

template<typename T, typename InsertPolicy = RGBPolicy>
mapnik::octree< T, InsertPolicy >::~octree (  )  [inline]


Member Function Documentation

template<typename T, typename InsertPolicy = RGBPolicy>
void mapnik::octree< T, InsertPolicy >::create_palette ( std::vector< rgb > &  palette,
node *  itr 
) const [inline]

template<typename T, typename InsertPolicy = RGBPolicy>
void mapnik::octree< T, InsertPolicy >::create_palette ( std::vector< rgb > &  palette  )  [inline]

template<typename T, typename InsertPolicy = RGBPolicy>
void mapnik::octree< T, InsertPolicy >::insert ( T const &  data  )  [inline]

Referenced by mapnik::save_as_png256().

template<typename T, typename InsertPolicy = RGBPolicy>
int mapnik::octree< T, InsertPolicy >::quantize ( rgb const &  c  )  const [inline]

template<typename T, typename InsertPolicy = RGBPolicy>
void mapnik::octree< T, InsertPolicy >::reduce (  )  [inline]


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

Generated for Mapnik by doxygen 1.5.8