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 Details

    • light_icon

      protected javax.swing.Icon light_icon
    • source

      public org.jogamp.java3d.DirectionalLight source
    • attributes

      public AttributeList 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: NamedObject
      Sets the name for this object.
      Specified by:
      setName in interface NamedObject
      Overrides:
      setName in class AbstractInterfaceObject
    • getName

      public java.lang.String getName()
      Description copied from interface: NamedObject
      Gets the name for this object.
      Specified by:
      getName in interface NamedObject
      Overrides:
      getName in class AbstractInterfaceObject
      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

      public Attribute<?> getAttribute​(java.lang.String attrName)
      Description copied from interface: AttributeObject
      Returns a specific attribute for this object.
      Specified by:
      getAttribute in interface AttributeObject
      Returns:
    • getAttributes

      public AttributeList getAttributes()
      Description copied from interface: AttributeObject
      Returns the list of current attributes for this object.
      Specified by:
      getAttributes in interface AttributeObject
      Returns:
    • getAttributeValue

      public java.lang.Object getAttributeValue​(java.lang.String name)
      Description copied from interface: AttributeObject
      Gets the value of attribute name, or null if it does not exist.
      Specified by:
      getAttributeValue in interface AttributeObject
      Parameters:
      name - Name of the attribute
      Returns:
      the value of attribute name, or null if it does not exist
    • setAttribute

      public void setAttribute​(java.lang.String attrName, java.lang.Object newValue)
      Description copied from interface: AttributeObject
      Sets a value for a specific attribute.
      Specified by:
      setAttribute in interface AttributeObject
    • setAttributes

      public void setAttributes​(AttributeList thisList)
      Description copied from interface: AttributeObject
      Sets the list of attributes for this object.
      Specified by:
      setAttributes in interface AttributeObject
    • setTreeNode

      public void setTreeNode​(InterfaceTreeNode treeNode)
      Description copied from interface: TreeObject
      Sets the children for this node's InterfaceTreeNode.
      Specified by:
      setTreeNode in interface TreeObject
      Overrides:
      setTreeNode in class AbstractInterfaceObject
    • attributeUpdated

      public void attributeUpdated​(AttributeEvent e)
      Description copied from interface: AttributeListener
      Called when an Attribute's value has been updated.
      Specified by:
      attributeUpdated in interface AttributeListener
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getObjectIcon

      public javax.swing.Icon getObjectIcon()
      Description copied from interface: IconObject
      Returns the Icon associated with this object.
      Specified by:
      getObjectIcon in interface IconObject
      Returns: