de.grogra.imp3d.objects
public abstract class LightBase extends ShareableBase implements Light
| Modifier and Type | Class and Description |
|---|---|
static class |
LightBase.Type |
| Modifier and Type | Field and Description |
|---|---|
static LightBase.Type |
$TYPE |
static SCOType.Field |
color$FIELD |
protected int |
numberofrays |
static SCOType.Field |
numberofrays$FIELD |
protected float |
raylength |
static SCOType.Field |
raylength$FIELD |
static SCOType.Field |
shadowless$FIELD |
protected boolean |
visualize |
static SCOType.Field |
visualize$FIELD |
AMBIENT, AREA, DIRECTIONAL, NO_LIGHT, POINT, SKYDELTA_FACTOR, IS_NON_OPAQUE, MIN_UNUSED_FLAG, NEEDS_NORMAL, NEEDS_POINT, NEEDS_TANGENTS, NEEDS_TRANSFORMATION, NEEDS_UV, RANDOM_RAYS_GENERATE_ORIGINS| Constructor and Description |
|---|
LightBase() |
| Modifier and Type | Method and Description |
|---|---|
double |
completeRay(Environment env,
Point3d vertex,
Ray out) |
protected void |
draw(Tuple3f color,
RenderState rs) |
int |
getAverageColor()
Returns an average color for the scattering entity.
|
RGBColor |
getColor() |
int |
getFlags() |
int |
getNumberofrays() |
float |
getRaylength() |
boolean |
isIgnoredWhenHit()
Determines whether the light source shall be ignored when a shot ray
happens to hit the geometry of the light source.
|
boolean |
isShadowless()
Determines whether the light source casts shadows or not.
|
boolean |
isVisualize() |
Light |
resolveLight() |
void |
setNumberofrays(int value) |
void |
setRaylength(float value) |
void |
setShadowless(boolean value) |
void |
setVisualize(boolean value) |
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLightType, getTotalPowercomputeExitance, generateRandomOriginscomputeBSDF, generateRandomRaysgetManageableTypepublic static final LightBase.Type $TYPE
public static final SCOType.Field color$FIELD
protected int numberofrays
public static final SCOType.Field numberofrays$FIELD
protected float raylength
public static final SCOType.Field raylength$FIELD
public static final SCOType.Field shadowless$FIELD
protected boolean visualize
public static final SCOType.Field visualize$FIELD
public double completeRay(Environment env, Point3d vertex, Ray out)
completeRay in interface Emitterprotected void draw(Tuple3f color, RenderState rs)
public int getAverageColor()
ScatteringgetAverageColor in interface Scatteringpublic RGBColor getColor()
public int getFlags()
getFlags in interface Scatteringpublic int getNumberofrays()
public float getRaylength()
public boolean isIgnoredWhenHit()
LightisIgnoredWhenHit in interface Lighttrue iff the light source shall be ignoredpublic boolean isShadowless()
LightisShadowless in interface Lighttrue iff the light source does not cast shadowspublic boolean isVisualize()
public Light resolveLight()
public void setNumberofrays(int value)
public void setRaylength(float value)
public void setShadowless(boolean value)
public void setVisualize(boolean value)