public class Pam3DUtils
extends java.lang.Object
Constructor and Description |
---|
Pam3DUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsChild(javax.media.j3d.BranchGroup parent,
javax.media.j3d.BranchGroup child)
Determines whether a child is within a BranchGroup
|
static javax.vecmath.Point3d |
convertto3d(javax.vecmath.Point3f point3f)
Convert a Point3f to a Point3d.
|
static javax.vecmath.Point3f |
convertto3f(javax.vecmath.Point3d point3d)
Convert a Point3d to a Point3f.
|
static java.util.ArrayList<javax.vecmath.Point3d> |
convertToPoint3d(java.util.ArrayList<javax.vecmath.Point3f> point3fs)
Convert a point3d array to a point3f array.
|
static java.util.ArrayList<javax.vecmath.Point3f> |
convertToPoint3f(java.util.ArrayList<javax.vecmath.Point3d> point3d)
Convert a point3d array to a point3f array.
|
static void |
enablePicking(javax.media.j3d.Node node)
Enables branchgroup picking of Shape3D's.
|
static java.awt.GraphicsConfiguration |
getBestConfigurationOnSameDevice(java.awt.Frame frame)
Gets the best graphics conifguration to display on the current device.
|
static void |
setRot(javax.media.j3d.Transform3D t3d,
javax.vecmath.Vector3f direction,
javax.vecmath.Vector3f zAxis)
Rotates an object from zAxis to unit vector direction.
|
public static java.awt.GraphicsConfiguration getBestConfigurationOnSameDevice(java.awt.Frame frame)
frame
- that the Canvas3D will be added to.public static javax.vecmath.Point3f convertto3f(javax.vecmath.Point3d point3d)
point3d
- public static javax.vecmath.Point3d convertto3d(javax.vecmath.Point3f point3f)
point3d
- public static java.util.ArrayList<javax.vecmath.Point3f> convertToPoint3f(java.util.ArrayList<javax.vecmath.Point3d> point3d)
point3d
- public static java.util.ArrayList<javax.vecmath.Point3d> convertToPoint3d(java.util.ArrayList<javax.vecmath.Point3f> point3fs)
point3d
- public static boolean containsChild(javax.media.j3d.BranchGroup parent, javax.media.j3d.BranchGroup child)
parent
- child
- public static void setRot(javax.media.j3d.Transform3D t3d, javax.vecmath.Vector3f direction, javax.vecmath.Vector3f zAxis)
t3d
- direction
- zAxis
- public static void enablePicking(javax.media.j3d.Node node)
node
-