##################################################################

Appearance3DChooser v1.1

Copyright (C) 2009 Frederic Roudaut


This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

###################################################################

com.appearance3Dchooser
Class AmbientLightObject

java.lang.Object
  extended by com.appearance3Dchooser.AmbientLightObject

 class AmbientLightObject
extends java.lang.Object

Class representing an Ambient light in the 3D Scene. Parameters for controlling this Ambient light are set in a separate control light Panel.


Field Summary
private  javax.swing.JRadioButton ambientLightButton
           
private  javax.swing.JSpinner ambientLightsColorBSpinner
           
private  javax.swing.JSpinner ambientLightsColorGSpinner
           
private  javax.swing.JSpinner ambientLightsColorRSpinner
           
private  javax.media.j3d.BranchGroup light
           
private  javax.media.j3d.TransformGroup sceneTransform
           
private static long serialVersionUID
           
 
Constructor Summary
AmbientLightObject(javax.swing.JRadioButton ambientLightButton, javax.swing.JSpinner ambientLightsColorRSpinner, javax.swing.JSpinner ambientLightsColorGSpinner, javax.swing.JSpinner ambientLightsColorBSpinner, javax.media.j3d.TransformGroup sceneTransform)
          Constructor for having an Ambient light in the 3D Scene.
 
Method Summary
 javax.swing.JRadioButton getButton()
          Get the JRadioButton to set or unset this light.
 javax.swing.JSpinner getColorBSpinner()
          Get the spinner to control the B Value of the light.
 javax.swing.JSpinner getColorGSpinner()
          Get the spinner to control the G Value of the light.
 javax.swing.JSpinner getColorRSpinner()
          Get the spinner to control the R Value of the light.
 void set(boolean on)
          Set or unset the light.
 void updateColor()
          Update the light color according to the associated Spinners values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

ambientLightButton

private javax.swing.JRadioButton ambientLightButton

ambientLightsColorRSpinner

private javax.swing.JSpinner ambientLightsColorRSpinner

ambientLightsColorGSpinner

private javax.swing.JSpinner ambientLightsColorGSpinner

ambientLightsColorBSpinner

private javax.swing.JSpinner ambientLightsColorBSpinner

light

private javax.media.j3d.BranchGroup light

sceneTransform

private javax.media.j3d.TransformGroup sceneTransform
Constructor Detail

AmbientLightObject

public AmbientLightObject(javax.swing.JRadioButton ambientLightButton,
                          javax.swing.JSpinner ambientLightsColorRSpinner,
                          javax.swing.JSpinner ambientLightsColorGSpinner,
                          javax.swing.JSpinner ambientLightsColorBSpinner,
                          javax.media.j3d.TransformGroup sceneTransform)
Constructor for having an Ambient light in the 3D Scene.

Parameters:
ambientLightButton - the JRadioButton to set or unset this light.
ambientLightsColorRSpinner - a spinner to control the R Value of the light.
ambientLightsColorGSpinner - a spinner to control the G Value of the light.
ambientLightsColorBSpinner - a spinner to control the B Value of the light.
sceneTransform - the transformation for the lights.
Method Detail

getButton

public javax.swing.JRadioButton getButton()
Get the JRadioButton to set or unset this light.


getColorRSpinner

public javax.swing.JSpinner getColorRSpinner()
Get the spinner to control the R Value of the light.


getColorGSpinner

public javax.swing.JSpinner getColorGSpinner()
Get the spinner to control the G Value of the light.


getColorBSpinner

public javax.swing.JSpinner getColorBSpinner()
Get the spinner to control the B Value of the light.


set

public void set(boolean on)
Set or unset the light.


updateColor

public void updateColor()
Update the light color according to the associated Spinners values. Called when an event is detected on the corresponding Spinner.



##################################################################

Appearance3DChooser v1.1

Copyright (C) 2009 Frederic Roudaut


This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

###################################################################