jsynoptic.plugins.java3d.tree
Class PrimitiveNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by jsynoptic.plugins.java3d.tree.AbstractNode
          extended by jsynoptic.plugins.java3d.tree.SceneGraphNode
              extended by jsynoptic.plugins.java3d.tree.GroupNode
                  extended by jsynoptic.plugins.java3d.tree.PrimitiveNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode, AddRemoveSceneGraphObject

public class PrimitiveNode
extends GroupNode

A Node for java3d Primitives : Cone, Cylinder, Cube and Sphere

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jsynoptic.plugins.java3d.tree.GroupNode
GroupNode.LoaderHandler
 
Nested classes/interfaces inherited from class jsynoptic.plugins.java3d.tree.SceneGraphNode
SceneGraphNode.CopyAction, SceneGraphNode.CutAction, SceneGraphNode.PasteAction, SceneGraphNode.PropertiesAction, SceneGraphNode.RemoveAction
 
Field Summary
 
Fields inherited from class jsynoptic.plugins.java3d.tree.SceneGraphNode
sharedResources
 
Fields inherited from class jsynoptic.plugins.java3d.tree.AbstractNode
_name
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
PrimitiveNode(Tree tree, java.lang.Object graphObject, boolean getChildren)
           
 
Method Summary
static float[] makeAxis(int n)
          Creates lines and arrows to visualize the axis
 
Methods inherited from class jsynoptic.plugins.java3d.tree.GroupNode
addChild, addSceneGraphObject, getChildrenNodeClass, getSceneGraphChildren, removeChild, removeSceneGraphObject
 
Methods inherited from class jsynoptic.plugins.java3d.tree.SceneGraphNode
addActions, canAddSceneGraphObject, canPaste, cloneNode, copy, cut, getName, paste, remove
 
Methods inherited from class jsynoptic.plugins.java3d.tree.AbstractNode
addResource, addResources, createNode, getAllowsChildren, getChildCount, getDescription, getGraphObject, getIcon, getOwner, getTree, refresh
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrimitiveNode

public PrimitiveNode(Tree tree,
                     java.lang.Object graphObject,
                     boolean getChildren)
Method Detail

makeAxis

public static float[] makeAxis(int n)
Creates lines and arrows to visualize the axis

Returns:
an array of line coordinates for the axis, composed of float numbers in the order (l1p1, l1p2, l2p1, l2p2...) with l and p the line and points, p made of 3 floats x y z