Search in sources :

Example 31 with GraphBoxImpl

use of com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl in project gdx-graph by MarcinSc.

the class IndexedBoxProducer method createPipelineGraphBox.

@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
    GraphBoxImpl result = createGraphBox(id);
    addConfigurationInputsAndOutputs(result);
    IndexBoxPart indexPart = new IndexBoxPart("Index", "index");
    indexPart.initialize(data);
    result.addGraphBoxPart(indexPart);
    return result;
}
Also used : GraphBoxImpl(com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl) IndexBoxPart(com.gempukku.libgdx.graph.ui.part.IndexBoxPart)

Example 32 with GraphBoxImpl

use of com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl in project gdx-graph by MarcinSc.

the class DepthOfFieldBoxProducer method createPipelineGraphBox.

@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
    GraphBoxImpl result = createGraphBox(id);
    FloatBoxPart maxBlurPart = new FloatBoxPart("Max blur", "maxBlur", 10, new Validators.GreaterThanValidator(0, false));
    maxBlurPart.setValue(10f);
    maxBlurPart.initialize(data);
    result.addGraphBoxPart(maxBlurPart);
    CheckboxBoxPart blurBackground = new CheckboxBoxPart("Blur background", "blurBackground");
    blurBackground.setValue(false);
    blurBackground.initialize(data);
    result.addGraphBoxPart(blurBackground);
    addConfigurationInputsAndOutputs(result);
    return result;
}
Also used : FloatBoxPart(com.gempukku.libgdx.graph.ui.part.FloatBoxPart) GraphBoxImpl(com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl) CheckboxBoxPart(com.gempukku.libgdx.graph.ui.part.CheckboxBoxPart) Validators(com.kotcrab.vis.ui.util.Validators)

Example 33 with GraphBoxImpl

use of com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl in project gdx-graph by MarcinSc.

the class GraphBoxProducerImpl method createPipelineGraphBox.

@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
    GraphBoxImpl start = createGraphBox(id);
    addConfigurationInputsAndOutputs(start);
    return start;
}
Also used : GraphBoxImpl(com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl)

Aggregations

GraphBoxImpl (com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl)33 StringBoxPart (com.gempukku.libgdx.graph.ui.part.StringBoxPart)10 JsonValue (com.badlogic.gdx.utils.JsonValue)7 GraphChangedEvent (com.gempukku.libgdx.graph.ui.graph.GraphChangedEvent)6 Graph (com.gempukku.libgdx.graph.data.Graph)4 GraphConnection (com.gempukku.libgdx.graph.data.GraphConnection)4 GraphNode (com.gempukku.libgdx.graph.data.GraphNode)4 GraphProperty (com.gempukku.libgdx.graph.data.GraphProperty)4 IndexBoxPart (com.gempukku.libgdx.graph.ui.part.IndexBoxPart)4 SelectBoxPart (com.gempukku.libgdx.graph.ui.part.SelectBoxPart)4 PropertyNodeConfiguration (com.gempukku.libgdx.graph.config.PropertyNodeConfiguration)3 GraphBoxPartImpl (com.gempukku.libgdx.graph.ui.graph.GraphBoxPartImpl)3 CheckboxBoxPart (com.gempukku.libgdx.graph.ui.part.CheckboxBoxPart)3 EnumSelectBoxPart (com.gempukku.libgdx.graph.ui.part.EnumSelectBoxPart)3 ValueGraphNodeOutput (com.gempukku.libgdx.graph.ui.producer.ValueGraphNodeOutput)3 VisTable (com.kotcrab.vis.ui.widget.VisTable)3 Actor (com.badlogic.gdx.scenes.scene2d.Actor)2 ChangeListener (com.badlogic.gdx.scenes.scene2d.utils.ChangeListener)2 RenderOrder (com.gempukku.libgdx.graph.pipeline.RenderOrder)2 ClampMethod (com.gempukku.libgdx.graph.shader.ClampMethod)2