Search in sources :

Example 1 with ValueProviderDescriptor

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

the class DrawnEllipseHighlightProceduralEffect method getDescriptorsInternal.

@Override
public List<ValueProviderDescriptor> getDescriptorsInternal() {
    List<ValueProviderDescriptor> result = super.getDescriptorsInternal();
    LineProvider lineProvider = new LineProvider(topLeftProvider, bottomRightProvider);
    ValueProviderDescriptor areaProvider = ValueProviderDescriptor.builder().withKeyframeableEffect(lineProvider).withName("Area").build();
    ValueProviderDescriptor colorProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(colorProvider).withName("color").build();
    ValueProviderDescriptor brushSizeProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(brushSizeProvider).withName("bursh size").build();
    ValueProviderDescriptor endPositionProviderDesctiptor = ValueProviderDescriptor.builder().withKeyframeableEffect(endPositionProvider).withName("animation length").build();
    ValueProviderDescriptor brushProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(brushFileProvider).withName("brush").build();
    result.add(areaProvider);
    result.add(colorProviderDescriptor);
    result.add(brushSizeProviderDescriptor);
    result.add(endPositionProviderDesctiptor);
    result.add(brushProviderDescriptor);
    return result;
}
Also used : LineProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.LineProvider) ValueProviderDescriptor(com.helospark.tactview.core.timeline.effect.interpolation.ValueProviderDescriptor)

Example 2 with ValueProviderDescriptor

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

the class DrawnRectangleHighlightProceduralEffect method getDescriptorsInternal.

@Override
public List<ValueProviderDescriptor> getDescriptorsInternal() {
    List<ValueProviderDescriptor> result = super.getDescriptorsInternal();
    ValueProviderDescriptor areaProvider = ValueProviderDescriptor.builder().withKeyframeableEffect(rectangleProvider).withName("Area").build();
    ValueProviderDescriptor colorProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(colorProvider).withName("color").build();
    ValueProviderDescriptor brushSizeProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(brushSizeProvider).withName("bursh size").build();
    ValueProviderDescriptor endPositionProviderDesctiptor = ValueProviderDescriptor.builder().withKeyframeableEffect(endPositionProvider).withName("animation length").build();
    ValueProviderDescriptor overshootProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(overshootProvider).withName("overshoot").build();
    ValueProviderDescriptor brushProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(brushFileProvider).withName("brush").build();
    result.add(areaProvider);
    result.add(colorProviderDescriptor);
    result.add(brushSizeProviderDescriptor);
    result.add(endPositionProviderDesctiptor);
    result.add(overshootProviderDescriptor);
    result.add(brushProviderDescriptor);
    return result;
}
Also used : ValueProviderDescriptor(com.helospark.tactview.core.timeline.effect.interpolation.ValueProviderDescriptor)

Example 3 with ValueProviderDescriptor

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

the class GridProceduralClip method getDescriptorsInternal.

@Override
public List<ValueProviderDescriptor> getDescriptorsInternal() {
    List<ValueProviderDescriptor> result = super.getDescriptorsInternal();
    ValueProviderDescriptor lineWidthProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(lineWidthProvider).withName("Line width").build();
    ValueProviderDescriptor colorProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(colorProvider).withName("Color").build();
    ValueProviderDescriptor xDistanceProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(xDistanceProvider).withName("X distance").build();
    ValueProviderDescriptor yDistanceProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(yDistanceProvider).withName("Y distance").build();
    ValueProviderDescriptor xOffsetProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(xOffsetProvider).withName("X offset").build();
    ValueProviderDescriptor yOffsetProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(yOffsetProvider).withName("Y offset").build();
    result.add(lineWidthProviderDescriptor);
    result.add(colorProviderDescriptor);
    result.add(xDistanceProviderDescriptor);
    result.add(yDistanceProviderDescriptor);
    result.add(xOffsetProviderDescriptor);
    result.add(yOffsetProviderDescriptor);
    return result;
}
Also used : ValueProviderDescriptor(com.helospark.tactview.core.timeline.effect.interpolation.ValueProviderDescriptor)

Example 4 with ValueProviderDescriptor

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

the class NoiseProceduralClip method getDescriptorsInternal.

@Override
public List<ValueProviderDescriptor> getDescriptorsInternal() {
    List<ValueProviderDescriptor> descriptors = super.getDescriptorsInternal();
    ValueProviderDescriptor fractalTypeDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(fractalKindProvider).withName("type").build();
    ValueProviderDescriptor seedDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(seedProvider).withName("seed").withRenderHints(Map.of(RenderTypeHint.TYPE, SliderValueType.INPUT_FIELD)).build();
    ValueProviderDescriptor xOffsetDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(xOffsetProvider).withName("X offset").build();
    ValueProviderDescriptor yOffsetDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(yOffsetProvider).withName("Y offset").build();
    ValueProviderDescriptor frequencyDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(frequencyProvider).withName("frequency").build();
    ValueProviderDescriptor colorProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(colorProvider).withName("color").build();
    Function<TimelinePosition, Boolean> enabledIfCellular = globalPosition -> fractalKindProvider.getValueAt(globalPosition).getId().equals("cellular");
    ValueProviderDescriptor cellularReturnTypeDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(cellularReturnTypeProvider).withName("cell ReturnType").withEnabledIf(enabledIfCellular).build();
    ValueProviderDescriptor cellularDistanceDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(cellularDistanceFunctionProvider).withName("cell distance").withEnabledIf(enabledIfCellular).build();
    Function<TimelinePosition, Boolean> enabledIfFractal = globalPosition -> fractalKindProvider.getValueAt(globalPosition).getId().contains("Fractal");
    ValueProviderDescriptor octaveDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(octaveProvider).withName("fractal octave").withEnabledIf(enabledIfFractal).build();
    ValueProviderDescriptor octaveCombinerDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(fractalOctaveCombinderProvider).withName("fractal octaveCombiner").withEnabledIf(enabledIfFractal).build();
    ValueProviderDescriptor lacunarityDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(lacunarityProvider).withName("fractal lacunarity").withEnabledIf(enabledIfFractal).build();
    ValueProviderDescriptor gainDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(gainProvider).withName("fractal gain").withEnabledIf(enabledIfFractal).build();
    descriptors.add(fractalTypeDescriptor);
    descriptors.add(seedDescriptor);
    descriptors.add(xOffsetDescriptor);
    descriptors.add(yOffsetDescriptor);
    descriptors.add(colorProviderDescriptor);
    descriptors.add(frequencyDescriptor);
    descriptors.add(cellularReturnTypeDescriptor);
    descriptors.add(cellularDistanceDescriptor);
    descriptors.add(octaveDescriptor);
    descriptors.add(octaveCombinerDescriptor);
    descriptors.add(lacunarityDescriptor);
    descriptors.add(gainDescriptor);
    return descriptors;
}
Also used : Arrays(java.util.Arrays) Random(java.util.Random) CellularReturnType(me.jordanpeck.FastNoise.CellularReturnType) ReadOnlyClipImage(com.helospark.tactview.core.timeline.image.ReadOnlyClipImage) Function(java.util.function.Function) TimelineClip(com.helospark.tactview.core.timeline.TimelineClip) VisualMediaMetadata(com.helospark.tactview.core.decoder.VisualMediaMetadata) RenderTypeHint(com.helospark.tactview.core.timeline.effect.interpolation.hint.RenderTypeHint) ColorProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.ColorProvider) CloneRequestMetadata(com.helospark.tactview.core.clone.CloneRequestMetadata) ValueListProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.ValueListProvider) IntegerProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.IntegerProvider) Map(java.util.Map) JsonNode(com.fasterxml.jackson.databind.JsonNode) LoadMetadata(com.helospark.tactview.core.save.LoadMetadata) IndependentPixelOperation(com.helospark.tactview.core.util.IndependentPixelOperation) FastNoise(me.jordanpeck.FastNoise) ClipImage(com.helospark.tactview.core.timeline.image.ClipImage) StepStringInterpolator(com.helospark.tactview.core.timeline.effect.interpolation.interpolator.StepStringInterpolator) ValueProviderDescriptor(com.helospark.tactview.core.timeline.effect.interpolation.ValueProviderDescriptor) DoubleProvider(com.helospark.tactview.core.timeline.effect.interpolation.provider.DoubleProvider) ReflectionUtil(com.helospark.tactview.core.util.ReflectionUtil) ImageMetadata(com.helospark.tactview.core.decoder.ImageMetadata) TimelinePosition(com.helospark.tactview.core.timeline.TimelinePosition) GetFrameRequest(com.helospark.tactview.core.timeline.GetFrameRequest) MultiKeyframeBasedDoubleInterpolator(com.helospark.tactview.core.timeline.effect.interpolation.interpolator.MultiKeyframeBasedDoubleInterpolator) Collectors(java.util.stream.Collectors) TimelineInterval(com.helospark.tactview.core.timeline.TimelineInterval) List(java.util.List) ValueListElement(com.helospark.tactview.core.timeline.effect.interpolation.provider.ValueListElement) SliderValueType(com.helospark.tactview.core.timeline.effect.interpolation.hint.SliderValueType) CellularDistanceFunction(me.jordanpeck.FastNoise.CellularDistanceFunction) Color(com.helospark.tactview.core.timeline.effect.interpolation.pojo.Color) ProceduralVisualClip(com.helospark.tactview.core.timeline.proceduralclip.ProceduralVisualClip) FractalType(me.jordanpeck.FastNoise.FractalType) ValueProviderDescriptor(com.helospark.tactview.core.timeline.effect.interpolation.ValueProviderDescriptor) TimelinePosition(com.helospark.tactview.core.timeline.TimelinePosition)

Example 5 with ValueProviderDescriptor

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

the class CheckerBoardProceduralClip method getDescriptorsInternal.

@Override
public List<ValueProviderDescriptor> getDescriptorsInternal() {
    List<ValueProviderDescriptor> result = super.getDescriptorsInternal();
    ValueProviderDescriptor xScaleProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(xScaleProvider).withName("X scale").build();
    ValueProviderDescriptor yScaleProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(yScaleProvider).withName("Y scale").build();
    ValueProviderDescriptor xOffsetProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(xOffsetProvider).withName("X offset").build();
    ValueProviderDescriptor yOffsetProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(yOffsetProvider).withName("Y Offset").build();
    ValueProviderDescriptor color1ProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(color1Provider).withName("Color 1").build();
    ValueProviderDescriptor color2ProviderDescriptor = ValueProviderDescriptor.builder().withKeyframeableEffect(color2Provider).withName("Color 2").build();
    result.add(xScaleProviderDescriptor);
    result.add(yScaleProviderDescriptor);
    result.add(xOffsetProviderDescriptor);
    result.add(yOffsetProviderDescriptor);
    result.add(color1ProviderDescriptor);
    result.add(color2ProviderDescriptor);
    return result;
}
Also used : ValueProviderDescriptor(com.helospark.tactview.core.timeline.effect.interpolation.ValueProviderDescriptor)

Aggregations

ValueProviderDescriptor (com.helospark.tactview.core.timeline.effect.interpolation.ValueProviderDescriptor)115 Component (com.helospark.lightdi.annotation.Component)15 UiTimelineManager (com.helospark.tactview.ui.javafx.UiTimelineManager)15 EffectParametersRepository (com.helospark.tactview.core.timeline.effect.EffectParametersRepository)14 KeyframeAddedRequest (com.helospark.tactview.core.timeline.message.KeyframeAddedRequest)14 UiCommandInterpreterService (com.helospark.tactview.ui.javafx.UiCommandInterpreterService)14 AddKeyframeForPropertyCommand (com.helospark.tactview.ui.javafx.commands.impl.AddKeyframeForPropertyCommand)14 List (java.util.List)13 ContextMenuAppender (com.helospark.tactview.ui.javafx.uicomponents.propertyvalue.contextmenu.ContextMenuAppender)11 ArrayList (java.util.ArrayList)10 TimelinePosition (com.helospark.tactview.core.timeline.TimelinePosition)8 HBox (javafx.scene.layout.HBox)8 JsonNode (com.fasterxml.jackson.databind.JsonNode)7 LoadMetadata (com.helospark.tactview.core.save.LoadMetadata)7 DoubleProvider (com.helospark.tactview.core.timeline.effect.interpolation.provider.DoubleProvider)7 ValueListElement (com.helospark.tactview.core.timeline.effect.interpolation.provider.ValueListElement)7 ValueListProvider (com.helospark.tactview.core.timeline.effect.interpolation.provider.ValueListProvider)7 Map (java.util.Map)7 Optional (java.util.Optional)7 Collectors (java.util.stream.Collectors)7