|
################################################################## 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. ################################################################### |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.appearance3Dchooser.AmbientLightObject
class AmbientLightObject
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 |
---|
private static final long serialVersionUID
private javax.swing.JRadioButton ambientLightButton
private javax.swing.JSpinner ambientLightsColorRSpinner
private javax.swing.JSpinner ambientLightsColorGSpinner
private javax.swing.JSpinner ambientLightsColorBSpinner
private javax.media.j3d.BranchGroup light
private javax.media.j3d.TransformGroup sceneTransform
Constructor Detail |
---|
public AmbientLightObject(javax.swing.JRadioButton ambientLightButton, javax.swing.JSpinner ambientLightsColorRSpinner, javax.swing.JSpinner ambientLightsColorGSpinner, javax.swing.JSpinner ambientLightsColorBSpinner, javax.media.j3d.TransformGroup sceneTransform)
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 |
---|
public javax.swing.JRadioButton getButton()
public javax.swing.JSpinner getColorRSpinner()
public javax.swing.JSpinner getColorGSpinner()
public javax.swing.JSpinner getColorBSpinner()
public void set(boolean on)
public void updateColor()
|
################################################################## 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. ################################################################### |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |