|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for lights used in the JavaView display. Additional to the built-in lights of JavaView a user may add third-party lights fulfilling this interface to any JavaView display.
| Field Summary | |
static int |
LIGHT_AMBIENT
Non-directional global illumination of scene. |
static int |
LIGHT_DIRECTION
Directional global illumination of scene with parallel light. |
static int |
LIGHT_HEAD
Headlight always shines from the position of the camera, i.e. observer, on the scene. |
static int |
LIGHT_POINT
Point light source shines in all direction from point in space. |
static int |
LIGHT_SHADOW
Shadow light simply produces a shadow on other geometries. |
static int |
LIGHT_SKY
Vertical light shines from north pole of the sky dome on the scene. |
static int |
LIGHT_SPOT
Directional illumination of a part of scene which lies within the spot cone. |
static int |
MODEL_LIGHT
Additionally to surface material use lighting information obtained from lights. |
static int |
MODEL_SURFACE
Use surface color and global material properties of a geometry. |
static int |
REFERENCE_CAMERA
Light position is given relative to the camera coordinate system. |
static int |
REFERENCE_SCENE
Light position is given relative to the scene coordinate system (default). |
static int |
SHADING_FULLSPHERE
Shading function illuminates full of sphere with decay towards opposite pole. |
static int |
SHADING_HALFSPHERE
Shading function illuminates visible half of sphere with decay towards equator. |
static int |
SHADING_SYMMETRIC
Shading function illuminates full sphere with symmetric half sphere shading. |
| Method Summary | |
double |
getAngle()
Get angle of spot cone of light. |
java.awt.Color |
getColor()
Get color of light. |
double |
getCorona()
Get angle of corona of spot cone. |
double |
getExponent()
Get exponent which determines the size of a highlight. |
double |
getFalloff()
Get fall off angle of spot cone. |
double |
getIntensity()
Get intensity of light. |
PdVector |
getInterest()
Get interest of light. |
int |
getLightType()
Get type of the light among public variables like LIGHT_AMBIENT. |
PdVector |
getPosition()
Get position of light. |
int |
getReference()
Get reference coordinate system of the light among public variables like REFERENCE_SCENE. |
int |
getShading()
Get shading type of the light among public variables like SHADING_SYMMETRIC. |
boolean |
isHighlight()
Determines if light throughs a highlight. |
boolean |
isSwitchedOn()
Get flag if light is currently switched on within the scene, i.e. whether is contributes to the total light. |
void |
setAngle(double angle)
Set angle of spot cone of light. |
void |
setColor(java.awt.Color color)
Set color of light. |
void |
setCorona(double corona)
Set angle of corona of spot cone. |
void |
setExponent(double exponent)
Set exponent which determines the size of a highlight. |
void |
setFalloff(double falloff)
Set fall off angle of spot cone. |
void |
setHighlight(boolean bHighlight)
Enables if light throughs a highlight. |
void |
setIntensity(double intensity)
Set intensity of light. |
void |
setInterest(double x,
double y,
double z)
Set interest of light. |
void |
setInterest(PdVector interest)
Set interest of light. |
void |
setLightType(int lightType)
Set type of the light among public variables like LIGHT_AMBIENT. |
void |
setName(java.lang.String name)
Set name of instance. |
void |
setPosition(double x,
double y,
double z)
Set position of light. |
void |
setPosition(PdVector position)
Set position of light. |
void |
setReference(int reference)
Set reference coordinate system of the light among public variables like REFERENCE_SCENE. |
void |
setShading(int shading)
Set shading type of the light among public variables like SHADING_SYMMETRIC. |
void |
setSwitchedOn(boolean flag)
Set flag if light is currently switched on within the scene, i.e. whether is contributes to the total light. |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, setParent, update |
| Field Detail |
public static final int MODEL_SURFACE
public static final int MODEL_LIGHT
public static final int REFERENCE_SCENE
public static final int REFERENCE_CAMERA
public static final int LIGHT_AMBIENT
public static final int LIGHT_DIRECTION
public static final int LIGHT_POINT
public static final int LIGHT_SPOT
public static final int LIGHT_SHADOW
public static final int LIGHT_HEAD
public static final int LIGHT_SKY
public static final int SHADING_SYMMETRIC
public static final int SHADING_HALFSPHERE
public static final int SHADING_FULLSPHERE
| Method Detail |
public void setName(java.lang.String name)
setName in interface PgGeometryIfPgGeometryIf.getName(),
PgGeometryIf.setTitle(String)public int getReference()
REFERENCE_SCENE.
public void setReference(int reference)
REFERENCE_SCENE.
reference - new reference coordinate systempublic int getShading()
SHADING_SYMMETRIC.
public void setShading(int shading)
SHADING_SYMMETRIC.
shading - new shading type of this lightpublic int getLightType()
LIGHT_AMBIENT.
public void setLightType(int lightType)
LIGHT_AMBIENT.
lightType - new type of this light sourcepublic boolean isSwitchedOn()
public void setSwitchedOn(boolean flag)
public PdVector getPosition()
public void setPosition(PdVector position)
position - position is a 3d vector
public void setPosition(double x,
double y,
double z)
x - x coordinate of position of lighty - y coordinate of position of lightz - z coordinate of position of lightpublic PdVector getInterest()
public void setInterest(PdVector interest)
interest - interest is a 3d position.
public void setInterest(double x,
double y,
double z)
x - x coordinate of interest of lighty - y coordinate of interest of lightz - z coordinate of interest of lightpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - new color of lightpublic double getIntensity()
public void setIntensity(double intensity)
intensity - intensity of lightpublic double getAngle()
public void setAngle(double angle)
angle - angle of spot cone of lightpublic double getCorona()
public void setCorona(double corona)
corona - angle of corona of spot conepublic double getFalloff()
public void setFalloff(double falloff)
falloff - fall off angle of spot conepublic double getExponent()
public void setExponent(double exponent)
exponent - specular exponentpublic boolean isHighlight()
public void setHighlight(boolean bHighlight)
bHighlight - flag
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||