| Constructor and Description |
|---|
LRGBPTM()
Creates a new instance of PTMDataBuffer
|
| Modifier and Type | Method and Description |
|---|---|
int |
blue(int i)
Blue.
|
void |
computeNormals()
Compute normals.
|
void |
drawSubPtm(int offx,
int offy,
int w,
int h,
PTM ptm)
This function updates the current PTM with the data of the given sub-ptm.
|
void |
drawSubPtm(int offx,
int offy,
PTM ptm)
This functions updates the current PTM with the data of the given
sub-ptm.
|
int[] |
getA0()
Gets the a0.
|
int[] |
getA0(int left,
int top,
int right,
int bottom)
Gets the a0.
|
int[] |
getA1()
Gets the a1.
|
int[] |
getA1(int left,
int top,
int right,
int bottom)
Gets the a1.
|
int[] |
getA2()
Gets the a2.
|
int[] |
getA2(int left,
int top,
int right,
int bottom)
Gets the a2.
|
int[] |
getA3()
Gets the a3.
|
int[] |
getA3(int left,
int top,
int right,
int bottom)
Gets the a3.
|
int[] |
getA4()
Gets the a4.
|
int[] |
getA4(int left,
int top,
int right,
int bottom)
Gets the a4.
|
int[] |
getA5()
Gets the a5.
|
int[] |
getA5(int left,
int top,
int right,
int bottom)
Gets the a5.
|
int[][] |
getCoefficients()
Get LRGBPTM coefficients.
|
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.
|
int[] |
getRGB()
Gets the rgb.
|
int[] |
getRGB(int left,
int top,
int right,
int bottom)
Gets the rgb.
|
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 |
setA0(int[] a)
settors
|
void |
setA1(int[] a)
Sets the a1.
|
void |
setA2(int[] a)
Sets the a2.
|
void |
setA3(int[] a)
Sets the a3.
|
void |
setA4(int[] a)
Sets the a4.
|
void |
setA5(int[] a)
Sets the a5.
|
void |
setCoefficients(int[][] coeff)
Set LRGBPTM coefficients.
|
void |
setDGain(float f)
Sets the d gain.
|
void |
setEnvironmentMap(EnvironmentMap map)
Sets the environment map.
|
void |
setExp(int i)
Sets the exp.
|
void |
setHeight(int h)
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 |
setRGB(int[] a)
Sets the rgb.
|
void |
setWidth(int w)
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 void drawSubPtm(int offx,
int offy,
int w,
int h,
PTM ptm)
offx - Horizontal offsetoffy - Vertical offsetw - Target widthh - Target heightptm - Sub-ptmpublic void drawSubPtm(int offx,
int offy,
PTM ptm)
offx - Horizontal offsetoffy - Vertical offsetptm - Sub-ptmpublic int[] getA0()
public int[] getA0(int left,
int top,
int right,
int bottom)
left - the lefttop - the topright - the rightbottom - the bottompublic int[] getA1()
public int[] getA1(int left,
int top,
int right,
int bottom)
left - the lefttop - the topright - the rightbottom - the bottompublic int[] getA2()
public int[] getA2(int left,
int top,
int right,
int bottom)
left - the lefttop - the topright - the rightbottom - the bottompublic int[] getA3()
public int[] getA3(int left,
int top,
int right,
int bottom)
left - the lefttop - the topright - the rightbottom - the bottompublic int[] getA4()
public int[] getA4(int left,
int top,
int right,
int bottom)
left - the lefttop - the topright - the rightbottom - the bottompublic int[] getA5()
public int[] getA5(int left,
int top,
int right,
int bottom)
left - the lefttop - the topright - the rightbottom - the bottompublic 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 int[] getRGB()
public int[] getRGB(int left,
int top,
int right,
int bottom)
left - the lefttop - the topright - the rightbottom - the bottompublic 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 setA0(int[] a)
public void setA1(int[] a)
a - the new a1public void setA2(int[] a)
a - the new a2public void setA3(int[] a)
a - the new a3public void setA4(int[] a)
a - the new a4public void setA5(int[] a)
a - the new a5public void setCoefficients(int[][] coeff)
public void setDGain(float f)
PTMpublic void setEnvironmentMap(EnvironmentMap map)
PTMsetEnvironmentMap in interface PTMmap - the new environment mappublic void setExp(int i)
PTMpublic void setHeight(int h)
h - 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 setRGB(int[] a)
a - the new rgbpublic void setWidth(int w)
w - the new widthpublic void setZ(int z)
PTMpublic boolean useEnv()
PTM