Class LightNode

All Implemented Interfaces:
HasLocalTransform, CloneableSmartAsset, Collidable, Savable, JmeCloneable, Cloneable

@Deprecated public class LightNode extends Node
Deprecated.
Use a LightControl attached to a Node directly.
LightNode is used to link together a Light object with a Node object.
  • Constructor Details

    • LightNode

      protected LightNode()
      Deprecated.
      Serialization only. Do not use.
    • LightNode

      public LightNode(String name, Light light)
      Deprecated.
    • LightNode

      public LightNode(String name, LightControl control)
      Deprecated.
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Deprecated.
      Enable or disable the LightNode functionality.
      Parameters:
      enabled - If false, the functionality of LightNode will be disabled.
    • isEnabled

      public boolean isEnabled()
      Deprecated.
    • setControlDir

      public void setControlDir(LightControl.ControlDirection controlDir)
      Deprecated.
    • setLight

      public void setLight(Light light)
      Deprecated.
    • getControlDir

      public LightControl.ControlDirection getControlDir()
      Deprecated.
    • getLight

      public Light getLight()
      Deprecated.
    • cloneFields

      public void cloneFields(Cloner cloner, Object original)
      Deprecated.
      Called internally by com.jme3.util.clone.Cloner. Do not call directly.
      Specified by:
      cloneFields in interface JmeCloneable
      Overrides:
      cloneFields in class Node
      Parameters:
      cloner - The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.
      original - The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.
    • read

      public void read(JmeImporter im) throws IOException
      Deprecated.
      Specified by:
      read in interface Savable
      Overrides:
      read in class Node
      Throws:
      IOException
    • write

      public void write(JmeExporter ex) throws IOException
      Deprecated.
      Specified by:
      write in interface Savable
      Overrides:
      write in class Node
      Throws:
      IOException