#include <freehandsketcher.h>
typedef std::map< Group::pointer, Polyline::pointer > Papyrus::FreehandSketcher::Lines [protected] |
typedef PapyrusPointer<FreehandSketcher> Papyrus::FreehandSketcher::pointer |
Reimplemented from Papyrus::Controller.
typedef std::set<Group::pointer> Papyrus::FreehandSketcher::Sketchpads |
Papyrus::FreehandSketcher::FreehandSketcher | ( | const Glib::ustring & | id, | |
SKETCH | mode = SKETCH_LINE , |
|||
Stroke::pointer | stroke = Stroke::pointer() | |||
) | [protected] |
Papyrus::FreehandSketcher::~FreehandSketcher | ( | ) | [virtual] |
void Papyrus::FreehandSketcher::add_sketchpad | ( | Group::pointer | sketchpad | ) |
References m_current_line, m_drawing, m_lines, m_sketchpads, and papyrus_dynamic_pointer_cast.
FreehandSketcher::pointer Papyrus::FreehandSketcher::create | ( | SKETCH | mode = SKETCH_LINE , |
|
Stroke::pointer | stroke = Stroke::pointer() | |||
) | [static] |
FreehandSketcher::pointer Papyrus::FreehandSketcher::create | ( | const Glib::ustring & | id, | |
SKETCH | mode = SKETCH_LINE , |
|||
Stroke::pointer | stroke = Stroke::pointer() | |||
) | [static] |
Referenced by on_button_press().
Fill::pointer Papyrus::FreehandSketcher::fill | ( | ) |
References m_fill.
double Papyrus::FreehandSketcher::get_movement_threshhold | ( | ) |
References m_movement_threshhold.
bool Papyrus::FreehandSketcher::on_button_press | ( | const Event::ButtonPress & | event | ) | [protected, virtual] |
Reimplemented from Papyrus::Controller.
References create(), m_current_line, m_drawing, m_fill, m_last_position, m_lines, m_mode, m_sketchpads, m_stroke, papyrus_dynamic_pointer_cast, Papyrus::SKETCH_LINE, Papyrus::SKETCH_POLYGON, Papyrus::Event::Button::x, and Papyrus::Event::Button::y.
bool Papyrus::FreehandSketcher::on_button_release | ( | const Event::ButtonRelease & | event | ) | [protected, virtual] |
Reimplemented from Papyrus::Controller.
References m_current_line, and m_lines.
bool Papyrus::FreehandSketcher::on_motion | ( | const Event::Motion & | event | ) | [protected, virtual] |
Reimplemented from Papyrus::Controller.
References m_current_line, m_drawing, m_last_position, m_lines, m_movement_threshhold, Papyrus::Event::Motion::x, and Papyrus::Event::Motion::y.
void Papyrus::FreehandSketcher::remove_sketchpad | ( | Group::pointer | sketchpad | ) |
References m_lines, and m_sketchpads.
void Papyrus::FreehandSketcher::set_fill | ( | Fill::pointer | fill | ) |
References m_fill.
void Papyrus::FreehandSketcher::set_movement_threshhold | ( | double | t | ) |
References m_movement_threshhold.
void Papyrus::FreehandSketcher::set_stroke | ( | Stroke::pointer | stroke | ) |
const FreehandSketcher::Sketchpads & Papyrus::FreehandSketcher::sketchpads | ( | ) |
References m_sketchpads.
Stroke::pointer Papyrus::FreehandSketcher::stroke | ( | ) |
References m_stroke.
Referenced by add_sketchpad(), on_button_press(), on_button_release(), and on_motion().
bool Papyrus::FreehandSketcher::m_drawing [protected] |
Referenced by add_sketchpad(), on_button_press(), and on_motion().
Fill::pointer Papyrus::FreehandSketcher::m_fill [protected] |
Referenced by fill(), on_button_press(), and set_fill().
double Papyrus::FreehandSketcher::m_last_position[2] [protected] |
Referenced by on_button_press(), and on_motion().
Lines Papyrus::FreehandSketcher::m_lines [protected] |
Referenced by add_sketchpad(), on_button_press(), on_button_release(), on_motion(), remove_sketchpad(), and set_stroke().
SKETCH Papyrus::FreehandSketcher::m_mode [protected] |
Referenced by on_button_press(), set_sketch_mode(), and sketch_mode().
double Papyrus::FreehandSketcher::m_movement_threshhold [protected] |
Referenced by get_movement_threshhold(), on_motion(), and set_movement_threshhold().
Sketchpads Papyrus::FreehandSketcher::m_sketchpads [protected] |
Referenced by add_sketchpad(), on_button_press(), remove_sketchpad(), and sketchpads().
Stroke::pointer Papyrus::FreehandSketcher::m_stroke [protected] |
Referenced by on_button_press(), set_stroke(), and stroke().