Package mgui.interfaces.graphics.util
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 Summary
Fields Modifier and Type Field Description protected float
axes_max_scale
protected float
axes_min_scale
protected org.jogamp.vecmath.Vector2f[]
axis_vectors
protected javax.swing.Icon
icon
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description Axes3D()
Axes3D(InterfaceGraphic3D panel)
-
Method Summary
Modifier and Type Method Description void
addListener(AxesListener listener)
void
attributeUpdated(AttributeEvent e)
Called when an Attribute's value has been updated.float
getArrowSize()
float
getAxesSize()
java.awt.Color
getAxisColourX()
java.awt.Color
getAxisColourY()
java.awt.Color
getAxisColourZ()
java.lang.String
getAxisLabelX()
java.lang.String
getAxisLabelY()
java.lang.String
getAxisLabelZ()
org.jogamp.vecmath.Vector2f
getAxisX()
org.jogamp.vecmath.Vector2f
getAxisY()
org.jogamp.vecmath.Vector2f
getAxisZ()
java.awt.Color
getBorderColour()
java.awt.Color
getLabelColour()
java.awt.Font
getLabelFont()
java.lang.String
getName()
Gets the name for this object.javax.swing.Icon
getObjectIcon()
Returns theIcon
associated with this object.org.jogamp.java3d.BranchGroup
getScene3DNode()
boolean
getShowBorder()
boolean
getShowLabels()
java.lang.String
getTreeLabel()
Returns the label text to appear in a tree node.boolean
isVisible()
void
removeListener(AxesListener listener)
void
render(org.jogamp.java3d.Canvas3D canvas)
void
setAxesSize(float s)
void
setFromCamera(Camera3D camera)
protected void
setIcon()
void
setPanel(InterfaceGraphic3D panel)
void
setTreeNode(InterfaceTreeNode treeNode)
Sets the children for this node'sInterfaceTreeNode
.void
setVisible(boolean b)
void
updateAxesNode()
void
updateAxesNode(org.jogamp.vecmath.Vector2f scales)
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, isDestroyed, issueTreeNode, setName, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
Axes3D
public Axes3D() -
Axes3D
-
-
Method Details
-
addListener
-
removeListener
-
setPanel
-
getAxesSize
public float getAxesSize() -
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean b) -
setAxesSize
public void setAxesSize(float s) -
attributeUpdated
Description copied from interface:AttributeListener
Called when an Attribute's value has been updated.- Specified by:
attributeUpdated
in interfaceAttributeListener
-
getShowBorder
public boolean getShowBorder() -
getShowLabels
public boolean getShowLabels() -
getBorderColour
public java.awt.Color getBorderColour() -
setFromCamera
-
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 interfaceNamedObject
- Overrides:
getName
in classAbstractInterfaceObject
- 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
Description copied from interface:TreeObject
Sets the children for this node'sInterfaceTreeNode
.- Specified by:
setTreeNode
in interfaceTreeObject
- Overrides:
setTreeNode
in classAbstractInterfaceObject
-
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 interfaceTreeObject
- Overrides:
getTreeLabel
in classAbstractInterfaceObject
- Returns:
-
setIcon
protected void setIcon() -
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObject
Returns theIcon
associated with this object.- Specified by:
getObjectIcon
in interfaceIconObject
- Returns:
-