org.deegree.rendering.r3d.model.geometry
Class SimpleGeometryStyle

java.lang.Object
  extended by org.deegree.rendering.r3d.model.geometry.SimpleGeometryStyle
All Implemented Interfaces:
Serializable, MemoryAware

public class SimpleGeometryStyle
extends Object
implements MemoryAware, Serializable

The SimpleGeometryStyle class TODO add class documentation here.

Version:
$Revision: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
Author:
Rutger Bezema, last edited by: $Author: aschmitz $
See Also:
Serialized Form

Constructor Summary
SimpleGeometryStyle()
          set the colors to 0xAAAAAAFF, emmisive to 0 and the shininess to 20;
SimpleGeometryStyle(int specularColor, int ambientColor, int diffuseColor, int emmisiveColor, float shininess)
           
 
Method Summary
 int getAmbientColor()
           
 int getDiffuseColor()
           
 int getEmmisiveColor()
           
 float getShininess()
           
 int getSpecularColor()
           
 void setAmbientColor(int ambientColor)
           
 void setDiffuseColor(int diffuseColor)
           
 void setEmmisiveColor(int emmisiveColor)
           
 void setShininess(float shininess)
           
 void setSpecularColor(int specularColor)
           
 long sizeOf()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleGeometryStyle

public SimpleGeometryStyle()
set the colors to 0xAAAAAAFF, emmisive to 0 and the shininess to 20;


SimpleGeometryStyle

public SimpleGeometryStyle(int specularColor,
                           int ambientColor,
                           int diffuseColor,
                           int emmisiveColor,
                           float shininess)
Parameters:
specularColor -
ambientColor -
diffuseColor -
emmisiveColor -
shininess -
Method Detail

getSpecularColor

public final int getSpecularColor()
Returns:
the specularColor

setSpecularColor

public final void setSpecularColor(int specularColor)
Parameters:
specularColor - the specularColor to set

getAmbientColor

public final int getAmbientColor()
Returns:
the ambientColor

setAmbientColor

public final void setAmbientColor(int ambientColor)
Parameters:
ambientColor - the ambientColor to set

getDiffuseColor

public final int getDiffuseColor()
Returns:
the diffuseColor

setDiffuseColor

public final void setDiffuseColor(int diffuseColor)
Parameters:
diffuseColor - the diffuseColor to set

getEmmisiveColor

public final int getEmmisiveColor()
Returns:
the emmisiveColor

setEmmisiveColor

public final void setEmmisiveColor(int emmisiveColor)
Parameters:
emmisiveColor - the emmisiveColor to set

getShininess

public final float getShininess()
Returns:
the shininess

setShininess

public final void setShininess(float shininess)
Parameters:
shininess - the shininess to set

toString

public String toString()
Overrides:
toString in class Object

sizeOf

public long sizeOf()
Specified by:
sizeOf in interface MemoryAware
Returns:
the bytes this style occupies


Copyright © 2011. All Rights Reserved.