Constructor and Description |
---|
RGBPTM()
Instantiates a new rgbptm.
|
Modifier and Type | Method and Description |
---|---|
int |
blue(int i)
Blue.
|
void |
computeNormals()
Compute normals.
|
Vec3f[][] |
getChannelNormals()
Gets the channel normals.
|
int[][][] |
getCoefficients()
The coefficients are organized as follows: coefficients[block][offset][i]
where: block is the color channel (RED=0, GREEN=1, BLUE=2) offset is the
index of the pixel i is the index of the coefficients (a0...a5)
|
float |
getDGain()
Gets the d gain.
|
EnvironmentMap |
getEnvironmentMap()
Gets the environment map.
|
int[] |
getEnvironmentMapCache()
Gets the environment map cache.
|
int[] |
getEnvironmentMapMap()
Gets the environment map map.
|
int |
getExp()
Gets the exp.
|
int |
getHeight()
Gets the height.
|
float |
getKDiff()
Gets the k diff.
|
float |
getKSpec()
Gets the k spec.
|
float |
getLuminance()
Gets the luminance.
|
Vec3f[] |
getNormals()
Gets the normals.
|
Vec3f[] |
getNormalsBlue()
Gets the normals blue.
|
Vec3f[] |
getNormalsGreen()
Gets the normals green.
|
Vec3f[] |
getNormalsRed()
Gets the normals red.
|
int |
getType()
Gets the type.
|
int |
getWidth()
Gets the width.
|
int |
getZ()
Gets the z.
|
int |
green(int i)
Green.
|
Vec3f |
normal(int i)
Normal.
|
Vec3f |
normal(int x,
int y)
Normal.
|
void |
recache()
Recache.
|
int |
red(int i)
Red.
|
void |
release()
Release.
|
void |
resize(int w,
int h)
Resize the PTM.
|
void |
setCoeff(int[][][] c)
Sets the coeff.
|
void |
setDGain(float f)
Sets the d gain.
|
void |
setEnvironmentMap(EnvironmentMap em)
Sets the environment map.
|
void |
setExp(int i)
Sets the exp.
|
void |
setHeight(int height)
Sets the height.
|
void |
setKDiff(float f)
Sets the k diff.
|
void |
setKSpec(float f)
Sets the k spec.
|
void |
setLuminance(float f)
Sets the luminance.
|
void |
setWidth(int width)
Sets the width.
|
void |
setZ(int z)
Sets the z.
|
boolean |
useEnv()
Use env.
|
void |
useEnv(boolean b)
Use env.
|
public int blue(int i)
PTM
public void computeNormals()
PTM
computeNormals
in interface PTM
public Vec3f[][] getChannelNormals()
public int[][][] getCoefficients()
public float getDGain()
PTM
public EnvironmentMap getEnvironmentMap()
PTM
getEnvironmentMap
in interface PTM
public int[] getEnvironmentMapCache()
PTM
getEnvironmentMapCache
in interface PTM
public int[] getEnvironmentMapMap()
PTM
getEnvironmentMapMap
in interface PTM
public int getExp()
PTM
public int getHeight()
PTM
public float getKDiff()
PTM
public float getKSpec()
PTM
public float getLuminance()
PTM
getLuminance
in interface PTM
public Vec3f[] getNormals()
PTM
getNormals
in interface PTM
public Vec3f[] getNormalsBlue()
public Vec3f[] getNormalsGreen()
public Vec3f[] getNormalsRed()
public int getType()
PTM
public int getWidth()
PTM
public int getZ()
PTM
public int green(int i)
PTM
public void recache()
PTM
public int red(int i)
PTM
public void release()
PTM
public void resize(int w, int h)
public void setCoeff(int[][][] c)
c
- the new coeffpublic void setDGain(float f)
PTM
public void setEnvironmentMap(EnvironmentMap em)
PTM
setEnvironmentMap
in interface PTM
em
- the new environment mappublic void setExp(int i)
PTM
public void setHeight(int height)
height
- the new heightpublic void setKDiff(float f)
PTM
public void setKSpec(float f)
PTM
public void setLuminance(float f)
PTM
setLuminance
in interface PTM
f
- the new luminancepublic void setWidth(int width)
width
- the new widthpublic void setZ(int z)
PTM
public boolean useEnv()
PTM