Package mgui.interfaces.maps
Class Camera3D.CameraLightSource
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.maps.Camera3D.CameraLightSource
- All Implemented Interfaces:
AttributeListener,AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject,IconObject
- Enclosing class:
- Camera3D
public class Camera3D.CameraLightSource extends AbstractInterfaceObject implements AttributeObject, AttributeListener, IconObject
-
Field Summary
Fields Modifier and Type Field Description AttributeListattributesprotected javax.swing.Iconlight_iconorg.jogamp.java3d.DirectionalLightsourceFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description CameraLightSource(org.jogamp.java3d.DirectionalLight s, org.jogamp.vecmath.Vector2d o) -
Method Summary
Modifier and Type Method Description voidattributeUpdated(AttributeEvent e)Called when an Attribute's value has been updated.Attribute<?>getAttribute(java.lang.String attrName)Returns a specific attribute for this object.AttributeListgetAttributes()Returns the list of current attributes for this object.java.lang.ObjectgetAttributeValue(java.lang.String name)Gets the value of attributename, ornullif it does not exist.java.awt.ColorgetColour()booleangetIsEnabled()java.lang.StringgetName()Gets the name for this object.javax.swing.IcongetObjectIcon()Returns theIconassociated with this object.doublegetRotX()doublegetRotY()org.jogamp.java3d.DirectionalLightgetSource()protected voidinit2()voidsetAttribute(java.lang.String attrName, java.lang.Object newValue)Sets a value for a specific attribute.voidsetAttributes(AttributeList thisList)Sets the list of attributes for this object.voidsetColour(java.awt.Color colour)voidsetDirection(org.jogamp.vecmath.Vector3f d)protected voidsetIcon()voidsetIsEnabled(boolean b)voidsetName(java.lang.String name)Sets the name for this object.voidsetRotX(double r)voidsetRotY(double r)voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.java.lang.StringtoString()Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getTreeLabel, isDestroyed, issueTreeNode, updateTreeNodesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
light_icon
protected javax.swing.Icon light_icon -
source
public org.jogamp.java3d.DirectionalLight source -
attributes
-
-
Constructor Details
-
CameraLightSource
public CameraLightSource(org.jogamp.java3d.DirectionalLight s, org.jogamp.vecmath.Vector2d o)
-
-
Method Details
-
init2
protected void init2() -
setIcon
protected void setIcon() -
setDirection
public void setDirection(org.jogamp.vecmath.Vector3f d) -
setRotX
public void setRotX(double r) -
getRotX
public double getRotX() -
setName
public void setName(java.lang.String name)Description copied from interface:NamedObjectSets the name for this object.- Specified by:
setNamein interfaceNamedObject- Overrides:
setNamein classAbstractInterfaceObject
-
getName
public java.lang.String getName()Description copied from interface:NamedObjectGets the name for this object.- Specified by:
getNamein interfaceNamedObject- Overrides:
getNamein classAbstractInterfaceObject- Returns:
-
setRotY
public void setRotY(double r) -
getRotY
public double getRotY() -
setColour
public void setColour(java.awt.Color colour) -
getColour
public java.awt.Color getColour() -
setIsEnabled
public void setIsEnabled(boolean b) -
getIsEnabled
public boolean getIsEnabled() -
getSource
public org.jogamp.java3d.DirectionalLight getSource() -
getAttribute
Description copied from interface:AttributeObjectReturns a specific attribute for this object.- Specified by:
getAttributein interfaceAttributeObject- Returns:
-
getAttributes
Description copied from interface:AttributeObjectReturns the list of current attributes for this object.- Specified by:
getAttributesin interfaceAttributeObject- Returns:
-
getAttributeValue
public java.lang.Object getAttributeValue(java.lang.String name)Description copied from interface:AttributeObjectGets the value of attributename, ornullif it does not exist.- Specified by:
getAttributeValuein interfaceAttributeObject- Parameters:
name- Name of the attribute- Returns:
- the value of attribute
name, ornullif it does not exist
-
setAttribute
public void setAttribute(java.lang.String attrName, java.lang.Object newValue)Description copied from interface:AttributeObjectSets a value for a specific attribute.- Specified by:
setAttributein interfaceAttributeObject
-
setAttributes
Description copied from interface:AttributeObjectSets the list of attributes for this object.- Specified by:
setAttributesin interfaceAttributeObject
-
setTreeNode
Description copied from interface:TreeObjectSets the children for this node'sInterfaceTreeNode.- Specified by:
setTreeNodein interfaceTreeObject- Overrides:
setTreeNodein classAbstractInterfaceObject
-
attributeUpdated
Description copied from interface:AttributeListenerCalled when an Attribute's value has been updated.- Specified by:
attributeUpdatedin interfaceAttributeListener
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObjectReturns theIconassociated with this object.- Specified by:
getObjectIconin interfaceIconObject- Returns:
-