Documentation of 'visad.java3d.ProjectionControlJ3D' Java class
ProjectionControlJ3D
visad.java3d

Class ProjectionControlJ3D

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class ProjectionControlJ3D
    extends ProjectionControl
    ProjectionControlJ3D is the VisAD class for controlling the Projection from 3-D to 2-D. It manipulates a TransformGroup node in the scene graph.

    See Also:
    Serialized Form
    • Field Detail

      • X_PLUS

        public static final int X_PLUS
        View of the postive X face of the display cube
        See Also:
        Constant Field Values
      • X_MINUS

        public static final int X_MINUS
        View of the negative X face of the display cube
        See Also:
        Constant Field Values
      • Y_PLUS

        public static final int Y_PLUS
        View of the postive Y face of the display cube
        See Also:
        Constant Field Values
      • Y_MINUS

        public static final int Y_MINUS
        View of the negative Y face of the display cube
        See Also:
        Constant Field Values
      • Z_PLUS

        public static final int Z_PLUS
        View of the postive Z face of the display cube
        See Also:
        Constant Field Values
      • Z_MINUS

        public static final int Z_MINUS
        View of the negative Z face of the display cube
        See Also:
        Constant Field Values
    • Method Detail

      • setMatrix

        public void setMatrix(double[] m)
                       throws VisADException,
                              java.rmi.RemoteException
        Set the projection matrix.
        Overrides:
        setMatrix in class ProjectionControl
        Parameters:
        m - new projection matrix
        Throws:
        VisADException - VisAD error
        java.rmi.RemoteException - remote error
      • setAspect

        public void setAspect(double[] aspect)
                       throws VisADException,
                              java.rmi.RemoteException
        Set the aspect for the axes. Default upon initialization is 1.0, 1.0, 1.0. Invokes saveProjection to set this as the new default.
        Specified by:
        setAspect in class ProjectionControl
        Parameters:
        aspect - ratios (dimension 3) for the X, Y, and Z axes
        Throws:
        VisADException - aspect is null or wrong dimension or other error
        java.rmi.RemoteException - remote error
        See Also:
        ProjectionControl.saveProjection()
      • addPair

        public void addPair(javax.media.j3d.Switch sw,
                            DataRenderer re)
      • setOrthoView

        public void setOrthoView(int view)
                          throws VisADException,
                                 java.rmi.RemoteException
        Set the projection so the requested view is displayed.
        Parameters:
        view - one of the static view fields (X_PLUS, X_MINUS, etc). This will set the view so the selected face is orthogonal to the display.
        Throws:
        VisADException - VisAD failure.
        java.rmi.RemoteException - Java RMI failure.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.