Class Axes3D

java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.graphics.util.Axes3D
All Implemented Interfaces:
AttributeListener, InterfaceObject, NamedObject, TreeObject, CleanableObject, IconObject

public class Axes3D
extends AbstractInterfaceObject
implements AttributeListener, IconObject
Renders 3D axes on a 3D window.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

    • icon

      protected javax.swing.Icon icon
    • axes_min_scale

      protected float axes_min_scale
    • axes_max_scale

      protected float axes_max_scale
    • axis_vectors

      protected org.jogamp.vecmath.Vector2f[] axis_vectors
  • Constructor Details

  • Method Details

    • addListener

      public void addListener​(AxesListener listener)
    • removeListener

      public void removeListener​(AxesListener listener)
    • setPanel

      public void setPanel​(InterfaceGraphic3D panel)
    • getAxesSize

      public float getAxesSize()
    • isVisible

      public boolean isVisible()
    • setVisible

      public void setVisible​(boolean b)
    • setAxesSize

      public void setAxesSize​(float s)
    • 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
    • getShowBorder

      public boolean getShowBorder()
    • getShowLabels

      public boolean getShowLabels()
    • getBorderColour

      public java.awt.Color getBorderColour()
    • setFromCamera

      public void setFromCamera​(Camera3D camera)
    • render

      public void render​(org.jogamp.java3d.Canvas3D canvas)
    • getAxisX

      public org.jogamp.vecmath.Vector2f getAxisX()
    • getAxisY

      public org.jogamp.vecmath.Vector2f getAxisY()
    • getAxisZ

      public org.jogamp.vecmath.Vector2f getAxisZ()
    • getAxisColourX

      public java.awt.Color getAxisColourX()
    • getAxisColourY

      public java.awt.Color getAxisColourY()
    • getAxisColourZ

      public java.awt.Color getAxisColourZ()
    • getAxisLabelX

      public java.lang.String getAxisLabelX()
    • getAxisLabelY

      public java.lang.String getAxisLabelY()
    • getAxisLabelZ

      public java.lang.String getAxisLabelZ()
    • getArrowSize

      public float getArrowSize()
    • updateAxesNode

      public void updateAxesNode()
    • 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:
    • updateAxesNode

      public void updateAxesNode​(org.jogamp.vecmath.Vector2f scales)
    • getScene3DNode

      public org.jogamp.java3d.BranchGroup getScene3DNode()
    • getLabelFont

      public java.awt.Font getLabelFont()
    • getLabelColour

      public java.awt.Color getLabelColour()
    • 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
    • getTreeLabel

      public java.lang.String getTreeLabel()
      Description copied from interface: TreeObject
      Returns the label text to appear in a tree node.
      Specified by:
      getTreeLabel in interface TreeObject
      Overrides:
      getTreeLabel in class AbstractInterfaceObject
      Returns:
    • setIcon

      protected void setIcon()
    • 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: