| 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)
PTMpublic void computeNormals()
PTMcomputeNormals in interface PTMpublic Vec3f[][] getChannelNormals()
public int[][][] getCoefficients()
public float getDGain()
PTMpublic EnvironmentMap getEnvironmentMap()
PTMgetEnvironmentMap in interface PTMpublic int[] getEnvironmentMapCache()
PTMgetEnvironmentMapCache in interface PTMpublic int[] getEnvironmentMapMap()
PTMgetEnvironmentMapMap in interface PTMpublic int getExp()
PTMpublic int getHeight()
PTMpublic float getKDiff()
PTMpublic float getKSpec()
PTMpublic float getLuminance()
PTMgetLuminance in interface PTMpublic Vec3f[] getNormals()
PTMgetNormals in interface PTMpublic Vec3f[] getNormalsBlue()
public Vec3f[] getNormalsGreen()
public Vec3f[] getNormalsRed()
public int getType()
PTMpublic int getWidth()
PTMpublic int getZ()
PTMpublic int green(int i)
PTMpublic void recache()
PTMpublic int red(int i)
PTMpublic void release()
PTMpublic void resize(int w,
int h)
public void setCoeff(int[][][] c)
c - the new coeffpublic void setDGain(float f)
PTMpublic void setEnvironmentMap(EnvironmentMap em)
PTMsetEnvironmentMap in interface PTMem - the new environment mappublic void setExp(int i)
PTMpublic void setHeight(int height)
height - the new heightpublic void setKDiff(float f)
PTMpublic void setKSpec(float f)
PTMpublic void setLuminance(float f)
PTMsetLuminance in interface PTMf - the new luminancepublic void setWidth(int width)
width - the new widthpublic void setZ(int z)
PTMpublic boolean useEnv()
PTM