Inkscape
Vector Graphics Editor
|
#include <scalararray.h>
Public Member Functions | |
ScalarArrayParam (Glib::ustring const &label, Glib::ustring const &tip, Glib::ustring const &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, double default_value=0.0, bool visible=true, size_t n=0) | |
ScalarArrayParam (const ScalarArrayParam &)=delete | |
ScalarArrayParam & | operator= (const ScalarArrayParam &)=delete |
Gtk::Widget * | param_newWidget () override |
void | param_setActive (size_t index) |
Glib::ustring | param_getDefaultSVGValue () const override |
void | param_set_default () override |
void | param_update_default (double default_value) |
void | param_update_default (char const *default_value) override |
void | param_make_integer (bool yes=true) |
void | param_set_range (double min, double max) |
void | param_set_digits (unsigned digits) |
void | param_set_increments (double step, double page) |
void | addSlider (bool add_slider_widget) |
void | on_value_changed (Inkscape::UI::Widget::RegisteredScalar *rsu) |
double | param_get_min () const |
double | param_get_max () const |
void | param_set_undo (bool set_undo) |
ParamType | paramType () const override |
![]() | |
ArrayParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, std::size_t n=0) | |
ArrayParam (const ArrayParam &) | |
ArrayParam & | operator= (const ArrayParam &) |
std::vector< double > const & | data () const |
bool | param_readSVGValue (char const *const strvalue) override |
Glib::ustring | param_getSVGValue () const override |
void | param_setValue (std::vector< double > const &new_vector) |
void | param_set_and_write_new_value (std::vector< double > const &new_vector) |
bool | valid_index (int index) const |
![]() | |
Parameter (Glib::ustring label, Glib::ustring tip, Glib::ustring key, Inkscape::UI::Widget::Registry *wr, Effect *effect) | |
virtual | ~Parameter () |
Parameter (const Parameter &)=delete | |
Parameter & | operator= (const Parameter &)=delete |
virtual void | param_widget_is_visible (bool is_visible) |
virtual void | param_widget_is_enabled (bool is_enabled) |
void | write_to_SVG () |
void | read_from_SVG () |
void | setUpdating (bool updating) |
bool | getUpdating () const |
Glib::ustring const * | param_getTooltip () const |
virtual bool | providesKnotHolderEntities () const |
virtual void | addKnotHolderEntities (KnotHolder *, SPItem *) |
virtual void | addCanvasIndicators (SPLPEItem const *, std::vector< Geom::PathVector > &) |
virtual void | param_editOncanvas (SPItem *, SPDesktop *) |
virtual void | param_setup_nodepath (Inkscape::NodePath::Path *) |
virtual void | param_transform_multiply (Geom::Affine const &, bool set) |
virtual std::vector< SPObject * > | param_get_satellites () |
void | param_higlight (bool highlight) |
void | change_selection (Inkscape::Selection *selection) |
void | update_satellites () |
EffectType | effectType () const |
void | connect_selection_changed () |
Private Attributes | |
size_t | _active_index = 0 |
double | min |
double | max |
bool | integer |
unsigned | digits |
double | inc_step |
double | inc_page |
bool | add_slider |
bool | _set_undo |
double | defvalue |
Friends | |
class | LPETaperStroke |
Additional Inherited Members | |
![]() | |
sigc::scoped_connection | selection_changed_connection |
Glib::ustring | param_key |
Glib::ustring | param_tooltip |
Inkscape::UI::Widget::Registry * | param_wr |
Glib::ustring | param_label |
bool | oncanvas_editable |
bool | widget_is_visible |
bool | widget_is_enabled |
![]() | |
void | writesvg (SVGOStringStream &str, std::vector< double > const &vector) const |
void | writesvgData (SVGOStringStream &str, float const &vector_data) const |
void | writesvgData (SVGOStringStream &str, double const &vector_data) const |
void | writesvgData (SVGOStringStream &str, Glib::ustring const &vector_data) const |
void | writesvgData (SVGOStringStream &str, Geom::Point const &vector_data) const |
void | writesvgData (SVGOStringStream &str, std::shared_ptr< SatelliteReference > const &vector_data) const |
void | writesvgData (SVGOStringStream &str, std::vector< NodeSatellite > const &vector_data) const |
double | readsvg (char const *str) |
double | readsvg (char const *const str) |
float | readsvg (char const *const str) |
Glib::ustring | readsvg (char const *const str) |
Geom::Point | readsvg (char const *const str) |
std::shared_ptr< SatelliteReference > | readsvg (char const *const str) |
std::vector< NodeSatellite > | readsvg (char const *const str) |
![]() | |
void | param_write_to_repr (const char *svgd) |
![]() | |
std::vector< double > | _vector |
std::size_t | _default_size |
![]() | |
bool | _updating = false |
Inkscape::Display::TemporaryItem * | ownerlocator = nullptr |
Effect * | param_effect |
Definition at line 20 of file scalararray.h.
Inkscape::LivePathEffect::ScalarArrayParam::ScalarArrayParam | ( | Glib::ustring const & | label, |
Glib::ustring const & | tip, | ||
Glib::ustring const & | key, | ||
Inkscape::UI::Widget::Registry * | wr, | ||
Effect * | effect, | ||
double | default_value = 0.0 , |
||
bool | visible = true , |
||
size_t | n = 0 |
||
) |
Definition at line 23 of file scalararray.cpp.
References Geom::max(), Geom::min(), visible, and Inkscape::LivePathEffect::Parameter::widget_is_visible.
|
delete |
|
inline |
Definition at line 50 of file scalararray.h.
References add_slider.
void Inkscape::LivePathEffect::ScalarArrayParam::on_value_changed | ( | Inkscape::UI::Widget::RegisteredScalar * | rsu | ) |
Definition at line 76 of file scalararray.cpp.
References _active_index, Inkscape::LivePathEffect::ArrayParam< double >::_vector, Inkscape::UI::Widget::Scalar::getValue(), Inkscape::LivePathEffect::ArrayParam< double >::param_set_and_write_new_value(), and Inkscape::UI::Widget::Scalar::setProgrammatically.
Referenced by param_newWidget().
|
delete |
|
inline |
Definition at line 54 of file scalararray.h.
References max.
|
inline |
Definition at line 53 of file scalararray.h.
References min.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< double >.
Definition at line 90 of file scalararray.cpp.
References defvalue, and Inkscape::SVGOStringStream::str().
void Inkscape::LivePathEffect::ScalarArrayParam::param_make_integer | ( | bool | yes = true | ) |
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< double >.
Definition at line 45 of file scalararray.cpp.
References _active_index, _set_undo, Inkscape::LivePathEffect::ArrayParam< double >::_vector, add_slider, digits, Inkscape::LivePathEffect::Effect::getRepr(), Inkscape::LivePathEffect::Effect::getSPDoc(), inc_page, inc_step, max, min, on_value_changed(), Inkscape::LivePathEffect::Parameter::param_effect, Inkscape::LivePathEffect::Parameter::param_key, Inkscape::LivePathEffect::Parameter::param_label, Inkscape::LivePathEffect::Parameter::param_tooltip, Inkscape::LivePathEffect::Parameter::param_wr, and Inkscape::LivePathEffect::Parameter::widget_is_visible.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< double >.
Definition at line 98 of file scalararray.cpp.
References Inkscape::LivePathEffect::ArrayParam< double >::_vector, and defvalue.
Referenced by Inkscape::LivePathEffect::LPETaperStroke::doBeforeEffect().
void Inkscape::LivePathEffect::ScalarArrayParam::param_set_digits | ( | unsigned | digits | ) |
Definition at line 145 of file scalararray.cpp.
References digits.
Referenced by Inkscape::LivePathEffect::LPETaperStroke::LPETaperStroke().
void Inkscape::LivePathEffect::ScalarArrayParam::param_set_increments | ( | double | step, |
double | page | ||
) |
Definition at line 147 of file scalararray.cpp.
void Inkscape::LivePathEffect::ScalarArrayParam::param_set_range | ( | double | min, |
double | max | ||
) |
Definition at line 115 of file scalararray.cpp.
References max, min, Inkscape::LivePathEffect::Parameter::param_effect, Inkscape::LivePathEffect::Effect::refresh_widgets, and SCALARPARAM_G_MAXDOUBLE.
void Inkscape::LivePathEffect::ScalarArrayParam::param_set_undo | ( | bool | set_undo | ) |
Definition at line 143 of file scalararray.cpp.
References _set_undo.
|
inline |
Definition at line 36 of file scalararray.h.
References _active_index, index, Inkscape::LivePathEffect::Parameter::param_effect, and Inkscape::LivePathEffect::Effect::refresh_widgets.
Referenced by Inkscape::LivePathEffect::LPETaperStroke::doBeforeEffect().
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< double >.
Definition at line 106 of file scalararray.cpp.
References param_update_default(), and sp_svg_number_read_d().
void Inkscape::LivePathEffect::ScalarArrayParam::param_update_default | ( | double | default_value | ) |
Definition at line 104 of file scalararray.cpp.
References defvalue.
Referenced by param_update_default().
|
inlineoverridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< double >.
Definition at line 57 of file scalararray.h.
References Inkscape::LivePathEffect::SCALAR_ARRAY.
|
friend |
Definition at line 60 of file scalararray.h.
|
private |
Definition at line 62 of file scalararray.h.
Referenced by on_value_changed(), param_newWidget(), and param_setActive().
|
private |
Definition at line 70 of file scalararray.h.
Referenced by param_newWidget(), and param_set_undo().
|
private |
Definition at line 69 of file scalararray.h.
Referenced by addSlider(), and param_newWidget().
|
private |
Definition at line 71 of file scalararray.h.
Referenced by param_getDefaultSVGValue(), param_set_default(), and param_update_default().
|
private |
Definition at line 66 of file scalararray.h.
Referenced by param_make_integer(), param_newWidget(), and param_set_digits().
|
private |
Definition at line 68 of file scalararray.h.
Referenced by param_make_integer(), param_newWidget(), and param_set_increments().
|
private |
Definition at line 67 of file scalararray.h.
Referenced by param_make_integer(), param_newWidget(), and param_set_increments().
|
private |
Definition at line 65 of file scalararray.h.
Referenced by param_make_integer().
|
private |
Definition at line 64 of file scalararray.h.
Referenced by param_get_max(), param_newWidget(), and param_set_range().
|
private |
Definition at line 63 of file scalararray.h.
Referenced by param_get_min(), param_newWidget(), and param_set_range().