Sweet Home 3D 3.4

com.eteks.sweethome3d.model
Class LightSource

java.lang.Object
  extended by com.eteks.sweethome3d.model.LightSource
All Implemented Interfaces:
java.io.Serializable

public class LightSource
extends java.lang.Object
implements java.io.Serializable

A light source of a light.

Author:
Emmanuel Puybaret
See Also:
Serialized Form

Constructor Summary
LightSource(float x, float y, float z, int color)
          Creates a new light source.
LightSource(float x, float y, float z, int color, java.lang.Float diameter)
          Creates a new light source.
 
Method Summary
 int getColor()
          Returns the RGB color code of this source.
 java.lang.Float getDiameter()
          Returns the diameter of this source or null if it's not defined.
 float getX()
          Returns the abscissa of this source.
 float getY()
          Returns the ordinate of this source.
 float getZ()
          Returns the elevation of this source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightSource

public LightSource(float x,
                   float y,
                   float z,
                   int color)
Creates a new light source.


LightSource

public LightSource(float x,
                   float y,
                   float z,
                   int color,
                   java.lang.Float diameter)
Creates a new light source.

Since:
3.0
Method Detail

getX

public float getX()
Returns the abscissa of this source.


getY

public float getY()
Returns the ordinate of this source.


getZ

public float getZ()
Returns the elevation of this source.


getColor

public int getColor()
Returns the RGB color code of this source.


getDiameter

public java.lang.Float getDiameter()
Returns the diameter of this source or null if it's not defined.

Since:
3.0

Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License