jpview.ptms
Class Ellipsoid

java.lang.Object
  extended by jpview.ptms.Ellipsoid
All Implemented Interfaces:
PTM

public class Ellipsoid
extends java.lang.Object
implements PTM

Author:
clyon

Field Summary
 
Fields inherited from interface jpview.ptms.PTM
LRGB, PRIMITIVE, RGB
 
Constructor Summary
Ellipsoid(int w, int h)
          Creates a new instance of Sphere
 
Method Summary
 int blue(int i)
           
 void computeNormals()
           
 float getDGain()
           
 EnvironmentMap getEnvironmentMap()
           
 int[] getEnvironmentMapCache()
           
 int[] getEnvironmentMapMap()
           
 int getExp()
           
 int getHeight()
           
 float getKDiff()
           
 float getKSpec()
           
 float getLuminance()
           
 Vec3f[] getNormals()
           
 int getType()
           
 int getWidth()
           
 int getZ()
           
 int green(int i)
           
 Vec3f normal(int i)
           
 Vec3f normal(int x, int y)
           
 void recache()
           
 int red(int i)
           
 void release()
           
 void setDGain(float f)
           
 void setEnvironmentMap(EnvironmentMap map)
           
 void setExp(int i)
           
 void setKDiff(float f)
           
 void setKSpec(float f)
           
 void setLuminance(float f)
           
 void setZ(int z)
           
 boolean useEnv()
           
 void useEnv(boolean b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ellipsoid

public Ellipsoid(int w,
                 int h)
Creates a new instance of Sphere

Method Detail

blue

public int blue(int i)
Specified by:
blue in interface PTM

computeNormals

public void computeNormals()
Specified by:
computeNormals in interface PTM

getHeight

public int getHeight()
Specified by:
getHeight in interface PTM

getWidth

public int getWidth()
Specified by:
getWidth in interface PTM

green

public int green(int i)
Specified by:
green in interface PTM

normal

public Vec3f normal(int i)
Specified by:
normal in interface PTM

normal

public Vec3f normal(int x,
                    int y)
Specified by:
normal in interface PTM

red

public int red(int i)
Specified by:
red in interface PTM

setEnvironmentMap

public void setEnvironmentMap(EnvironmentMap map)
Specified by:
setEnvironmentMap in interface PTM

getEnvironmentMap

public EnvironmentMap getEnvironmentMap()
Specified by:
getEnvironmentMap in interface PTM

getType

public int getType()
Specified by:
getType in interface PTM

getNormals

public Vec3f[] getNormals()
Specified by:
getNormals in interface PTM

setKSpec

public void setKSpec(float f)
Specified by:
setKSpec in interface PTM

setKDiff

public void setKDiff(float f)
Specified by:
setKDiff in interface PTM

setExp

public void setExp(int i)
Specified by:
setExp in interface PTM

getExp

public int getExp()
Specified by:
getExp in interface PTM

getKDiff

public float getKDiff()
Specified by:
getKDiff in interface PTM

getKSpec

public float getKSpec()
Specified by:
getKSpec in interface PTM

release

public void release()
Specified by:
release in interface PTM

getDGain

public float getDGain()
Specified by:
getDGain in interface PTM

setDGain

public void setDGain(float f)
Specified by:
setDGain in interface PTM

getEnvironmentMapCache

public int[] getEnvironmentMapCache()
Specified by:
getEnvironmentMapCache in interface PTM

getLuminance

public float getLuminance()
Specified by:
getLuminance in interface PTM

setLuminance

public void setLuminance(float f)
Specified by:
setLuminance in interface PTM

recache

public void recache()
Specified by:
recache in interface PTM

getEnvironmentMapMap

public int[] getEnvironmentMapMap()
Specified by:
getEnvironmentMapMap in interface PTM

useEnv

public boolean useEnv()
Specified by:
useEnv in interface PTM

useEnv

public void useEnv(boolean b)
Specified by:
useEnv in interface PTM

getZ

public int getZ()
Specified by:
getZ in interface PTM

setZ

public void setZ(int z)
Specified by:
setZ in interface PTM