spray-tool.h revision 07ac51a47c8ca7bc7ffa5d38f1ed817171205015
#ifndef __SP_SPRAY_CONTEXT_H__
#define __SP_SPRAY_CONTEXT_H__
/*
* Spray Tool
*
* Authors:
* Pierre-Antoine MARC
* Pierre CACLIN
* Aurel-Aimé MARMION
* Julien LERAY
* Benoît LAVORATA
* Vincent MONTAGNE
* Pierre BARBRY-BLOT
* Jabiertxo ARRAIZA
*
* Copyright (C) 2009 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "ui/tools/tool-base.h"
#define SP_SPRAY_CONTEXT(obj) (dynamic_cast<Inkscape::UI::Tools::SprayTool*>((Inkscape::UI::Tools::ToolBase*)obj))
#define SP_IS_SPRAY_CONTEXT(obj) (dynamic_cast<const Inkscape::UI::Tools::SprayTool*>((const Inkscape::UI::Tools::ToolBase*)obj) != NULL)
}
}
}
#define TC_MIN_PRESSURE 0.0
#define TC_MAX_PRESSURE 1.0
#define TC_DEFAULT_PRESSURE 0.35
enum {
};
SprayTool();
//ToolBase event_context;
//Inkscape::UI::Dialog::Dialog *dialog_option;//Attribut de type SprayOptionClass, localisé dans scr/ui/dialog
/* extended input data */
/* attributes */
bool dragging; /* mouse state: mouse is dragging */
bool usepressurewidth;
bool usepressurepopulation;
bool usepressurescale;
bool usetilt;
bool usetext;
double width;
double ratio;
double tilt;
double rotation_variation;
double population;
double scale_variation;
double scale;
double mean;
double standard_deviation;
bool is_drawing;
bool is_dilating;
bool has_dilated;
bool nooverlap;
bool picker;
bool pickcenter;
bool pickinversevalue;
bool pickfill;
bool pickstroke;
bool picknooverlap;
bool overtransparent;
bool overnotransparent;
double offset;
void update_cursor(bool /*with_shift*/);
};
}
}
}
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :