|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.umd.cs.jazz.util.ZSceneGraphPath
ZSceneGraphPath represents a unique path in a scene graph from a top-level camera to a terminal node. The class also encapsulates a transform, indicating the composited transform from the top-level camera to the leaf, possibly going through zero or more internal cameras. ZSceneGraphPath objects are generated by the Jazz pick methods.
ZDrawingSurface.pick(int, int), Serialized Form| Constructor Summary | |
ZSceneGraphPath()
|
|
| Method Summary | |
ZCamera |
getCamera()
Returns the nearest ZCamera to the picked object. |
ZNode |
getNode()
Returns the nearest ZNode to the picked object. |
int |
getNumParents()
Returns the number of internal ZSceneGraphObjects between the root and the terminal object. |
ZSceneGraphObject |
getObject()
Returns the terminal object in the path. |
ZSceneGraphObject |
getParent(int i)
Returns the i'th scene graph object between the root and the terminal object. |
ZRoot |
getRoot()
Returns the root node for this path. |
ZCamera |
getTopCamera()
Returns the top-level camera in the path. |
ZNode |
getTopCameraNode()
Returns the node associated with the top-level camera in the path. |
java.awt.geom.AffineTransform |
getTransform()
Returns the transform for this path. |
void |
pop(ZSceneGraphObject sgo)
Removes a node (and any nodes after it) from the list of parent nodes. |
void |
push(ZSceneGraphObject sgo)
Adds a node to the end of the list of parent nodes. |
void |
screenToGlobal(java.awt.geom.Point2D pt)
Converts the specified point from screen coordinates to global coordinates through the top-level camera of this path. |
void |
screenToGlobal(java.awt.geom.Rectangle2D rect)
Converts the specified rectangle from screen coordinates to global coordinates through the top-level camera of this path. |
void |
screenToLocal(java.awt.geom.Point2D pt)
Converts the specified point from screen coordinates to the local coordinate system of the terminal scene graph object in this path. |
void |
screenToLocal(java.awt.geom.Rectangle2D rect)
Converts the specified rectangle from screen coordinates to the local coordinate system of the terminal scene graph object in this path. |
void |
setObject(ZSceneGraphObject object)
Sets the terminal object in the path. |
void |
setRoot(ZRoot root)
Sets the root node for this path. |
void |
setTopCamera(ZCamera camera)
Sets the top-level camera in the path. |
void |
setTopCameraNode(ZNode node)
Sets the node associated with the top-level camera in the path. |
void |
setTransform(java.awt.geom.AffineTransform tm)
Sets the transform for this path. |
java.lang.String |
toString()
Returns a string description of this path useful for debugging. |
void |
trimToSize()
Trims the capacity of the array that stores the parents list points to the actual number of points. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public ZSceneGraphPath()
| Method Detail |
public ZSceneGraphObject getObject()
public void setObject(ZSceneGraphObject object)
public ZNode getTopCameraNode()
public void setTopCameraNode(ZNode node)
public ZCamera getTopCamera()
public void setTopCamera(ZCamera camera)
public ZNode getNode()
public ZCamera getCamera()
public ZRoot getRoot()
public void setRoot(ZRoot root)
public java.awt.geom.AffineTransform getTransform()
public void setTransform(java.awt.geom.AffineTransform tm)
public void screenToGlobal(java.awt.geom.Point2D pt)
pt - The pt to be transformedpublic void screenToGlobal(java.awt.geom.Rectangle2D rect)
rect - The rect to be transformedpublic void screenToLocal(java.awt.geom.Point2D pt)
pt - The pt to be transformedpublic void screenToLocal(java.awt.geom.Rectangle2D rect)
rect - The rect to be transformedpublic int getNumParents()
public ZSceneGraphObject getParent(int i)
i - The index of the path element to returnpublic void push(ZSceneGraphObject sgo)
sgo - The scene graph object to be added to the pathpublic void pop(ZSceneGraphObject sgo)
sgo - The scene graph object to be removed from the pathpublic void trimToSize()
public java.lang.String toString()
|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||