Papyrus::FreehandSketcher Class Reference

#include <papyrus/freehandsketcher.h>

Inheritance diagram for Papyrus::FreehandSketcher:

Inheritance graph
[legend]
List of all members.

Detailed Description

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>


Public Types

typedef PapyrusSmartPointer<
FreehandSketcher
pointer
typedef std::set< Group::pointer > Sketchpads

Public Member Functions

 FreehandSketcher (SKETCH mode=SKETCH_LINE, const LineStyle &linestyle=LineStyle())
const Sketchpads & sketchpads ()
void add_sketchpad (Group::pointer sketchpad)
void remove_sketchpad (Group::pointer sketchpad)
SKETCH sketch_mode ()
void set_sketch_mode (SKETCH mode)
LineStyleline_style ()
void set_line_style (const LineStyle &line_style)
Cairo::RefPtr< Cairo::Pattern > get_fill ()
void set_fill (Cairo::RefPtr< Cairo::Pattern > fill)
void set_movement_threshhold (double t)
double get_movement_threshhold ()

Static Public Member Functions

static FreehandSketcher::pointer create (SKETCH mode=SKETCH_LINE, const LineStyle &linestyle=LineStyle())

Protected Types

typedef std::map< Group::pointer,
Polyline::pointer > 
Lines

Protected Member Functions

virtual bool on_button_press (const Event::ButtonPress &event)
virtual bool on_button_release (const Event::ButtonRelease &event)
virtual bool on_motion (const Event::Motion &event)

Protected Attributes

SKETCH m_mode
LineStyle m_line_style
Lines m_lines
Papyrus::Polyline::pointer m_current_line
Sketchpads m_sketchpads
bool m_drawing
double m_last_position [2]
double m_movement_threshhold
Cairo::RefPtr< Cairo::Pattern > m_fill


The documentation for this class was generated from the following files:
Generated on Sun Mar 11 10:01:38 2007 by  doxygen 1.5.1