edu.umd.cs.jazz
Class ZLocator
java.lang.Object
|
+--edu.umd.cs.jazz.ZLocator
- Direct Known Subclasses:
- ZBoundsLocator
- public class ZLocator
- extends java.lang.Object
ZLocator is used to locate a point on a scene graph object in the coordinate system of that scene graph object.
- Author:
- Jesse Grosjean
Constructor Summary |
ZLocator(ZSceneGraphObject aSceneGraphObject)
Create a new ZLocator that will locate points on aSceneGraphObject. |
Method Summary |
double |
getNormal()
Return the normal of the location. |
java.awt.geom.Point2D |
getPoint(java.awt.geom.Point2D aPoint)
Get the located point. |
ZSceneGraphObject |
getSceneGraphObject()
Return the scene graph object that the locator is locating points on. |
double |
getX()
Return the x coord of the located point. |
double |
getY()
Return the y coord of the located point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZLocator
public ZLocator(ZSceneGraphObject aSceneGraphObject)
-
Create a new ZLocator that will locate points on aSceneGraphObject.
getX
public double getX()
-
Return the x coord of the located point.
-
getY
public double getY()
-
Return the y coord of the located point.
-
getNormal
public double getNormal()
-
Return the normal of the location.
-
getSceneGraphObject
public ZSceneGraphObject getSceneGraphObject()
-
Return the scene graph object that the locator is locating points on.
-
getPoint
public java.awt.geom.Point2D getPoint(java.awt.geom.Point2D aPoint)
-
Get the located point. The located point will be stored in the aPoint parameter. If that parameter is null a new point will be created and returned with the location.
-
Copyright � 2003 by University of Maryland, College Park, MD 20742, USA All rights reserved.