X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_noise%2Fnoise.cpp;h=4257a6cf376c36a16a23930ea17486eb4ea22056;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=309efc97fa69ebaa9fe054d027f25c72d6981f68;hpb=735eb4c55a793352bf90dc0f0fdcb59e3c2b2a09;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_noise/noise.cpp b/synfig-core/trunk/src/modules/mod_noise/noise.cpp index 309efc9..4257a6c 100644 --- a/synfig-core/trunk/src/modules/mod_noise/noise.cpp +++ b/synfig-core/trunk/src/modules/mod_noise/noise.cpp @@ -1,11 +1,12 @@ /* === S Y N F I G ========================================================= */ /*! \file noise.cpp -** \brief blehh +** \brief Implementation of the "Noise Gradient" layer ** ** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -52,8 +53,8 @@ using namespace etl; SYNFIG_LAYER_INIT(Noise); SYNFIG_LAYER_SET_NAME(Noise,"noise"); -SYNFIG_LAYER_SET_LOCAL_NAME(Noise,_("Noise Gradient")); -SYNFIG_LAYER_SET_CATEGORY(Noise,_("Gradients")); +SYNFIG_LAYER_SET_LOCAL_NAME(Noise,N_("Noise Gradient")); +SYNFIG_LAYER_SET_CATEGORY(Noise,N_("Gradients")); SYNFIG_LAYER_SET_VERSION(Noise,"0.0"); SYNFIG_LAYER_SET_CVS_ID(Noise,"$Id$"); @@ -65,7 +66,7 @@ Noise::Noise(): size(1,1), gradient(Color::black(), Color::white()) { - smooth=Random::SMOOTH_COSINE; + smooth=RandomNoise::SMOOTH_COSINE; detail=4; speed=0; do_alpha=false; @@ -96,7 +97,7 @@ Noise::color_func(const Point &point, float pixel_size,Context /*context*/)const int i; Time time; time=speed*curr_time; - Random::SmoothType smooth((!speed && Noise::smooth == Random::SMOOTH_SPLINE) ? Random::SMOOTH_FAST_SPLINE : Noise::smooth); + RandomNoise::SmoothType smooth((!speed && Noise::smooth == RandomNoise::SMOOTH_SPLINE) ? RandomNoise::SMOOTH_FAST_SPLINE : Noise::smooth); float ftime(time); @@ -249,7 +250,7 @@ Noise::get_param_vocab()const .set_local_name(_("Gradient")) ); ret.push_back(ParamDesc("seed") - .set_local_name(_("Random Seed")) + .set_local_name(_("RandomNoise Seed")) ); ret.push_back(ParamDesc("size") .set_local_name(_("Size")) @@ -258,11 +259,11 @@ Noise::get_param_vocab()const .set_local_name(_("Interpolation")) .set_description(_("What type of interpolation to use")) .set_hint("enum") - .add_enum_value(Random::SMOOTH_DEFAULT, "nearest", _("Nearest Neighbor")) - .add_enum_value(Random::SMOOTH_LINEAR, "linear", _("Linear")) - .add_enum_value(Random::SMOOTH_COSINE, "cosine", _("Cosine")) - .add_enum_value(Random::SMOOTH_SPLINE, "spline", _("Spline")) - .add_enum_value(Random::SMOOTH_CUBIC, "cubic", _("Cubic")) + .add_enum_value(RandomNoise::SMOOTH_DEFAULT, "nearest", _("Nearest Neighbor")) + .add_enum_value(RandomNoise::SMOOTH_LINEAR, "linear", _("Linear")) + .add_enum_value(RandomNoise::SMOOTH_COSINE, "cosine", _("Cosine")) + .add_enum_value(RandomNoise::SMOOTH_SPLINE, "spline", _("Spline")) + .add_enum_value(RandomNoise::SMOOTH_CUBIC, "cubic", _("Cubic")) ); ret.push_back(ParamDesc("detail") .set_local_name(_("Detail"))