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)
PTM
public void computeNormals()
PTM
computeNormals
in interface PTM
public 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()
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 int[] getRGB()
public int[] getRGB(int left, int top, int right, int bottom)
left
- the lefttop
- the topright
- the rightbottom
- the bottompublic 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 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)
PTM
public void setEnvironmentMap(EnvironmentMap map)
PTM
setEnvironmentMap
in interface PTM
map
- the new environment mappublic void setExp(int i)
PTM
public void setHeight(int h)
h
- 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 setRGB(int[] a)
a
- the new rgbpublic void setWidth(int w)
w
- the new widthpublic void setZ(int z)
PTM
public boolean useEnv()
PTM