|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.lightrays.raytracer.scene.OpticalProperties
public class OpticalProperties
The Class OpticalProperties.
Field Summary | |
---|---|
Colour |
colour
The colour. |
double |
diffusion
The diffusion. |
boolean |
luminous
The luminous. |
double |
reflectiveness
The reflectiveness. |
double |
refractiveness
The refractiveness. |
double |
transparency
The transparency. |
Constructor Summary | |
---|---|
OpticalProperties()
Instantiates a new optical properties. |
|
OpticalProperties(Colour c,
double refra,
double transp,
double refle,
double diffu,
boolean lumin)
Instantiates a new optical properties. |
Method Summary | |
---|---|
void |
set(Colour c,
double refra,
double transp,
double refle,
double diffu,
boolean lumin)
Sets the. |
void |
setColour(Colour c)
Sets the colour. |
void |
setValues(double refra,
double transp,
double refle,
double diffu,
boolean lumin)
Sets the values. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Colour colour
public double diffusion
public boolean luminous
public double reflectiveness
public double refractiveness
public double transparency
Constructor Detail |
---|
public OpticalProperties()
public OpticalProperties(Colour c, double refra, double transp, double refle, double diffu, boolean lumin)
c
- the crefra
- the refratransp
- the transprefle
- the reflediffu
- the diffulumin
- the luminMethod Detail |
---|
public void set(Colour c, double refra, double transp, double refle, double diffu, boolean lumin)
c
- the crefra
- the refratransp
- the transprefle
- the reflediffu
- the diffulumin
- the luminpublic void setColour(Colour c)
c
- the new colourpublic void setValues(double refra, double transp, double refle, double diffu, boolean lumin)
refra
- the refratransp
- the transprefle
- the reflediffu
- the diffulumin
- the luminpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |