
#include <regularpolygon.h>

Public Types | |
| enum | Style { ZERO_RADIUS, ZERO_APOTHEM } |
| typedef enum Papyrus::RegularPolygon::Style | Style |
Public Member Functions | |
| PAPYRUS_DRAWABLE (RegularPolygon) | |
| virtual | ~RegularPolygon () |
| unsigned int | sides () |
| void | set_sides (unsigned int s) |
| double | radius () |
| void | set_radius (double r) |
| void | set_sides_radius (unsigned int s, double r) |
| double | edge_length () |
| void | set_edge_length (double e) |
| void | set_sides_edge_length (unsigned int s, double e) |
| double | apothem_length () |
| void | set_apothem_length (double a) |
| void | set_sides_apothem_length (unsigned int s, double a) |
| Style | style () |
| void | set_style (Style) |
| sigc::signal< void > | signal_sides () |
| signal emitted when the number of sides changes | |
| sigc::signal< void > | signal_size () |
| signal emitted when the radius, edge length, or apothem length changes | |
| sigc::signal< void > | signal_style () |
| signal emitted when the style changes | |
Static Public Member Functions | |
| static RegularPolygon::pointer | create (unsigned int sides=3, double radius=1.0, Style style=ZERO_RADIUS, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer()) |
| static RegularPolygon::pointer | create (const Glib::ustring &id, unsigned int sides=3, double radius=1.0, Style style=ZERO_RADIUS, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer()) |
Protected Member Functions | |
| RegularPolygon (const Glib::ustring &id, unsigned int sides, double radius, Style style, Fill::pointer fill, Stroke::pointer stroke) | |
| void | create_vertices () |
Protected Attributes | |
| unsigned int | m_sides |
| double | m_radius |
| Style | m_style |
| sigc::signal< void > | m_signal_sides |
| sigc::signal< void > | m_signal_size |
| sigc::signal< void > | m_signal_style |
| Papyrus::RegularPolygon::RegularPolygon | ( | const Glib::ustring & | id, | |
| unsigned int | sides, | |||
| double | radius, | |||
| Style | style, | |||
| Fill::pointer | fill, | |||
| Stroke::pointer | stroke | |||
| ) | [protected] |
References create_vertices(), and m_radius.
| Papyrus::RegularPolygon::~RegularPolygon | ( | ) | [virtual] |
| RegularPolygon::pointer Papyrus::RegularPolygon::create | ( | const Glib::ustring & | id, | |
| unsigned int | sides = 3, |
|||
| double | radius = 1.0, |
|||
| Style | style = ZERO_RADIUS, |
|||
| Fill::pointer | fill = Fill::pointer(), |
|||
| Stroke::pointer | stroke = Stroke::pointer() | |||
| ) | [static] |
References PAPYRUS_CREATE.
| RegularPolygon::pointer Papyrus::RegularPolygon::create | ( | unsigned int | sides = 3, |
|
| double | radius = 1.0, |
|||
| Style | style = ZERO_RADIUS, |
|||
| Fill::pointer | fill = Fill::pointer(), |
|||
| Stroke::pointer | stroke = Stroke::pointer() | |||
| ) | [static] |
References PAPYRUS_CREATE.
| void Papyrus::RegularPolygon::create_vertices | ( | ) | [protected] |
References m_radius, m_sides, m_style, Papyrus::Polyline::m_vertices, Papyrus::Polyline::on_vertices_changed(), Papyrus::Drawable::x(), Papyrus::Drawable::y(), and ZERO_APOTHEM.
Referenced by RegularPolygon(), set_apothem_length(), set_edge_length(), set_radius(), set_sides(), set_sides_apothem_length(), set_sides_edge_length(), set_sides_radius(), and set_style().
| Papyrus::RegularPolygon::PAPYRUS_DRAWABLE | ( | RegularPolygon | ) |
Reimplemented from Papyrus::Polygon.
| double Papyrus::RegularPolygon::radius | ( | ) |
References m_radius.
| void Papyrus::RegularPolygon::set_apothem_length | ( | double | a | ) |
References create_vertices(), m_radius, m_sides, and m_signal_size.
| void Papyrus::RegularPolygon::set_edge_length | ( | double | e | ) |
References create_vertices(), m_radius, m_sides, and m_signal_size.
| void Papyrus::RegularPolygon::set_radius | ( | double | r | ) |
References create_vertices(), m_radius, and m_signal_size.
| void Papyrus::RegularPolygon::set_sides | ( | unsigned int | s | ) |
References create_vertices(), m_sides, and m_signal_sides.
| void Papyrus::RegularPolygon::set_sides_apothem_length | ( | unsigned int | s, | |
| double | a | |||
| ) |
References create_vertices(), m_radius, m_sides, m_signal_sides, and m_signal_size.
| void Papyrus::RegularPolygon::set_sides_edge_length | ( | unsigned int | s, | |
| double | e | |||
| ) |
References create_vertices(), m_radius, m_sides, m_signal_sides, and m_signal_size.
| void Papyrus::RegularPolygon::set_sides_radius | ( | unsigned int | s, | |
| double | r | |||
| ) |
References create_vertices(), m_radius, m_sides, m_signal_sides, and m_signal_size.
| void Papyrus::RegularPolygon::set_style | ( | Style | i | ) |
References create_vertices(), m_signal_style, and m_style.
| unsigned int Papyrus::RegularPolygon::sides | ( | ) |
References m_sides.
| sigc::signal< void > Papyrus::RegularPolygon::signal_sides | ( | ) |
signal emitted when the number of sides changes
References m_signal_sides.
| sigc::signal< void > Papyrus::RegularPolygon::signal_size | ( | ) |
signal emitted when the radius, edge length, or apothem length changes
References m_signal_size.
| sigc::signal< void > Papyrus::RegularPolygon::signal_style | ( | ) |
signal emitted when the style changes
References m_signal_style.
| RegularPolygon::Style Papyrus::RegularPolygon::style | ( | ) |
References m_style.
double Papyrus::RegularPolygon::m_radius [protected] |
unsigned int Papyrus::RegularPolygon::m_sides [protected] |
sigc::signal<void> Papyrus::RegularPolygon::m_signal_sides [protected] |
Referenced by set_sides(), set_sides_apothem_length(), set_sides_edge_length(), set_sides_radius(), and signal_sides().
sigc::signal<void> Papyrus::RegularPolygon::m_signal_size [protected] |
sigc::signal<void> Papyrus::RegularPolygon::m_signal_style [protected] |
Referenced by set_style(), and signal_style().
Style Papyrus::RegularPolygon::m_style [protected] |
Referenced by create_vertices(), set_style(), and style().
1.6.1