#include <hilbert.h>
Public Member Functions | |
PAPYRUS_DRAWABLE (Hilbert) | |
virtual | ~Hilbert () |
unsigned | level () |
void | set_level (unsigned level) |
double | size () |
void | set_size (double size) |
Static Public Member Functions | |
static pointer | create (unsigned level=0, double size=0, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer()) |
static pointer | create (const Glib::ustring &id, unsigned level=0, double size=0, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer()) |
Protected Member Functions | |
Hilbert (const Glib::ustring &id, unsigned level, double size, Fill::pointer fill, Stroke::pointer stroke) | |
void | create_vertices () |
void | hilbert_a (unsigned level) |
void | hilbert_b (unsigned level) |
void | hilbert_c (unsigned level) |
void | hilbert_d (unsigned level) |
Protected Attributes | |
unsigned | m_level |
double | m_size |
double | m_lsize |
Papyrus::Hilbert::Hilbert | ( | const Glib::ustring & | id, | |
unsigned | level, | |||
double | size, | |||
Fill::pointer | fill, | |||
Stroke::pointer | stroke | |||
) | [protected] |
References create_vertices().
Papyrus::Hilbert::~Hilbert | ( | ) | [virtual] |
Hilbert::pointer Papyrus::Hilbert::create | ( | const Glib::ustring & | id, | |
unsigned | level = 0 , |
|||
double | size = 0 , |
|||
Fill::pointer | fill = Fill::pointer() , |
|||
Stroke::pointer | stroke = Stroke::pointer() | |||
) | [static] |
References PAPYRUS_CREATE.
Hilbert::pointer Papyrus::Hilbert::create | ( | unsigned | level = 0 , |
|
double | size = 0 , |
|||
Fill::pointer | fill = Fill::pointer() , |
|||
Stroke::pointer | stroke = Stroke::pointer() | |||
) | [static] |
References PAPYRUS_CREATE.
void Papyrus::Hilbert::create_vertices | ( | ) | [protected] |
References hilbert_a(), m_level, m_lsize, m_size, Papyrus::Polyline::m_vertices, and Papyrus::Polyline::on_vertices_changed().
Referenced by Hilbert(), set_level(), and set_size().
void Papyrus::Hilbert::hilbert_a | ( | unsigned | level | ) | [protected] |
References hilbert_b(), hilbert_c(), m_lsize, and Papyrus::Polyline::m_vertices.
Referenced by create_vertices(), hilbert_b(), and hilbert_c().
void Papyrus::Hilbert::hilbert_b | ( | unsigned | level | ) | [protected] |
References hilbert_a(), hilbert_d(), m_lsize, and Papyrus::Polyline::m_vertices.
Referenced by hilbert_a(), and hilbert_d().
void Papyrus::Hilbert::hilbert_c | ( | unsigned | level | ) | [protected] |
References hilbert_a(), hilbert_d(), m_lsize, and Papyrus::Polyline::m_vertices.
Referenced by hilbert_a(), and hilbert_d().
void Papyrus::Hilbert::hilbert_d | ( | unsigned | level | ) | [protected] |
References hilbert_b(), hilbert_c(), m_lsize, and Papyrus::Polyline::m_vertices.
Referenced by hilbert_b(), and hilbert_c().
unsigned Papyrus::Hilbert::level | ( | ) |
References m_level.
Papyrus::Hilbert::PAPYRUS_DRAWABLE | ( | Hilbert | ) |
Reimplemented from Papyrus::Polyline.
void Papyrus::Hilbert::set_level | ( | unsigned | level | ) |
References create_vertices(), and m_level.
void Papyrus::Hilbert::set_size | ( | double | size | ) |
References create_vertices(), and m_size.
double Papyrus::Hilbert::size | ( | ) |
References m_size.
unsigned Papyrus::Hilbert::m_level [protected] |
Referenced by create_vertices(), level(), and set_level().
double Papyrus::Hilbert::m_lsize [protected] |
Referenced by create_vertices(), hilbert_a(), hilbert_b(), hilbert_c(), and hilbert_d().
double Papyrus::Hilbert::m_size [protected] |
Referenced by create_vertices(), set_size(), and size().