lpe-bspline.cpp revision 1921b929dbf1c1ff579f5eaa93b324a66669d445
3853N/A/*
3853N/A * Released under GNU GPL, read the file 'COPYING' for more information
3853N/A */
3853N/A#include <gtkmm.h>
3853N/A#include "live_effects/lpe-bspline.h"
3853N/A#include "ui/widget/scalar.h"
3853N/A#include "display/curve.h"
3853N/A#include "helper/geom-curves.h"
3853N/A#include "sp-path.h"
3853N/A#include "svg/svg.h"
3853N/A#include "xml/repr.h"
3853N/A#include "preferences.h"
3853N/A// TODO due to internal breakage in glibmm headers, this must be last:
3853N/A#include <glibmm/i18n.h>
3853N/A
3853N/Anamespace Inkscape {
3853N/Anamespace LivePathEffect {
3853N/A
3853N/Aconst double HANDLE_CUBIC_GAP = 0.001;
3853N/Aconst double NO_POWER = 0.0;
3853N/Aconst double DEFAULT_START_POWER = 0.3334;
3853N/Aconst double DEFAULT_END_POWER = 0.6667;
3853N/AGeom::PathVector hp;
3853N/Avoid sp_bspline_drawHandle(Geom::Point p, double helper_size);
5035N/A
3853N/ALPEBSpline::LPEBSpline(LivePathEffectObject *lpeobject)
3853N/A : Effect(lpeobject),
3853N/A steps(_("Steps with CTRL:"), _("Change number of steps with CTRL pressed"), "steps", &wr, this, 2),
3853N/A helper_size(_("Helper size:"), _("Helper size"), "helper_size", &wr, this, 0),
3853N/A ignore_cusp(_("Ignore cusp nodes"), _("Change ignoring cusp nodes"), "ignore_cusp", &wr, this, true),
4803N/A only_selected(_("Change only selected nodes"), _("Change only selected nodes"), "only_selected", &wr, this, false),
3853N/A weight(_("Change weight:"), _("Change weight of the effect"), "weight", &wr, this, DEFAULT_START_POWER)
3853N/A{
3853N/A registerParameter(&weight);
4141N/A registerParameter(&steps);
3853N/A registerParameter(&helper_size);
3853N/A registerParameter(&ignore_cusp);
3853N/A registerParameter(&only_selected);
3853N/A
3853N/A weight.param_set_range(NO_POWER, 1);
4141N/A weight.param_set_increments(0.1, 0.1);
3898N/A weight.param_set_digits(4);
3898N/A
4920N/A steps.param_set_range(1, 10);
4518N/A steps.param_set_increments(1, 1);
3853N/A steps.param_set_digits(0);
3853N/A
3853N/A helper_size.param_set_range(0.0, 999.0);
3853N/A helper_size.param_set_increments(1, 1);
4803N/A helper_size.param_set_digits(2);
3853N/A}
3853N/A
3853N/ALPEBSpline::~LPEBSpline() {}
3853N/A
3853N/Avoid LPEBSpline::doBeforeEffect (SPLPEItem const* /*lpeitem*/)
3853N/A{
3853N/A if(!hp.empty()) {
3853N/A hp.clear();
3853N/A }
3853N/A}
3853N/A
3853N/A
3853N/Avoid LPEBSpline::doOnApply(SPLPEItem const* lpeitem)
3853N/A{
3853N/A if (!SP_IS_SHAPE(lpeitem)) {
4803N/A g_warning("LPE BSpline can only be applied to shapes (not groups).");
4803N/A SPLPEItem * item = const_cast<SPLPEItem*>(lpeitem);
3853N/A item->removeCurrentPathEffect(false);
3853N/A }
3853N/A}
3853N/A
3853N/Avoid
3853N/ALPEBSpline::addCanvasIndicators(SPLPEItem const */*lpeitem*/, std::vector<Geom::PathVector> &hp_vec)
3853N/A{
3853N/A hp_vec.push_back(hp);
4141N/A}
4141N/A
4141N/AGtk::Widget *LPEBSpline::newWidget()
4141N/A{
4141N/A // use manage here, because after deletion of Effect object, others might
4141N/A // still be pointing to this widget.
4141N/A Gtk::VBox *vbox = Gtk::manage(new Gtk::VBox(Effect::newWidget()));
4141N/A
4141N/A vbox->set_border_width(5);
4141N/A std::vector<Parameter *>::iterator it = param_vector.begin();
4518N/A while (it != param_vector.end()) {
4518N/A if ((*it)->widget_is_visible) {
4141N/A Parameter *param = *it;
4141N/A Gtk::Widget *widg = dynamic_cast<Gtk::Widget *>(param->param_newWidget());
3853N/A if (param->param_key == "weight") {
3853N/A Gtk::HBox * buttons = Gtk::manage(new Gtk::HBox(true,0));
4920N/A Gtk::Button *default_weight =
3853N/A Gtk::manage(new Gtk::Button(Glib::ustring(_("Default weight"))));
4500N/A default_weight->signal_clicked()
4500N/A .connect(sigc::mem_fun(*this, &LPEBSpline::toDefaultWeight));
4500N/A buttons->pack_start(*default_weight, true, true, 2);
4500N/A Gtk::Button *make_cusp =
3853N/A Gtk::manage(new Gtk::Button(Glib::ustring(_("Make cusp"))));
3853N/A make_cusp->signal_clicked()
3853N/A .connect(sigc::mem_fun(*this, &LPEBSpline::toMakeCusp));
3853N/A buttons->pack_start(*make_cusp, true, true, 2);
3853N/A vbox->pack_start(*buttons, true, true, 2);
3853N/A }
3853N/A if (param->param_key == "weight" || param->param_key == "steps") {
3853N/A Inkscape::UI::Widget::Scalar *widg_registered =
3853N/A Gtk::manage(dynamic_cast<Inkscape::UI::Widget::Scalar *>(widg));
3853N/A widg_registered->signal_value_changed()
3853N/A .connect(sigc::mem_fun(*this, &LPEBSpline::toWeight));
3853N/A widg = dynamic_cast<Gtk::Widget *>(widg_registered);
3853N/A if (widg) {
3853N/A Gtk::HBox * hbox_weight_steps = dynamic_cast<Gtk::HBox *>(widg);
3853N/A std::vector< Gtk::Widget* > childList = hbox_weight_steps->get_children();
3853N/A Gtk::Entry* entry_widget = dynamic_cast<Gtk::Entry *>(childList[1]);
3853N/A entry_widget->set_width_chars(6);
3853N/A }
3853N/A }
3853N/A if (param->param_key == "only_selected") {
3853N/A Gtk::CheckButton *widg_registered =
3853N/A Gtk::manage(dynamic_cast<Gtk::CheckButton *>(widg));
3853N/A widg = dynamic_cast<Gtk::Widget *>(widg_registered);
4500N/A }
4500N/A if (param->param_key == "ignore_cusp") {
4500N/A Gtk::CheckButton *widg_registered =
4500N/A Gtk::manage(dynamic_cast<Gtk::CheckButton *>(widg));
3853N/A widg = dynamic_cast<Gtk::Widget *>(widg_registered);
3853N/A }
3853N/A Glib::ustring *tip = param->param_getTooltip();
3853N/A if (widg) {
3853N/A vbox->pack_start(*widg, true, true, 2);
3853N/A if (tip) {
3853N/A widg->set_tooltip_text(*tip);
3853N/A } else {
3853N/A widg->set_tooltip_text("");
3853N/A widg->set_has_tooltip(false);
3853N/A }
3853N/A }
3853N/A }
3853N/A
3853N/A ++it;
3853N/A }
3853N/A return dynamic_cast<Gtk::Widget *>(vbox);
3853N/A}
3858N/A
3853N/Avoid LPEBSpline::toDefaultWeight()
3853N/A{
3853N/A changeWeight(DEFAULT_START_POWER);
3853N/A}
3853N/A
3853N/Avoid LPEBSpline::toMakeCusp()
3853N/A{
3853N/A changeWeight(NO_POWER);
3858N/A}
3853N/A
3853N/Avoid LPEBSpline::toWeight()
3853N/A{
3853N/A changeWeight(weight);
3853N/A}
3853N/A
3853N/Avoid LPEBSpline::changeWeight(double weight_ammount)
3853N/A{
3853N/A SPPath *path = dynamic_cast<SPPath *>(sp_lpe_item);
3853N/A if(path) {
3853N/A SPCurve *curve = path->get_curve_for_edit();
3853N/A doBSplineFromWidget(curve, weight_ammount);
3853N/A gchar *str = sp_svg_write_path(curve->get_pathvector());
3853N/A path->getRepr()->setAttribute("inkscape:original-d", str);
3853N/A }
3853N/A}
3853N/A
3853N/Avoid LPEBSpline::doEffect(SPCurve *curve)
3853N/A{
3853N/A sp_bspline_do_effect(curve, helper_size);
3853N/A}
3853N/A
3853N/Avoid sp_bspline_do_effect(SPCurve *curve, double helper_size)
4060N/A{
4060N/A if (curve->get_segment_count() < 1) {
4060N/A return;
4060N/A }
4060N/A Geom::PathVector const original_pathv = curve->get_pathvector();
4803N/A curve->reset();
4060N/A Inkscape::Preferences *prefs = Inkscape::Preferences::get();
4060N/A for (Geom::PathVector::const_iterator path_it = original_pathv.begin();
4060N/A path_it != original_pathv.end(); ++path_it) {
4060N/A if (path_it->empty()) {
4060N/A continue;
4060N/A }
4060N/A if (!prefs->getBool("/tools/nodes/show_outline", true)){
4060N/A hp.push_back(*path_it);
4060N/A }
4060N/A Geom::Path::const_iterator curve_it1 = path_it->begin();
4803N/A Geom::Path::const_iterator curve_it2 = ++(path_it->begin());
4060N/A Geom::Path::const_iterator curve_endit = path_it->end_default();
4060N/A SPCurve *curve_n = new SPCurve();
4060N/A Geom::Point previousNode(0, 0);
4060N/A Geom::Point node(0, 0);
4060N/A Geom::Point point_at1(0, 0);
3853N/A Geom::Point point_at2(0, 0);
3853N/A Geom::Point next_point_at1(0, 0);
3853N/A Geom::D2<Geom::SBasis> sbasis_in;
4803N/A Geom::D2<Geom::SBasis> sbasis_out;
3853N/A Geom::D2<Geom::SBasis> sbasis_helper;
3853N/A Geom::CubicBezier const *cubic = NULL;
3853N/A curve_n->moveto(curve_it1->initialPoint());
3853N/A while (curve_it1 != curve_endit) {
3853N/A SPCurve *in = new SPCurve();
3853N/A in->moveto(curve_it1->initialPoint());
3853N/A in->lineto(curve_it1->finalPoint());
3853N/A cubic = dynamic_cast<Geom::CubicBezier const *>(&*curve_it1);
4803N/A if (cubic) {
3853N/A sbasis_in = in->first_segment()->toSBasis();
3853N/A if(are_near((*cubic)[1],(*cubic)[0]) && !are_near((*cubic)[2],(*cubic)[3])) {
3853N/A point_at1 = sbasis_in.valueAt(DEFAULT_START_POWER);
3853N/A } else {
3853N/A point_at1 = sbasis_in.valueAt(Geom::nearest_time((*cubic)[1], *in->first_segment()));
4803N/A }
4803N/A if(are_near((*cubic)[2],(*cubic)[3]) && !are_near((*cubic)[1],(*cubic)[0])) {
4803N/A point_at2 = sbasis_in.valueAt(DEFAULT_END_POWER);
4803N/A } else {
4803N/A point_at2 = sbasis_in.valueAt(Geom::nearest_time((*cubic)[2], *in->first_segment()));
4803N/A }
4803N/A } else {
4803N/A point_at1 = in->first_segment()->initialPoint();
4803N/A point_at2 = in->first_segment()->finalPoint();
4803N/A }
4803N/A in->reset();
4803N/A delete in;
4803N/A if ( curve_it2 != curve_endit ) {
4803N/A SPCurve *out = new SPCurve();
4803N/A out->moveto(curve_it2->initialPoint());
4803N/A out->lineto(curve_it2->finalPoint());
4803N/A cubic = dynamic_cast<Geom::CubicBezier const *>(&*curve_it2);
4803N/A if (cubic) {
4803N/A sbasis_out = out->first_segment()->toSBasis();
4803N/A if(are_near((*cubic)[1],(*cubic)[0]) && !are_near((*cubic)[2],(*cubic)[3])) {
4803N/A next_point_at1 = sbasis_in.valueAt(DEFAULT_START_POWER);
4803N/A } else {
4803N/A next_point_at1 = sbasis_out.valueAt(Geom::nearest_time((*cubic)[1], *out->first_segment()));
4803N/A }
4803N/A } else {
4803N/A next_point_at1 = out->first_segment()->initialPoint();
4803N/A }
4803N/A out->reset();
4803N/A delete out;
4803N/A }
4803N/A if (path_it->closed() && curve_it2 == curve_endit) {
4803N/A SPCurve *start = new SPCurve();
4803N/A start->moveto(path_it->begin()->initialPoint());
4803N/A start->lineto(path_it->begin()->finalPoint());
4803N/A Geom::D2<Geom::SBasis> sbasis_start = start->first_segment()->toSBasis();
4803N/A SPCurve *line_helper = new SPCurve();
4803N/A cubic = dynamic_cast<Geom::CubicBezier const *>(&*path_it->begin());
3853N/A if (cubic) {
3853N/A line_helper->moveto(sbasis_start.valueAt(
3853N/A Geom::nearest_time((*cubic)[1], *start->first_segment())));
3853N/A } else {
3853N/A line_helper->moveto(start->first_segment()->initialPoint());
3853N/A }
3853N/A start->reset();
3853N/A delete start;
3853N/A
3853N/A SPCurve *end = new SPCurve();
3853N/A end->moveto(curve_it1->initialPoint());
3853N/A end->lineto(curve_it1->finalPoint());
3853N/A Geom::D2<Geom::SBasis> sbasis_end = end->first_segment()->toSBasis();
3853N/A cubic = dynamic_cast<Geom::CubicBezier const *>(&*curve_it1);
3853N/A if (cubic) {
3853N/A line_helper->lineto(sbasis_end.valueAt(
3853N/A Geom::nearest_time((*cubic)[2], *end->first_segment())));
3853N/A } else {
3853N/A line_helper->lineto(end->first_segment()->finalPoint());
3853N/A }
3853N/A end->reset();
3853N/A delete end;
3853N/A sbasis_helper = line_helper->first_segment()->toSBasis();
3853N/A line_helper->reset();
3853N/A delete line_helper;
3853N/A node = sbasis_helper.valueAt(0.5);
3853N/A curve_n->curveto(point_at1, point_at2, node);
3853N/A curve_n->move_endpoints(node, node);
3853N/A } else if ( curve_it2 == curve_endit) {
3853N/A curve_n->curveto(point_at1, point_at2, curve_it1->finalPoint());
3853N/A curve_n->move_endpoints(path_it->begin()->initialPoint(), curve_it1->finalPoint());
3853N/A } else {
3853N/A SPCurve *line_helper = new SPCurve();
3853N/A line_helper->moveto(point_at2);
3853N/A line_helper->lineto(next_point_at1);
3853N/A sbasis_helper = line_helper->first_segment()->toSBasis();
3853N/A line_helper->reset();
3853N/A delete line_helper;
3853N/A previousNode = node;
3853N/A node = sbasis_helper.valueAt(0.5);
3853N/A Geom::CubicBezier const *cubic2 = dynamic_cast<Geom::CubicBezier const *>(&*curve_it1);
3853N/A if((cubic && are_near((*cubic)[0],(*cubic)[1])) || (cubic2 && are_near((*cubic2)[2],(*cubic2)[3]))) {
3853N/A node = curve_it1->finalPoint();
3853N/A }
3853N/A curve_n->curveto(point_at1, point_at2, node);
3853N/A }
3853N/A if(!are_near(node,curve_it1->finalPoint()) && helper_size > 0.0) {
3853N/A sp_bspline_drawHandle(node, helper_size);
3853N/A }
3853N/A ++curve_it1;
3853N/A ++curve_it2;
3853N/A }
3853N/A if (path_it->closed()) {
3853N/A curve_n->closepath_current();
3853N/A }
3853N/A curve->append(curve_n, false);
3853N/A curve_n->reset();
3853N/A delete curve_n;
3853N/A }
3853N/A if(helper_size > 0.0) {
3853N/A Geom::PathVector const pathv = curve->get_pathvector();
3853N/A hp.push_back(pathv[0]);
3853N/A }
3853N/A}
3853N/A
3853N/A
3853N/Avoid sp_bspline_drawHandle(Geom::Point p, double helper_size)
3853N/A{
3853N/A char const * svgd = "M 1,0.5 A 0.5,0.5 0 0 1 0.5,1 0.5,0.5 0 0 1 0,0.5 0.5,0.5 0 0 1 0.5,0 0.5,0.5 0 0 1 1,0.5 Z";
3853N/A Geom::PathVector pathv = sp_svg_read_pathv(svgd);
3853N/A Geom::Affine aff = Geom::Affine();
3853N/A aff *= Geom::Scale(helper_size);
4518N/A pathv *= aff;
4518N/A pathv *= Geom::Translate(p - Geom::Point(0.5*helper_size, 0.5*helper_size));
4518N/A hp.push_back(pathv[0]);
4518N/A}
4518N/A
4518N/Avoid LPEBSpline::doBSplineFromWidget(SPCurve *curve, double weight_ammount)
4518N/A{
4518N/A using Geom::X;
4518N/A using Geom::Y;
4518N/A
4518N/A if (curve->get_segment_count() < 1)
4518N/A return;
4518N/A // Make copy of old path as it is changed during processing
4518N/A Geom::PathVector const original_pathv = curve->get_pathvector();
4518N/A curve->reset();
4518N/A
4518N/A for (Geom::PathVector::const_iterator path_it = original_pathv.begin();
4518N/A path_it != original_pathv.end(); ++path_it) {
3853N/A
3853N/A if (path_it->empty()) {
3853N/A continue;
3853N/A }
3853N/A Geom::Path::const_iterator curve_it1 = path_it->begin();
3853N/A Geom::Path::const_iterator curve_it2 = ++(path_it->begin());
3853N/A Geom::Path::const_iterator curve_endit = path_it->end_default();
3853N/A
3853N/A SPCurve *curve_n = new SPCurve();
3853N/A Geom::Point point_at0(0, 0);
3853N/A Geom::Point point_at1(0, 0);
3853N/A Geom::Point point_at2(0, 0);
3853N/A Geom::Point point_at3(0, 0);
3853N/A Geom::D2<Geom::SBasis> sbasis_in;
4500N/A Geom::D2<Geom::SBasis> sbasis_out;
4500N/A Geom::CubicBezier const *cubic = NULL;
4500N/A curve_n->moveto(curve_it1->initialPoint());
4500N/A while (curve_it1 != curve_endit) {
4500N/A SPCurve *in = new SPCurve();
3853N/A in->moveto(curve_it1->initialPoint());
3853N/A in->lineto(curve_it1->finalPoint());
3853N/A cubic = dynamic_cast<Geom::CubicBezier const *>(&*curve_it1);
3853N/A point_at0 = in->first_segment()->initialPoint();
3853N/A point_at3 = in->first_segment()->finalPoint();
3853N/A sbasis_in = in->first_segment()->toSBasis();
3853N/A if (!only_selected) {
3853N/A if (cubic) {
3853N/A if (!ignore_cusp || !Geom::are_near((*cubic)[1], point_at0)) {
3853N/A point_at1 = sbasis_in.valueAt(weight_ammount);
4500N/A if (weight_ammount != NO_POWER) {
4500N/A point_at1 =
4500N/A Geom::Point(point_at1[X] + HANDLE_CUBIC_GAP, point_at1[Y] + HANDLE_CUBIC_GAP);
4500N/A }
4500N/A } else {
4500N/A point_at1 = in->first_segment()->initialPoint();
4500N/A }
4500N/A if (!ignore_cusp || !Geom::are_near((*cubic)[2], point_at3)) {
3853N/A point_at2 = sbasis_in.valueAt(1 - weight_ammount);
3853N/A if (weight_ammount != NO_POWER) {
3853N/A point_at2 =
3853N/A Geom::Point(point_at2[X] + HANDLE_CUBIC_GAP, point_at2[Y] + HANDLE_CUBIC_GAP);
4500N/A }
4500N/A } else {
4500N/A point_at2 = in->first_segment()->finalPoint();
4500N/A }
4500N/A } else {
4500N/A if (!ignore_cusp && weight_ammount != NO_POWER) {
4500N/A point_at1 = sbasis_in.valueAt(weight_ammount);
4500N/A if (weight_ammount != NO_POWER) {
4060N/A point_at1 =
4060N/A Geom::Point(point_at1[X] + HANDLE_CUBIC_GAP, point_at1[Y] + HANDLE_CUBIC_GAP);
4060N/A }
4060N/A point_at2 = sbasis_in.valueAt(1 - weight_ammount);
3853N/A if (weight_ammount != NO_POWER) {
3853N/A point_at2 =
3853N/A Geom::Point(point_at2[X] + HANDLE_CUBIC_GAP, point_at2[Y] + HANDLE_CUBIC_GAP);
3853N/A }
3853N/A } else {
3853N/A point_at1 = in->first_segment()->initialPoint();
3853N/A point_at2 = in->first_segment()->finalPoint();
3853N/A }
3853N/A }
3853N/A } else {
3853N/A if (cubic) {
3853N/A if (!ignore_cusp || !Geom::are_near((*cubic)[1], point_at0)) {
4500N/A if (isNodePointSelected(point_at0)) {
4500N/A point_at1 = sbasis_in.valueAt(weight_ammount);
4500N/A if (weight_ammount != NO_POWER) {
4500N/A point_at1 =
4500N/A Geom::Point(point_at1[X] + HANDLE_CUBIC_GAP, point_at1[Y] + HANDLE_CUBIC_GAP);
4500N/A }
4500N/A } else {
4500N/A point_at1 = (*cubic)[1];
3853N/A }
3853N/A } else {
3853N/A point_at1 = in->first_segment()->initialPoint();
3853N/A }
3853N/A if (!ignore_cusp || !Geom::are_near((*cubic)[2], point_at3)) {
3853N/A if (isNodePointSelected(point_at3)) {
3853N/A point_at2 = sbasis_in.valueAt(1 - weight_ammount);
3853N/A if (weight_ammount != NO_POWER) {
3853N/A point_at2 =
3853N/A Geom::Point(point_at2[X] + HANDLE_CUBIC_GAP, point_at2[Y] + HANDLE_CUBIC_GAP);
3853N/A }
3853N/A } else {
3853N/A point_at2 = (*cubic)[2];
3853N/A }
3853N/A } else {
3853N/A point_at2 = in->first_segment()->finalPoint();
3853N/A }
3853N/A } else {
3853N/A if (!ignore_cusp && weight_ammount != NO_POWER) {
3853N/A if (isNodePointSelected(point_at0)) {
3853N/A point_at1 = sbasis_in.valueAt(weight_ammount);
3853N/A point_at1 =
3853N/A Geom::Point(point_at1[X] + HANDLE_CUBIC_GAP, point_at1[Y] + HANDLE_CUBIC_GAP);
3853N/A } else {
3853N/A point_at1 = in->first_segment()->initialPoint();
3853N/A }
3853N/A if (isNodePointSelected(point_at3)) {
3853N/A point_at2 = sbasis_in.valueAt(weight_ammount);
3853N/A point_at2 =
3853N/A Geom::Point(point_at2[X] + HANDLE_CUBIC_GAP, point_at2[Y] + HANDLE_CUBIC_GAP);
3853N/A } else {
3853N/A point_at2 = in->first_segment()->finalPoint();
3853N/A }
3853N/A } else {
3853N/A point_at1 = in->first_segment()->initialPoint();
3853N/A point_at2 = in->first_segment()->finalPoint();
3853N/A }
3853N/A }
3853N/A }
3853N/A in->reset();
3853N/A delete in;
3853N/A curve_n->curveto(point_at1, point_at2, point_at3);
3853N/A ++curve_it1;
3898N/A ++curve_it2;
3898N/A }
3898N/A if (path_it->closed()) {
3898N/A curve_n->move_endpoints(path_it->begin()->initialPoint(),
3898N/A path_it->begin()->initialPoint());
3898N/A } else {
4518N/A curve_n->move_endpoints(path_it->begin()->initialPoint(), point_at3);
4518N/A }
4518N/A if (path_it->closed()) {
4518N/A curve_n->closepath_current();
4518N/A }
3853N/A curve->append(curve_n, false);
3853N/A curve_n->reset();
3853N/A delete curve_n;
3853N/A }
3853N/A}
3853N/A
3853N/A}; //namespace LivePathEffect
3853N/A}; /* namespace Inkscape */
3853N/A
3853N/A/*
3853N/A Local Variables:
3853N/A mode:c++
3853N/A c-file-style:"stroustrup"
3853N/A c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
3853N/A indent-tabs-mode:nil
3853N/A fill-column:99
3853N/A End:
3853N/A*/
3853N/A// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
3853N/A