#include <octree.hpp>
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 |
Classes | |
| struct | node |
| struct | node_cmp |
| mapnik::octree< T, InsertPolicy >::octree | ( | unsigned | max_colors = 256 |
) | [inline, explicit] |
| mapnik::octree< T, InsertPolicy >::~octree | ( | ) | [inline] |
| void mapnik::octree< T, InsertPolicy >::insert | ( | T const & | data | ) | [inline] |
Referenced by mapnik::save_as_png256().
| int mapnik::octree< T, InsertPolicy >::quantize | ( | rgb const & | c | ) | const [inline] |
Referenced by mapnik::reduce_4(), and mapnik::reduce_8().
| void mapnik::octree< T, InsertPolicy >::create_palette | ( | std::vector< rgb > & | palette | ) | [inline] |
References mapnik::octree< T, InsertPolicy >::reduce().
Referenced by mapnik::octree< T, InsertPolicy >::create_palette(), and mapnik::save_as_png256().
| void mapnik::octree< T, InsertPolicy >::reduce | ( | ) | [inline] |
Referenced by mapnik::octree< T, InsertPolicy >::create_palette().
| void mapnik::octree< T, InsertPolicy >::create_palette | ( | std::vector< rgb > & | palette, | |
| node * | itr | |||
| ) | const [inline] |
1.5.6