|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--raja.shape.LocalTexture
A class to encapsulate the local physical properties of a form's boundary. This class provides methods to get the following local physical properties of a form's boundary: the diffuse (kd), reflection (krl, krg) and transmission (ktl, ktg) coefficients, the reflection power index (ns) and the transmission power index (nt).
Texture,
TexturedForm,
TexturedLocalGeometry,
RGB, Serialized Form| Constructor Summary | |
LocalTexture(double kd,
double krl,
double krg,
double ktl,
double ktg,
int ns,
int nt,
RGB color)
|
|
LocalTexture(double kd,
double kr,
double kt,
int ns,
int nt,
RGB color)
|
|
LocalTexture(RGB kd,
RGB krg,
double krl,
RGB ktg,
double ktl,
int ns,
int nt)
|
|
LocalTexture(RGB kd,
RGB kr,
RGB kt,
int ns,
int nt)
|
|
LocalTexture(RGB kd,
RGB krl,
RGB krg,
RGB ktl,
RGB ktg,
int ns,
int nt)
|
|
| Method Summary | |
static Object |
build(ObjectReader reader)
Builds the object LocalTexture from a StreamLexer. |
RGB |
getKd()
Returns the diffuse coefficient. |
RGB |
getKrg()
Returns the global reflection coefficient. |
RGB |
getKrl()
Returns the local reflection coefficient. |
RGB |
getKtg()
Returns the global transmission coefficient. |
RGB |
getKtl()
Returns the local transmission coefficient. |
int |
getNs()
Returns the reflection power index. |
int |
getNt()
Returns the transmission power index. |
String |
toString()
|
void |
write(ObjectWriter writer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LocalTexture(RGB kd,
RGB kr,
RGB kt,
int ns,
int nt)
public LocalTexture(RGB kd,
RGB krl,
RGB krg,
RGB ktl,
RGB ktg,
int ns,
int nt)
public LocalTexture(RGB kd,
RGB krg,
double krl,
RGB ktg,
double ktl,
int ns,
int nt)
public LocalTexture(double kd,
double krl,
double krg,
double ktl,
double ktg,
int ns,
int nt,
RGB color)
public LocalTexture(double kd,
double kr,
double kt,
int ns,
int nt,
RGB color)
| Method Detail |
public static Object build(ObjectReader reader)
throws IOException
public RGB getKd()
RGB that is the diffuse coefficient.public RGB getKrl()
RGB that is the local reflection coefficient.public RGB getKrg()
RGB that is the global reflection coefficient.public RGB getKtl()
RGB that is the local transmission coefficient.public RGB getKtg()
RGB that is the global transmission coefficient.public int getNs()
public int getNt()
public String toString()
toString in class Object
public void write(ObjectWriter writer)
throws IOException
write in interface Writable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||