X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Flayer_motionblur.h;h=43d946bfef007a547e8c356b37911dfbfff5a69a;hb=1967f77108f0b1e1e00b4ed81ad636c50ccb351a;hp=b476f592fd4ba228f3890ea706869368e1f6d36c;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/layer_motionblur.h b/synfig-core/src/synfig/layer_motionblur.h index b476f59..43d946b 100644 --- a/synfig-core/src/synfig/layer_motionblur.h +++ b/synfig-core/src/synfig/layer_motionblur.h @@ -39,14 +39,35 @@ class Layer_MotionBlur : public synfig::Layer_Composite { SYNFIG_LAYER_MODULE_EXT + enum SubsamplingType + { + SUBSAMPLING_CONSTANT=0, //!< weight each subsample equally + SUBSAMPLING_LINEAR=1, //!< fade in subsamples linearly + SUBSAMPLING_HYPERBOLIC=2, //!< fade in subsamples by a hyperbolic curve (default style of 0.62 and previous) + + SUBSAMPLING_END=2 //!< \internal + }; + private: Time aperture; + Real subsamples_factor; + SubsamplingType subsampling_type; + Real subsample_start; + Real subsample_end; mutable Time time_cur; + bool aperture_static; + bool subsamples_factor_static; + bool subsampling_type_static; + bool subsample_start_static; + bool subsample_end_static; + public: Layer_MotionBlur(); virtual bool set_param(const String & param, const synfig::ValueBase &value); virtual ValueBase get_param(const String & param)const; + virtual bool set_param_static(const String ¶m, const bool x); + virtual bool get_param_static(const String ¶m) const; virtual Color get_color(Context context, const Point &pos)const; virtual void set_time(Context context, Time time)const; virtual void set_time(Context context, Time time, const Point &point)const;