| java.lang.Object org.jdesktop.j3d.utils.view.ViewUtils
ViewUtils | public class ViewUtils extends Object (Code) | | Utility functions for manipulating the View
author: Paul Byrne version: $Id: ViewUtils.java,v 1.1 2007/08/15 16:25:56 paulby Exp $ |
Inner Class :public enum Axis | |
Method Summary | |
public static double | setViewpoint(TransformGroup tg, Bounds sceneBounds, double fieldOfView, Axis axis) Set the transform so that everything inside the Bounds is
visible within the view frustum. |
setViewpoint | public static double setViewpoint(TransformGroup tg, Bounds sceneBounds, double fieldOfView, Axis axis)(Code) | | Set the transform so that everything inside the Bounds is
visible within the view frustum. Return the views distance from
center of the scene after transformation
Parameters: tg - The transform to change Parameters: sceneBounds - The bounds of the scene to fit inside the view frustum Parameters: fieldOfView - The fieldOfView Parameters: axis - The axis along which to view the scene, this must be one ofPOSITIVE_X_AXIS, POSITIVE_Y_AXIS, POSITIVE_Z_AXIS, NEGATIVE_X_AXIS, NEGATIVE_Y_AXIS or NEGATIVE_Z_AXIS The distance the eye is from the center of the scene bounds. |
|
|