com.jme3.scene.plugins.blender.textures.generating
Class TextureGenerator

java.lang.Object
  extended by com.jme3.scene.plugins.blender.textures.generating.TextureGenerator
Direct Known Subclasses:
TextureGeneratorBlend, TextureGeneratorClouds, TextureGeneratorDistnoise, TextureGeneratorMagic, TextureGeneratorMusgrave, TextureGeneratorNoise, TextureGeneratorStucci, TextureGeneratorVoronoi, TextureGeneratorWood

public abstract class TextureGenerator
extends java.lang.Object

This class is a base class for texture generators.


Nested Class Summary
protected static class TextureGenerator.BrightnessAndContrastData
          This class contains brightness and contrast data.
 
Field Summary
protected  TextureGenerator.BrightnessAndContrastData bacd
           
protected  float[][] colorBand
           
protected  int flag
           
protected  Image.Format imageFormat
           
protected  com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator
           
 
Constructor Summary
TextureGenerator(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator, Image.Format imageFormat)
           
 
Method Summary
protected  void applyBrightnessAndContrast(TextureGenerator.BrightnessAndContrastData bacd, TexturePixel texres)
          This method applies brightness and contrast for RGB textures.
protected  void applyBrightnessAndContrast(TexturePixel texres, float contrast, float brightness)
          This method applies brightness and contrast for Luminance textures.
 Image.Format getImageFormat()
           
abstract  void getPixel(TexturePixel pixel, float x, float y, float z)
           
 void readData(Structure tex, BlenderContext blenderContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noiseGenerator

protected com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator

flag

protected int flag

colorBand

protected float[][] colorBand

bacd

protected TextureGenerator.BrightnessAndContrastData bacd

imageFormat

protected Image.Format imageFormat
Constructor Detail

TextureGenerator

public TextureGenerator(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator,
                        Image.Format imageFormat)
Method Detail

getImageFormat

public Image.Format getImageFormat()

readData

public void readData(Structure tex,
                     BlenderContext blenderContext)

getPixel

public abstract void getPixel(TexturePixel pixel,
                              float x,
                              float y,
                              float z)

applyBrightnessAndContrast

protected void applyBrightnessAndContrast(TextureGenerator.BrightnessAndContrastData bacd,
                                          TexturePixel texres)
This method applies brightness and contrast for RGB textures.

Parameters:
tex - texture structure
texres -

applyBrightnessAndContrast

protected void applyBrightnessAndContrast(TexturePixel texres,
                                          float contrast,
                                          float brightness)
This method applies brightness and contrast for Luminance textures.

Parameters:
texres -
contrast -
brightness -