
This class is still not ported from the old glcanvasmm library. More...
#include <hexgrid.h>

Public Types | |
| enum | STYLE { SIDE, VERTEX } |
| typedef enum Papyrus::Hexgrid::STYLE | Style |
Public Member Functions | |
| Hexgrid (Vertex upperleft, int width, int height, double hexrad) | |
| Hexgrid (Vertex upperleft, Glib::ustring filename, double hexrad) | |
| ~Hexgrid () | |
| virtual void | pl_insert () |
| bool | has_outline () |
| bool | use_outline (bool uo) |
| RGBA | get_outline () |
| void | set_outline (RGBA &outline) |
| double | get_edge () |
| double | get_apothem () |
| double | get_radius () |
| void | set_radius (double radius) |
| Vertex & | get_upperleft () |
| void | set_upperleft (Vertex &upperleft) |
| Style | get_style () |
| void | set_style (Style s) |
| void | set_color (int x, int y, RGBA &color) |
Protected Attributes | |
| RGBA * | _colors |
| bool | _use_outline |
| RGBA | _outline |
| Vertex | _upperleft |
| int | _width |
| int | _height |
| double | _radius |
| double | _apothem |
| double | _halfedge |
| Style | _style |
This class is still not ported from the old glcanvasmm library.
| typedef enum Papyrus::Hexgrid::STYLE Papyrus::Hexgrid::Style |
| Papyrus::Hexgrid::Hexgrid | ( | Vertex | upperleft, | |
| int | width, | |||
| int | height, | |||
| double | hexrad | |||
| ) |
| Papyrus::Hexgrid::Hexgrid | ( | Vertex | upperleft, | |
| Glib::ustring | filename, | |||
| double | hexrad | |||
| ) |
| Papyrus::Hexgrid::~Hexgrid | ( | ) |
| double Papyrus::Hexgrid::get_apothem | ( | ) | [inline] |
References _apothem.
| double Papyrus::Hexgrid::get_edge | ( | ) | [inline] |
References _halfedge.
| double Papyrus::Hexgrid::get_radius | ( | ) | [inline] |
References _radius.
| Vertex& Papyrus::Hexgrid::get_upperleft | ( | ) | [inline] |
References _upperleft.
| bool Papyrus::Hexgrid::has_outline | ( | ) | [inline] |
References _use_outline.
| virtual void Papyrus::Hexgrid::pl_insert | ( | ) | [virtual] |
| void Papyrus::Hexgrid::set_color | ( | int | x, | |
| int | y, | |||
| RGBA & | color | |||
| ) |
| void Papyrus::Hexgrid::set_outline | ( | RGBA & | outline | ) | [inline] |
References _outline, and _use_outline.
| void Papyrus::Hexgrid::set_radius | ( | double | radius | ) |
| void Papyrus::Hexgrid::set_upperleft | ( | Vertex & | upperleft | ) | [inline] |
References _upperleft.
| bool Papyrus::Hexgrid::use_outline | ( | bool | uo | ) | [inline] |
References _use_outline.
double Papyrus::Hexgrid::_apothem [protected] |
Referenced by get_apothem().
RGBA* Papyrus::Hexgrid::_colors [protected] |
double Papyrus::Hexgrid::_halfedge [protected] |
Referenced by get_edge().
int Papyrus::Hexgrid::_height [protected] |
RGBA Papyrus::Hexgrid::_outline [protected] |
Referenced by get_outline(), and set_outline().
double Papyrus::Hexgrid::_radius [protected] |
Referenced by get_radius().
Style Papyrus::Hexgrid::_style [protected] |
Referenced by get_style(), and set_style().
Vertex Papyrus::Hexgrid::_upperleft [protected] |
Referenced by get_upperleft(), and set_upperleft().
bool Papyrus::Hexgrid::_use_outline [protected] |
Referenced by has_outline(), set_outline(), and use_outline().
int Papyrus::Hexgrid::_width [protected] |
1.6.1