com.vwp.vuapi.objects
Class VUPointLightObjectInfo

java.lang.Object
  extended by com.vwp.vuapi.util.VUInfo
      extended by com.vwp.vuapi.objects.VUObjectInfo
          extended by com.vwp.vuapi.objects.VULightObjectInfo
              extended by com.vwp.vuapi.objects.VUPointLightObjectInfo
Direct Known Subclasses:
VUVisiblePointLightObjectInfo

public class VUPointLightObjectInfo
extends VULightObjectInfo

With this class a point light can be managed and build within a world newly


Field Summary
 double linearAttenuation
           
 double quadraticAttenuation
           
 
Fields inherited from class com.vwp.vuapi.objects.VULightObjectInfo
color, switchLightOff, switchLightOn, VU_OBJECT_LIGHT_SWITCH_0_2_SEC, VU_OBJECT_LIGHT_SWITCH_0_25_SEC, VU_OBJECT_LIGHT_SWITCH_0_33_SEC, VU_OBJECT_LIGHT_SWITCH_0_5_SEC, VU_OBJECT_LIGHT_SWITCH_1_SEC, VU_OBJECT_LIGHT_SWITCH_2_SEC, VU_OBJECT_LIGHT_SWITCH_3_SEC, VU_OBJECT_LIGHT_SWITCH_4_SEC, VU_OBJECT_LIGHT_SWITCH_5_SEC, VU_OBJECT_LIGHT_SWITCH_FX_FIRE, VU_OBJECT_LIGHT_SWITCH_NONE, VU_OBJECT_LIGHT_SWITCH_RANDOM_FAST, VU_OBJECT_LIGHT_SWITCH_RANDOM_MEDIUM, VU_OBJECT_LIGHT_SWITCH_RANDOM_SLOW
 
Fields inherited from class com.vwp.vuapi.objects.VUObjectInfo
angleX, angleY, angleZ, previousID, x, y, z
 
Fields inherited from class com.vwp.vuapi.util.VUInfo
ID, name
 
Constructor Summary
VUPointLightObjectInfo(double linearAttenuation, double quadraticAttenuation, Color color, int switchLightOn, int switchLightOff, double x, double y, double z)
          This is a constructor for 3d point light objects that have to be build and placed newly within a world
VUPointLightObjectInfo(long ID, long previousID, double linearAttenuation, double quadraticAttenuation, Color color, int flags, double x, double y, double z)
           
 
Method Summary
 void set(VUPointLightObjectInfo oi)
           
 
Methods inherited from class com.vwp.vuapi.objects.VULightObjectInfo
set
 
Methods inherited from class com.vwp.vuapi.objects.VUObjectInfo
set
 
Methods inherited from class com.vwp.vuapi.util.VUInfo
set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linearAttenuation

public double linearAttenuation

quadraticAttenuation

public double quadraticAttenuation
Constructor Detail

VUPointLightObjectInfo

public VUPointLightObjectInfo(long ID,
                              long previousID,
                              double linearAttenuation,
                              double quadraticAttenuation,
                              Color color,
                              int flags,
                              double x,
                              double y,
                              double z)

VUPointLightObjectInfo

public VUPointLightObjectInfo(double linearAttenuation,
                              double quadraticAttenuation,
                              Color color,
                              int switchLightOn,
                              int switchLightOff,
                              double x,
                              double y,
                              double z)
This is a constructor for 3d point light objects that have to be build and placed newly within a world

Parameters:
linearAttenuation - the linear attenuation factor of the light
quadraticAttenuation - the quadratic attenuation value of the light
color - the lights color
switchLightOn - this flag specifies the behavior for switching the light on, here one of the VU_OBJECT_LIGHT_SWITCH_-constants has to be set
switchLightOff - this flag specifies the behavior for switching the light off, here one of the VU_OBJECT_LIGHT_SWITCH_-constants has to be set
x - the x coordinate of the light source
y - the y coordinate of the light source
z - the z coordinate of the light source
Method Detail

set

public void set(VUPointLightObjectInfo oi)