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