synfig-studio
1.0.3
|
#include <duckmatic.h>
Classes | |
struct | Bezier |
class | Push |
struct | Stroke |
Public Types | |
typedef std::map< synfig::GUID, etl::smart_ptr< synfig::Point > > | DuckDataMap |
typedef studio::DuckMap | DuckMap |
typedef studio::Duck | Duck |
typedef Duck::Type | Type |
typedef std::list< float > | GuideList |
Public Member Functions | |
Duckmatic (etl::loose_handle< synfigapp::CanvasInterface > canvas_interface) | |
virtual | ~Duckmatic () |
void | set_alternative_mode (bool x) |
bool | get_alternative_mode () const |
void | set_lock_animation_mode (bool x) |
bool | get_lock_animation_mode () const |
sigc::signal< void > & | signal_duck_selection_changed () |
sigc::signal< void > & | signal_strokes_changed () |
sigc::signal< void > & | signal_grid_changed () |
sigc::signal< void > & | signal_sketch_saved () |
GuideList & | get_guide_list_x () |
GuideList & | get_guide_list_y () |
const GuideList & | get_guide_list_x () const |
const GuideList & | get_guide_list_y () const |
void | set_guide_snap (bool x=true) |
bool | get_guide_snap () const |
void | toggle_guide_snap () |
void | set_guides_color (const synfig::Color &c) |
Sets the color of the guides. | |
const synfig::Color & | get_guides_color () const |
Returns the color of the guides. | |
void | set_grid_snap (bool x=true) |
Sets the state of the grid snap flag. | |
bool | get_grid_snap () const |
Gets the state of the grid snap flag. | |
void | enable_grid_snap () |
void | disable_grid_snap () |
void | toggle_grid_snap () |
synfig::Point | snap_point_to_grid (const synfig::Point &x) const |
bool | get_show_persistent_strokes () const |
void | set_show_persistent_strokes (bool x) |
void | set_grid_size (const synfig::Vector &s) |
Sets the size of the grid. | |
void | set_grid_color (const synfig::Color &c) |
Sets the color of the grid. | |
const synfig::Vector & | get_grid_size () const |
Returns the size of the grid. | |
const synfig::Color & | get_grid_color () const |
Returns the color of the grid. | |
const synfig::Time & | get_time () const |
bool | get_axis_lock () const |
void | set_axis_lock (bool x) |
void | set_time (synfig::Time x) |
bool | is_duck_group_selectable (const etl::handle< Duck > &x) const |
DuckList | get_duck_list () const |
const std::list< etl::handle < Bezier > > & | bezier_list () const |
const std::list< etl::handle < Stroke > > & | stroke_list () const |
const std::list< etl::handle < Stroke > > & | persistent_stroke_list () const |
std::list< etl::handle< Stroke > > & | persistent_stroke_list () |
etl::handle< Duck > | get_selected_duck () const |
Return first selected duck (handle) has const Duck etl::handle. | |
DuckList | get_selected_ducks () const |
Return list of selected ducks (handles) | |
DuckList | get_ducks_in_box (const synfig::Vector &tl, const synfig::Vector &br) const |
Return list of box contained ducks (handles). The box is defined by a vector's pair. | |
void | refresh_selected_ducks () |
void | clear_selected_ducks () |
Clear all selected ducks. | |
int | count_selected_ducks () const |
Return the number of selected ducks. | |
bool | duck_is_selected (const etl::handle< Duck > &duck) const |
Give the selection status of a duck. | |
void | toggle_select_duck (const etl::handle< Duck > &duck) |
Toggle the duck (handle) | |
void | select_duck (const etl::handle< Duck > &duck) |
Select the duck (handle) | |
void | unselect_duck (const etl::handle< Duck > &duck) |
Unselect the duck (handle) | |
void | toggle_select_ducks_in_box (const synfig::Vector &tl, const synfig::Vector &br) |
Toggle the ducks (handles) contained in the box defined by a pair of vectors. | |
void | select_ducks_in_box (const synfig::Vector &tl, const synfig::Vector &br) |
Select the ducks (handles) contained in the box defined by a pair of vectors. | |
const synfig::TransformStack & | get_curr_transform_stack () const |
void | clear_curr_transform_stack () |
etl::handle< Bezier > | get_selected_bezier () const |
void | start_duck_drag (const synfig::Vector &offset) |
Begin dragging ducks. | |
void | translate_selected_ducks (const synfig::Vector &vector) |
Continue dragging the selected ducks. | |
void | update_ducks () |
Update the coordinates of tangents and linked-to-bline ducks. | |
bool | end_duck_drag () |
Ends the duck drag. | |
void | start_bezier_drag (const synfig::Vector &offset, float bezier_click_pos) |
void | translate_selected_bezier (const synfig::Vector &vector) |
bool | end_bezier_drag () |
void | signal_user_click_selected_ducks (int button) |
Signals to each selected duck that it has been clicked. | |
void | signal_edited_duck (const etl::handle< Duck > &duck, bool moving=false) |
Calls a single duck's edited signal. | |
void | signal_edited_selected_ducks (bool moving=false) |
Calls all of the ducks' edited signals. | |
bool | on_duck_changed (const studio::Duck &duck, const synfigapp::ValueDesc &value_desc) |
etl::handle< Duck > | find_similar_duck (etl::handle< Duck > duck) |
etl::handle< Duck > | add_similar_duck (etl::handle< Duck > duck) |
void | add_stroke (etl::smart_ptr< std::list< synfig::Point > > stroke_point_list, const synfig::Color &color=synfig::Color(0, 0, 0)) |
void | add_persistent_stroke (etl::smart_ptr< std::list< synfig::Point > > stroke_point_list, const synfig::Color &color=synfig::Color(0, 0, 0)) |
void | clear_persistent_strokes () |
void | add_duck (const etl::handle< Duck > &duck) |
void | add_bezier (const etl::handle< Bezier > &bezier) |
void | erase_duck (const etl::handle< Duck > &duck) |
void | erase_bezier (const etl::handle< Bezier > &bezier) |
etl::handle< Duck > | last_duck () const |
Returns the last duck added. | |
etl::handle< Bezier > | last_bezier () const |
etl::handle< Duck > | find_duck (synfig::Point pos, synfig::Real radius=0, Duck::Type type=Duck::TYPE_DEFAULT) |
GuideList::iterator | find_guide_x (synfig::Point pos, float radius=0.1) |
GuideList::iterator | find_guide_y (synfig::Point pos, float radius=0.1) |
GuideList::const_iterator | find_guide_x (synfig::Point pos, float radius=0.1) const |
GuideList::const_iterator | find_guide_y (synfig::Point pos, float radius=0.1) const |
etl::handle< Bezier > | find_bezier (synfig::Point pos, synfig::Real radius=0, float *location=0) |
etl::handle< Bezier > | find_bezier (synfig::Point pos, synfig::Real scale, synfig::Real radius, float *location=0) |
void | add_ducks_layers (synfig::Canvas::Handle canvas, std::set< synfig::Layer::Handle > &selected_layer_set, etl::handle< CanvasView > canvas_view, synfig::TransformStack &transform_stack) |
bool | add_to_ducks (const synfigapp::ValueDesc &value_desc, etl::handle< CanvasView > canvas_view, const synfig::TransformStack &transform_stack_, synfig::ParamDesc *param_desc=0) |
void | set_type_mask (Type x) |
Set the type mask, which determines what types of ducks are shown. | |
Type | get_type_mask () const |
Get the type mask, which determines what types of ducks are shown. | |
void | select_all_ducks () |
void | unselect_all_ducks () |
void | clear_ducks () |
bool | save_sketch (const synfig::String &filename) const |
bool | load_sketch (const synfig::String &filename) |
const synfig::String & | get_sketch_filename () const |
void | set_duck_dragger (etl::handle< DuckDrag_Base > x) |
etl::handle< DuckDrag_Base > | get_duck_dragger () const |
void | clear_duck_dragger () |
void | set_bezier_dragger (etl::handle< BezierDrag_Base > x) |
etl::handle< BezierDrag_Base > | get_bezier_dragger () const |
void | clear_bezier_dragger () |
Protected Attributes | |
etl::handle< Bezier > | selected_bezier |
synfig::Time | cur_time |
bool | grid_snap |
This flag is set if operations should snap to the grid. | |
bool | guide_snap |
synfig::Vector | grid_size |
This vector describes the grid size. | |
synfig::Color | grid_color |
Hold the grid color. | |
synfig::Color | guides_color |
Hold the guides color. | |
float | zoom |
Zoom factor. | |
float | prev_zoom |
Previous Zoom factor. | |
bool | show_persistent_strokes |
bool | axis_lock |
Friends | |
class | DuckDrag_Base |
class | DuckDrag_Translate |
class | Push |
This class helps organize any of the devices displayed in the work area that the user may want to interact with. This includes ducks, beziers, and strokes
typedef std::map<synfig::GUID,etl::smart_ptr<synfig::Point> > studio::Duckmatic::DuckDataMap |
typedef studio::Duck studio::Duckmatic::Duck |
typedef Duck::Type studio::Duckmatic::Type |
typedef std::list<float> studio::Duckmatic::GuideList |
Duckmatic::Duckmatic | ( | etl::loose_handle< synfigapp::CanvasInterface > | canvas_interface | ) |
References clear_bezier_dragger(), and clear_duck_dragger().
|
virtual |
References clear_ducks().
|
inline |
|
inline |
Referenced by on_duck_changed().
|
inline |
|
inline |
Referenced by on_duck_changed().
|
inline |
Referenced by studio::WorkArea::WorkArea().
|
inline |
Referenced by studio::WorkArea::WorkArea().
|
inline |
Referenced by set_grid_color(), set_grid_size(), set_grid_snap(), set_guide_snap(), set_guides_color(), and studio::WorkArea::WorkArea().
|
inline |
Referenced by studio::WorkArea::WorkArea().
|
inline |
Referenced by studio::WorkArea::load_meta_data(), and studio::WorkArea::save_meta_data().
|
inline |
Referenced by studio::WorkArea::load_meta_data(), and studio::WorkArea::save_meta_data().
|
inline |
|
inline |
void Duckmatic::set_guide_snap | ( | bool | x = true | ) |
References guide_snap, and signal_grid_changed().
Referenced by studio::WorkArea::load_meta_data(), and toggle_guide_snap().
|
inline |
References guide_snap.
Referenced by studio::WorkArea::save_meta_data(), and toggle_guide_snap().
|
inline |
Reimplemented in studio::WorkArea.
References get_guide_snap(), and set_guide_snap().
void Duckmatic::set_guides_color | ( | const synfig::Color & | c | ) |
Sets the color of the guides.
Reimplemented in studio::WorkArea.
References guides_color, and signal_grid_changed().
|
inline |
void Duckmatic::set_grid_snap | ( | bool | x = true | ) |
Sets the state of the grid snap flag.
References grid_snap, and signal_grid_changed().
Referenced by disable_grid_snap(), enable_grid_snap(), studio::WorkArea::load_meta_data(), and toggle_grid_snap().
|
inline |
Gets the state of the grid snap flag.
References grid_snap.
Referenced by studio::WorkArea::save_meta_data(), and snap_point_to_grid().
|
inline |
References set_grid_snap().
|
inline |
References set_grid_snap().
|
inline |
Reimplemented in studio::WorkArea.
References grid_snap, and set_grid_snap().
Point Duckmatic::snap_point_to_grid | ( | const synfig::Point & | x | ) | const |
References axis_lock, find_guide_x(), find_guide_y(), get_grid_size(), get_grid_snap(), guide_snap, and zoom.
Referenced by studio::BezierDrag_Default::bezier_drag(), and studio::DuckDrag_Translate::duck_drag().
|
inline |
References show_persistent_strokes.
void Duckmatic::set_show_persistent_strokes | ( | bool | x | ) |
References show_persistent_strokes.
void Duckmatic::set_grid_size | ( | const synfig::Vector & | s | ) |
Sets the size of the grid.
Reimplemented in studio::WorkArea.
References grid_size, and signal_grid_changed().
void Duckmatic::set_grid_color | ( | const synfig::Color & | c | ) |
Sets the color of the grid.
Reimplemented in studio::WorkArea.
References grid_color, and signal_grid_changed().
|
inline |
Returns the size of the grid.
References grid_size.
Referenced by studio::WorkArea::load_meta_data(), studio::WorkArea::refresh_dimension_info(), studio::WorkArea::save_meta_data(), and snap_point_to_grid().
|
inline |
|
inline |
References cur_time.
Referenced by add_to_ducks(), studio::WorkArea::async_render_preview(), studio::BezierDrag_Default::bezier_drag(), studio::DuckDrag_Translate::duck_drag(), on_duck_changed(), studio::WorkArea::sync_render_preview(), studio::WorkArea::sync_render_preview_hook(), and update_ducks().
|
inline |
References axis_lock.
|
inline |
References axis_lock.
|
inline |
References cur_time.
bool Duckmatic::is_duck_group_selectable | ( | const etl::handle< Duck > & | x | ) | const |
References get_type_mask(), and studio::Duck::TYPE_POSITION.
Referenced by select_all_ducks(), select_ducks_in_box(), and toggle_select_ducks_in_box().
DuckList Duckmatic::get_duck_list | ( | ) | const |
References studio::Duck::TYPE_POSITION, studio::Duck::TYPE_TANGENT, and studio::Duck::TYPE_VERTEX.
Referenced by update_ducks().
|
inline |
Referenced by find_bezier().
|
inline |
|
inline |
|
inline |
etl::handle< Duckmatic::Duck > Duckmatic::get_selected_duck | ( | ) | const |
Return first selected duck (handle) has const Duck etl::handle.
DuckList Duckmatic::get_selected_ducks | ( | ) | const |
Return list of selected ducks (handles)
References get_type_mask().
Referenced by studio::DuckDrag_Translate::begin_duck_drag(), studio::DuckDrag_Translate::duck_drag(), signal_edited_selected_ducks(), signal_user_click_selected_ducks(), and update_ducks().
DuckList Duckmatic::get_ducks_in_box | ( | const synfig::Vector & | tl, |
const synfig::Vector & | br | ||
) | const |
Return list of box contained ducks (handles). The box is defined by a vector's pair.
tl | The top left canvas coordinate has const synfig::Vector |
br | The bottom right canvas coordinate has const synfig::Vector |
void Duckmatic::refresh_selected_ducks | ( | ) |
void Duckmatic::clear_selected_ducks | ( | ) |
Clear all selected ducks.
int Duckmatic::count_selected_ducks | ( | ) | const |
Return the number of selected ducks.
bool Duckmatic::duck_is_selected | ( | const etl::handle< Duck > & | duck | ) | const |
Give the selection status of a duck.
Referenced by toggle_select_duck().
void Duckmatic::toggle_select_duck | ( | const etl::handle< Duck > & | duck | ) |
Toggle the duck (handle)
duck | The duck (handle) to toggle has etl::handle parameter |
References duck_is_selected(), select_duck(), and unselect_duck().
Referenced by toggle_select_ducks_in_box().
void Duckmatic::select_duck | ( | const etl::handle< Duck > & | duck | ) |
Select the duck (handle)
duck | The duck (handle) to select has etl::handle parameter |
Referenced by select_all_ducks(), select_ducks_in_box(), and toggle_select_duck().
void Duckmatic::unselect_duck | ( | const etl::handle< Duck > & | duck | ) |
Unselect the duck (handle)
duck | The duck (handle) to unselect has etl::handle parameter |
Referenced by select_all_ducks(), toggle_select_duck(), and unselect_all_ducks().
void Duckmatic::toggle_select_ducks_in_box | ( | const synfig::Vector & | tl, |
const synfig::Vector & | br | ||
) |
Toggle the ducks (handles) contained in the box defined by a pair of vectors.
tl | The top left canvas coordinate has const synfig::Vector |
br | The bottom right canvas coordinate has const synfig::Vector |
References is_duck_group_selectable(), and toggle_select_duck().
void Duckmatic::select_ducks_in_box | ( | const synfig::Vector & | tl, |
const synfig::Vector & | br | ||
) |
Select the ducks (handles) contained in the box defined by a pair of vectors.
tl | The top left canvas coordinate has const synfig::Vector |
br | The bottom right canvas coordinate has const synfig::Vector |
References is_duck_group_selectable(), and select_duck().
|
inline |
|
inline |
etl::handle< Duckmatic::Bezier > Duckmatic::get_selected_bezier | ( | ) | const |
void Duckmatic::start_duck_drag | ( | const synfig::Vector & | offset | ) |
Begin dragging ducks.
offset | Canvas coordinates of the mouse when the drag began |
References find_duck().
void Duckmatic::translate_selected_ducks | ( | const synfig::Vector & | vector | ) |
Continue dragging the selected ducks.
The overall vector of the drag is vector-offset (where offset was given in start_duck_drag)
vector | Canvas coordinates of the mouse at this moment |
void Duckmatic::update_ducks | ( | ) |
Update the coordinates of tangents and linked-to-bline ducks.
References get_duck_list(), get_selected_bezier(), get_selected_ducks(), get_time(), studio::Duck::TYPE_POSITION, studio::Duck::TYPE_TANGENT, and studio::Duck::TYPE_VERTEX.
Referenced by studio::BezierDrag_Default::bezier_drag(), and studio::DuckDrag_Translate::duck_drag().
bool Duckmatic::end_duck_drag | ( | ) |
Ends the duck drag.
void Duckmatic::start_bezier_drag | ( | const synfig::Vector & | offset, |
float | bezier_click_pos | ||
) |
void Duckmatic::translate_selected_bezier | ( | const synfig::Vector & | vector | ) |
bool Duckmatic::end_bezier_drag | ( | ) |
void Duckmatic::signal_user_click_selected_ducks | ( | int | button | ) |
Signals to each selected duck that it has been clicked.
References get_selected_ducks().
Referenced by studio::DuckDrag_Translate::end_duck_drag().
void Duckmatic::signal_edited_duck | ( | const etl::handle< Duck > & | duck, |
bool | moving = false |
||
) |
Calls a single duck's edited signal.
Updates the corresponding valuenodes after a drag
References studio::App::restrict_radius_ducks, and studio::Duck::TYPE_ANGLE.
Referenced by studio::BezierDrag_Default::bezier_drag(), studio::BezierDrag_Default::end_bezier_drag(), and signal_edited_selected_ducks().
void Duckmatic::signal_edited_selected_ducks | ( | bool | moving = false | ) |
Calls all of the ducks' edited signals.
Updates corresponding valuenodes after a drag
References get_selected_ducks(), and signal_edited_duck().
Referenced by studio::DuckDrag_Translate::duck_drag(), and studio::DuckDrag_Translate::end_duck_drag().
bool Duckmatic::on_duck_changed | ( | const studio::Duck & | duck, |
const synfigapp::ValueDesc & | value_desc | ||
) |
References studio::Duck::get_alternative_editable(), get_alternative_mode(), studio::Duck::get_alternative_value_desc(), studio::Duck::get_exponential(), synfigapp::ValueDesc::get_index(), synfigapp::ValueDesc::get_layer(), get_lock_animation_mode(), synfigapp::ValueDesc::get_param_name(), synfigapp::ValueDesc::get_parent_desc(), synfigapp::ValueDesc::get_parent_value_node(), studio::Duck::get_point(), studio::Duck::get_rotations(), studio::Duck::get_scalar(), get_time(), studio::Duck::get_type(), synfigapp::ValueDesc::get_value(), studio::Duck::get_value_desc(), synfigapp::ValueDesc::get_value_type(), synfigapp::ValueDesc::is_valid(), synfigapp::ValueDesc::parent_is_layer(), synfigapp::ValueDesc::parent_is_value_node(), studio::Duck::TYPE_ANGLE, studio::Duck::TYPE_POSITION, studio::Duck::TYPE_SCALE, studio::Duck::TYPE_SCALE_X, studio::Duck::TYPE_SCALE_Y, studio::Duck::TYPE_SKEW, studio::Duck::TYPE_TANGENT, studio::Duck::TYPE_VERTEX, and studio::Duck::TYPE_WIDTH.
Referenced by add_to_ducks().
etl::handle< Duckmatic::Duck > Duckmatic::find_similar_duck | ( | etl::handle< Duck > | duck | ) |
Referenced by add_similar_duck().
etl::handle< Duckmatic::Duck > Duckmatic::add_similar_duck | ( | etl::handle< Duck > | duck | ) |
References add_duck(), and find_similar_duck().
Referenced by add_to_ducks().
void Duckmatic::add_stroke | ( | etl::smart_ptr< std::list< synfig::Point > > | stroke_point_list, |
const synfig::Color & | color = synfig::Color(0,0,0) |
||
) |
Referenced by add_persistent_stroke().
void Duckmatic::add_persistent_stroke | ( | etl::smart_ptr< std::list< synfig::Point > > | stroke_point_list, |
const synfig::Color & | color = synfig::Color(0,0,0) |
||
) |
References add_stroke().
Referenced by load_sketch().
void Duckmatic::clear_persistent_strokes | ( | ) |
void Duckmatic::add_duck | ( | const etl::handle< Duck > & | duck | ) |
References studio::DuckMap::insert().
Referenced by add_similar_duck(), and add_to_ducks().
void Duckmatic::add_bezier | ( | const etl::handle< Bezier > & | bezier | ) |
Referenced by add_to_ducks().
void Duckmatic::erase_duck | ( | const etl::handle< Duck > & | duck | ) |
void Duckmatic::erase_bezier | ( | const etl::handle< Bezier > & | bezier | ) |
etl::handle< Duckmatic::Duck > Duckmatic::last_duck | ( | ) | const |
Returns the last duck added.
Referenced by add_to_ducks().
etl::handle< Duckmatic::Bezier > Duckmatic::last_bezier | ( | ) | const |
Referenced by add_to_ducks().
etl::handle< Duckmatic::Duck > Duckmatic::find_duck | ( | synfig::Point | pos, |
synfig::Real | radius = 0 , |
||
Duck::Type | type = Duck::TYPE_DEFAULT |
||
) |
A radius of "zero" will have an unlimited radius
References get_type_mask(), studio::Duck::TYPE_DEFAULT, studio::Duck::TYPE_POSITION, studio::Duck::TYPE_RADIUS, studio::Duck::TYPE_TANGENT, studio::Duck::TYPE_WIDTH, and studio::Duck::TYPE_WIDTHPOINT_POSITION.
Referenced by studio::DuckDrag_Translate::begin_duck_drag(), and start_duck_drag().
Duckmatic::GuideList::iterator Duckmatic::find_guide_x | ( | synfig::Point | pos, |
float | radius = 0.1 |
||
) |
Referenced by snap_point_to_grid().
Duckmatic::GuideList::iterator Duckmatic::find_guide_y | ( | synfig::Point | pos, |
float | radius = 0.1 |
||
) |
Referenced by snap_point_to_grid().
|
inline |
References find_guide_x().
Referenced by find_guide_x().
|
inline |
References find_guide_y().
Referenced by find_guide_y().
etl::handle< Duckmatic::Bezier > Duckmatic::find_bezier | ( | synfig::Point | pos, |
synfig::Real | radius = 0 , |
||
float * | location = 0 |
||
) |
A radius of "zero" will have an unlimited radius
A radius of "zero" will have an unlimited radius
etl::handle< Duckmatic::Bezier > Duckmatic::find_bezier | ( | synfig::Point | pos, |
synfig::Real | scale, | ||
synfig::Real | radius, | ||
float * | location = 0 |
||
) |
References bezier_list().
void Duckmatic::add_ducks_layers | ( | synfig::Canvas::Handle | canvas, |
std::set< synfig::Layer::Handle > & | selected_layer_set, | ||
etl::handle< CanvasView > | canvas_view, | ||
synfig::TransformStack & | transform_stack | ||
) |
bool Duckmatic::add_to_ducks | ( | const synfigapp::ValueDesc & | value_desc, |
etl::handle< CanvasView > | canvas_view, | ||
const synfig::TransformStack & | transform_stack_, | ||
synfig::ParamDesc * | param_desc = 0 |
||
) |
References add_bezier(), add_duck(), add_similar_duck(), studio::Duckmatic::Bezier::c1, studio::Duckmatic::Bezier::c2, calc_duck_guid(), synfigapp::Action::create(), synfigapp::ValueDesc::get_guid_string(), synfigapp::ValueDesc::get_index(), synfigapp::ValueDesc::get_layer(), synfigapp::ValueDesc::get_parent_value_node(), synfigapp::ValueDesc::get_sub_value(), get_time(), get_type_mask(), synfigapp::ValueDesc::get_value(), synfigapp::ValueDesc::get_value_node(), synfigapp::ValueDesc::get_value_type(), synfigapp::is_editable(), synfigapp::ValueDesc::is_value_node(), last_bezier(), last_duck(), on_duck_changed(), studio::Duckmatic::Bezier::p1, studio::Duckmatic::Bezier::p2, synfigapp::ValueDesc::parent_is_canvas(), synfigapp::ValueDesc::parent_is_layer(), synfigapp::ValueDesc::parent_is_linkable_value_node(), synfigapp::ValueDesc::parent_is_value_node(), REAL_COOKIE, set_duck_value_desc(), TANGENT_BEZIER_SCALE, TANGENT_HANDLE_SCALE, studio::Duck::TYPE_ANGLE, studio::Duck::TYPE_BONE_RECURSIVE, studio::Duck::TYPE_NONE, studio::Duck::TYPE_POSITION, studio::Duck::TYPE_RADIUS, studio::Duck::TYPE_SCALE, studio::Duck::TYPE_SCALE_X, studio::Duck::TYPE_SCALE_Y, studio::Duck::TYPE_SKEW, studio::Duck::TYPE_TANGENT, studio::Duck::TYPE_VERTEX, studio::Duck::TYPE_WIDTH, studio::Duck::TYPE_WIDTHPOINT_POSITION, and zoom.
Referenced by add_ducks_layers().
|
inline |
Set the type mask, which determines what types of ducks are shown.
|
inline |
Get the type mask, which determines what types of ducks are shown.
Referenced by add_to_ducks(), find_duck(), get_selected_ducks(), is_duck_group_selectable(), and studio::WorkArea::PushState::PushState().
void Duckmatic::select_all_ducks | ( | ) |
References is_duck_group_selectable(), select_duck(), and unselect_duck().
void Duckmatic::unselect_all_ducks | ( | ) |
References unselect_duck().
void Duckmatic::clear_ducks | ( | ) |
References show_persistent_strokes.
Referenced by ~Duckmatic().
bool Duckmatic::save_sketch | ( | const synfig::String & | filename | ) | const |
bool Duckmatic::load_sketch | ( | const synfig::String & | filename | ) |
References add_persistent_stroke().
Referenced by studio::WorkArea::WorkArea().
|
inline |
Referenced by studio::WorkArea::save_meta_data().
|
inline |
|
inline |
|
inline |
References DuckDrag_Translate.
Referenced by Duckmatic().
|
inline |
|
inline |
|
inline |
Referenced by Duckmatic().
|
friend |
|
friend |
Referenced by clear_duck_dragger().
|
friend |
|
protected |
Referenced by get_selected_bezier().
|
protected |
Referenced by get_time(), and set_time().
|
protected |
This flag is set if operations should snap to the grid.
Referenced by get_grid_snap(), set_grid_snap(), and toggle_grid_snap().
|
protected |
Referenced by get_guide_snap(), set_guide_snap(), and snap_point_to_grid().
|
protected |
This vector describes the grid size.
Referenced by get_grid_size(), and set_grid_size().
|
protected |
Hold the grid color.
Referenced by get_grid_color(), and set_grid_color().
|
protected |
Hold the guides color.
Referenced by get_guides_color(), and set_guides_color().
|
protected |
Zoom factor.
Referenced by add_to_ducks(), studio::WorkArea::get_zoom(), and snap_point_to_grid().
|
protected |
Previous Zoom factor.
|
protected |
Referenced by clear_ducks(), get_show_persistent_strokes(), and set_show_persistent_strokes().
|
protected |
Referenced by get_axis_lock(), set_axis_lock(), and snap_point_to_grid().