random.cpp revision ccd5d0ad1950ed63ccdf76081ae0cb056f372c9f
/*
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "live_effects/parameter/random.h"
#include "live_effects/effect.h"
#include "libnr/nr-values.h"
#include <gtkmm.h>
#include "svg/stringstream.h"
#include "verbs.h"
#define noLPERANDOMPARAM_DEBUG
namespace Inkscape {
namespace LivePathEffect {
{
integer = false;
}
{
if (regrandom)
delete regrandom;
}
bool
{
double newval, newstartseed;
if (success == 1) {
if (success == 2) {
} else {
}
return true;
}
return false;
}
gchar *
RandomParam::param_writeSVGValue() const
{
return str;
}
void
{
}
void
{
if (integer)
if (regrandom)
}
void
{
if (regrandom)
}
void
{
if (regrandom) {
}
}
void
{
}
{
// TODO: add a button to set a different startseed
if (!regrandom) {
regrandom->init(param_label, param_tooltip, param_key, *param_wr, param_effect->getRepr(), param_effect->getSPDoc());
if (integer)
}
}
RandomParam::operator gdouble()
{
};
/* RNG stolen from /display/nr-filter-turbulence.cpp */
#define BSize 0x100
long
{
return lSeed;
}
// generates random number between 0 and 1
RandomParam::rand()
{
long result;
return dresult;
}
} /* namespace LivePathEffect */
} /* namespace Inkscape */
/*
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 :