Package mgui.interfaces.shapes
Class ShapeSceneNode
java.lang.Object
org.jogamp.java3d.SceneGraphObject
org.jogamp.java3d.Node
org.jogamp.java3d.Group
org.jogamp.java3d.BranchGroup
mgui.interfaces.shapes.ShapeSceneNode
- All Implemented Interfaces:
ShapeListener
- Direct Known Subclasses:
Shape2DSectionNode
,Shape3DSceneNode
public class ShapeSceneNode extends org.jogamp.java3d.BranchGroup implements ShapeListener
-
Field Summary
Fields Modifier and Type Field Description org.jogamp.java3d.BranchGroup
shapeNode
Fields inherited from class org.jogamp.java3d.BranchGroup
ALLOW_DETACH
Fields inherited from class org.jogamp.java3d.Group
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
Fields inherited from class org.jogamp.java3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
-
Constructor Summary
Constructors Constructor Description ShapeSceneNode()
-
Method Summary
Modifier and Type Method Description void
destroy()
Destroys this listener.org.jogamp.java3d.BranchGroup
getNode()
boolean
isDestroyed()
Returnstrue
if this listener has been destroyed.void
setNode(InterfaceShape thisShape)
void
shapeUpdated(ShapeEvent e)
A shape that this object is listening to has been updated.Methods inherited from class org.jogamp.java3d.BranchGroup
cloneNode, compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, pickClosest
Methods inherited from class org.jogamp.java3d.Group
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
Methods inherited from class org.jogamp.java3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
Methods inherited from class org.jogamp.java3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
shapeNode
public org.jogamp.java3d.BranchGroup shapeNode
-
-
Constructor Details
-
ShapeSceneNode
public ShapeSceneNode()
-
-
Method Details
-
setNode
-
shapeUpdated
Description copied from interface:ShapeListener
A shape that this object is listening to has been updated. The specific type of event is defined by ShapeEvent.EventType.- Specified by:
shapeUpdated
in interfaceShapeListener
-
getNode
public org.jogamp.java3d.BranchGroup getNode() -
destroy
public void destroy()Description copied from interface:ShapeListener
Destroys this listener. Once this is called, ShapeListener.isDestroyed() must returntrue
.- Specified by:
destroy
in interfaceShapeListener
-
isDestroyed
public boolean isDestroyed()Description copied from interface:ShapeListener
Returnstrue
if this listener has been destroyed.- Specified by:
isDestroyed
in interfaceShapeListener
- Returns:
-