com.barrybecker4.simulation.fluid.rendering.RenderWorker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bb4-fluid Show documentation
Show all versions of bb4-fluid Show documentation
bb4-simulations java code.
/** Copyright by Barry G. Becker, 2000-2011. Licensed under MIT License: http://www.opensource.org/licenses/MIT */
package com.barrybecker4.simulation.fluid.rendering;
import com.barrybecker4.simulation.common.rendering.ModelImage;
/**
* Renders one of the rectangular strips.
* @author Barry Becker
*/
public class RenderWorker implements Runnable {
private ModelImage modelImage_;
private int minY_, maxY_;
public RenderWorker(ModelImage modelImage, int minY, int maxY) {
modelImage_ = modelImage;
minY_ = minY;
maxY_ = maxY;
}
public void run() {
modelImage_.updateImage(minY_, maxY_);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy