papyrus logo

Papyrus::Hexgrid Class Reference

This class is still not ported from the old glcanvasmm library. More...

#include <hexgrid.h>

Inheritance diagram for Papyrus::Hexgrid:
Inheritance graph
[legend]

List of all members.

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)
Vertexget_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

Detailed Description

This class is still not ported from the old glcanvasmm library.

Author:
Rick L Vinyard Jr

Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
SIDE 
VERTEX 

Constructor & Destructor Documentation

Papyrus::Hexgrid::Hexgrid ( Vertex  upperleft,
int  width,
int  height,
double  hexrad 
)
Papyrus::Hexgrid::Hexgrid ( Vertex  upperleft,
Glib::ustring  filename,
double  hexrad 
)
Papyrus::Hexgrid::~Hexgrid (  ) 

Member Function Documentation

double Papyrus::Hexgrid::get_apothem (  )  [inline]

References _apothem.

double Papyrus::Hexgrid::get_edge (  )  [inline]

References _halfedge.

RGBA Papyrus::Hexgrid::get_outline (  )  [inline]

References _outline.

double Papyrus::Hexgrid::get_radius (  )  [inline]

References _radius.

Style Papyrus::Hexgrid::get_style (  )  [inline]

References _style.

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_style ( Style  s  )  [inline]

References _style.

void Papyrus::Hexgrid::set_upperleft ( Vertex upperleft  )  [inline]

References _upperleft.

bool Papyrus::Hexgrid::use_outline ( bool  uo  )  [inline]

References _use_outline.


Member Data Documentation

double Papyrus::Hexgrid::_apothem [protected]

Referenced by get_apothem().

double Papyrus::Hexgrid::_halfedge [protected]

Referenced by get_edge().

int Papyrus::Hexgrid::_height [protected]

Referenced by get_outline(), and set_outline().

double Papyrus::Hexgrid::_radius [protected]

Referenced by get_radius().

Referenced by get_style(), and set_style().

Referenced by get_upperleft(), and set_upperleft().

int Papyrus::Hexgrid::_width [protected]

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

Generated on Fri Apr 16 12:41:07 2010 for papyrus by doxygen 1.6.1