Class CameraNode

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

public class CameraNode extends Node
CameraNode simply uses CameraControl to implement linking of camera and node data.
  • Constructor Details

    • CameraNode

      protected CameraNode()
      Serialization only. Do not use.
    • CameraNode

      public CameraNode(String name, Camera camera)
    • CameraNode

      public CameraNode(String name, CameraControl control)
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • isEnabled

      public boolean isEnabled()
    • setControlDir

      public void setControlDir(CameraControl.ControlDirection controlDir)
    • setCamera

      public void setCamera(Camera camera)
    • getControlDir

      public CameraControl.ControlDirection getControlDir()
    • getCamera

      public Camera getCamera()
    • cloneFields

      public void cloneFields(Cloner cloner, Object original)
      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
      Specified by:
      read in interface Savable
      Overrides:
      read in class Node
      Throws:
      IOException
    • write

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