Search in sources :

Example 1 with PointProvider

use of com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider in project tactview by helospark.

the class DrawnEllipseHighlightProceduralEffect method initializeValueProvider.

@Override
protected void initializeValueProvider() {
    super.initializeValueProvider();
    topLeftProvider = new PointProvider(doubleProviderWithDefaultValue(0.3), doubleProviderWithDefaultValue(0.4));
    bottomRightProvider = new PointProvider(doubleProviderWithDefaultValue(0.7), doubleProviderWithDefaultValue(0.6));
    colorProvider = ColorProvider.fromDefaultValue(0, 0, 0);
    brushSizeProvider = new IntegerProvider(1, 200, new MultiKeyframeBasedDoubleInterpolator(70.0));
    endPositionProvider = new DoubleProvider(new MultiKeyframeBasedDoubleInterpolator(2.0));
    brushFileProvider = new FileProvider("*.gbr", new StepStringInterpolator());
}
Also used : DoubleProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.DoubleProvider) PointProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider) IntegerProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.IntegerProvider) FileProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.FileProvider) MultiKeyframeBasedDoubleInterpolator(com.helospark.tactview.core.timeline.effect.interpolation.interpolator.MultiKeyframeBasedDoubleInterpolator) StepStringInterpolator(com.helospark.tactview.core.timeline.effect.interpolation.interpolator.StepStringInterpolator)

Example 2 with PointProvider

use of com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider in project tactview by helospark.

the class ParticleSystemProceduralClip method initializeValueProvider.

@Override
protected void initializeValueProvider() {
    super.initializeValueProvider();
    startColorProvider = ColorProvider.fromDefaultValue(1.0, 0.0, 0.0);
    endColorProvider = ColorProvider.fromDefaultValue(0.0, 0.0, 0.0);
    fuzzyProvider = new DoubleProvider(0.0, 1.0, new MultiKeyframeBasedDoubleInterpolator(0.4));
    startDirectionProvider = new PointProvider(new DoubleProvider(new MultiKeyframeBasedDoubleInterpolator(0.0)), new DoubleProvider(new MultiKeyframeBasedDoubleInterpolator(0.0)));
    startDirectionXRandomSpeedProvider = new DoubleProvider(0, 2, new MultiKeyframeBasedDoubleInterpolator(0.01));
    startDirectionYRandomSpeedProvider = new DoubleProvider(0, 2, new MultiKeyframeBasedDoubleInterpolator(0.01));
    numberOfParticlesCreatedInStep = new DoubleProvider(0.0, 100.0, new MultiKeyframeBasedDoubleInterpolator(6.0));
    gravityProvider = new DoubleProvider(-2.0, 2.0, new MultiKeyframeBasedDoubleInterpolator(0.001));
    emitterCenterProvider = PointProvider.ofNormalizedImagePosition(0.5, 0.5);
    ageRangeProvider = DoubleRangeProvider.createDefaultDoubleRangeProvider(0.0, 30.0, 0.5, 3.0);
    sizeProvider = new IntegerProvider(0, 200, new MultiKeyframeBasedDoubleInterpolator(60.0));
    emitterRandomizationProvider = new DoubleProvider(0.0, 1.0, new MultiKeyframeBasedDoubleInterpolator(0.01));
}
Also used : DoubleProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.DoubleProvider) PointProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider) IntegerProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.IntegerProvider) MultiKeyframeBasedDoubleInterpolator(com.helospark.tactview.core.timeline.effect.interpolation.interpolator.MultiKeyframeBasedDoubleInterpolator)

Example 3 with PointProvider

use of com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider in project tactview by helospark.

the class LinearGradientProceduralClip method initializeValueProvider.

@Override
protected void initializeValueProvider() {
    super.initializeValueProvider();
    startColorProvider = createColorProvider(0.0, 0.0, 0.0);
    endColorProvider = createColorProvider(1.0, 1.0, 1.0);
    PointProvider topLeftPointProvider = new PointProvider(doubleProviderWithDefaultValue(0.0), doubleProviderWithDefaultValue(0.0));
    PointProvider bottomRightPointProvider = new PointProvider(doubleProviderWithDefaultValue(1.0), doubleProviderWithDefaultValue(0.0));
    lineProvider = new LineProvider(topLeftPointProvider, bottomRightPointProvider);
}
Also used : LineProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.LineProvider) PointProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider)

Example 4 with PointProvider

use of com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider in project tactview by helospark.

the class RadialGradientProceduralEffect method initializeValueProvider.

@Override
protected void initializeValueProvider() {
    super.initializeValueProvider();
    startColorProvider = createColorProvider(0.0, 0.0, 0.0);
    endColorProvider = createColorProvider(1.0, 1.0, 1.0);
    innerSaturationDiameterProvider = new DoubleProvider(new MultiKeyframeBasedDoubleInterpolator(0.0));
    PointProvider topLeftPointProvider = new PointProvider(doubleProviderWithDefaultValue(0.3), doubleProviderWithDefaultValue(0.3));
    PointProvider bottomRightPointProvider = new PointProvider(doubleProviderWithDefaultValue(0.6), doubleProviderWithDefaultValue(0.6));
    lineProvider = new LineProvider(topLeftPointProvider, bottomRightPointProvider);
}
Also used : DoubleProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.DoubleProvider) LineProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.LineProvider) PointProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider) MultiKeyframeBasedDoubleInterpolator(com.helospark.tactview.core.timeline.effect.interpolation.interpolator.MultiKeyframeBasedDoubleInterpolator)

Example 5 with PointProvider

use of com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider in project tactview by helospark.

the class OrthogonalTransformationEffect method initializeValueProviderInternal.

@Override
protected void initializeValueProviderInternal() {
    translateScaleProvider = new LineProvider(new PointProvider(createDoubleProvider(0.0), createDoubleProvider(0.0)), new PointProvider(createDoubleProvider(0.5), createDoubleProvider(0.5)));
    rotationCenterProvider = new PointProvider(createDoubleProvider(0.5), createDoubleProvider(0.5));
    scaleCenterProvider = new PointProvider(createDoubleProvider(0.5), createDoubleProvider(0.5));
    rotateProvider = new DoubleProvider(-10000, 10000, new MultiKeyframeBasedDoubleInterpolator(0.0));
    fitToRectangleScaleAndTranslate = new BooleanProvider(new MultiKeyframeBasedDoubleInterpolator(0.0));
    translatePointProvider = PointProvider.ofNormalizedImagePosition(0.0, 0.0);
    scaleXProvider = new DoubleProvider(-3.0, 3.0, new MultiKeyframeBasedDoubleInterpolator(1.0));
    scaleYProvider = new DoubleProvider(-3.0, 3.0, new MultiKeyframeBasedDoubleInterpolator(1.0));
}
Also used : LineProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.LineProvider) DoubleProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.DoubleProvider) PointProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider) BooleanProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.BooleanProvider) MultiKeyframeBasedDoubleInterpolator(com.helospark.tactview.core.timeline.effect.interpolation.interpolator.MultiKeyframeBasedDoubleInterpolator)

Aggregations

PointProvider (com.helospark.tactview.core.timeline.effect.interpolation.provider.PointProvider)13 MultiKeyframeBasedDoubleInterpolator (com.helospark.tactview.core.timeline.effect.interpolation.interpolator.MultiKeyframeBasedDoubleInterpolator)9 DoubleProvider (com.helospark.tactview.core.timeline.effect.interpolation.provider.DoubleProvider)7 StepStringInterpolator (com.helospark.tactview.core.timeline.effect.interpolation.interpolator.StepStringInterpolator)5 IntegerProvider (com.helospark.tactview.core.timeline.effect.interpolation.provider.IntegerProvider)5 LineProvider (com.helospark.tactview.core.timeline.effect.interpolation.provider.LineProvider)4 BooleanProvider (com.helospark.tactview.core.timeline.effect.interpolation.provider.BooleanProvider)3 FileProvider (com.helospark.tactview.core.timeline.effect.interpolation.provider.FileProvider)2 RegularRectangle (com.helospark.tactview.core.timeline.TimelineRenderResult.RegularRectangle)1 ValueProviderDescriptor (com.helospark.tactview.core.timeline.effect.interpolation.ValueProviderDescriptor)1 BezierDoubleInterpolator (com.helospark.tactview.core.timeline.effect.interpolation.interpolator.bezier.BezierDoubleInterpolator)1 StepInterpolator (com.helospark.tactview.core.timeline.effect.interpolation.interpolator.factory.function.impl.StepInterpolator)1 ConstantInterpolator (com.helospark.tactview.core.timeline.effect.interpolation.interpolator.factory.functional.doubleinterpolator.impl.ConstantInterpolator)1 Point (com.helospark.tactview.core.timeline.effect.interpolation.pojo.Point)1 CurveProvider (com.helospark.tactview.core.timeline.effect.interpolation.provider.CurveProvider)1 ScaleEffect (com.helospark.tactview.core.timeline.effect.scale.ScaleEffect)1 ArrayList (java.util.ArrayList)1