Documentation of 'visad.bom.PickManipulationRendererJ3D' Java class
PickManipulationRendererJ3D
visad.bom

Class PickManipulationRendererJ3D

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class PickManipulationRendererJ3D
    extends DirectManipulationRendererJ3D
    PickManipulationRendererJ3D is the VisAD class for picking data in 3D.
    • Constructor Detail

      • PickManipulationRendererJ3D

        public PickManipulationRendererJ3D()
        Default constructor
      • PickManipulationRendererJ3D

        public PickManipulationRendererJ3D(int mmm,
                                           int mmv)
        Construct a new PickManipulationRenderer using the mouseModifiers supplied. mmm and mmv determine whehter SHIFT or CTRL keys are required - This is needed since this is a greedy DirectManipulationRenderer that will grab any right mouse click (that intersects its 2-D sub-manifold).
        Parameters:
        mmm - mouse modifiers mask.
        mmv - mouse modifiers value.
    • Method Detail

      • getWhyNotDirect

        public java.lang.String getWhyNotDirect()
        If direct manipulation is not possible, get the error message explaining why.
        Overrides:
        getWhyNotDirect in class DataRenderer
        Returns:
        error message. Will be null if no errors.
      • setSpatialValues

        public void setSpatialValues(float[][] spatial_values)
        Set spatialValues from ShadowType.doTransform
        Overrides:
        setSpatialValues in class DataRenderer
        Parameters:
        spatial_values - X, Y, Z values
      • checkClose

        public float checkClose(double[] origin,
                                double[] direction)
        Check if ray intersects sub-manifold.
        Overrides:
        checkClose in class DataRenderer
        Parameters:
        origin - x,y,z values of the ray
        direction - x,y,z values of the ray?
        Returns:
        distance from the spatial values.
      • getCloseIndex

        public int getCloseIndex()
        Return the index of the closes point.
        Returns:
        index of closest point
      • drag_direct

        public void drag_direct(VisADRay ray,
                                boolean first,
                                int mouseModifiers)
        Actual workhorse method of manipulation renderer. It's what gets called when the click is done.
        Overrides:
        drag_direct in class DataRenderer
        Parameters:
        ray - ray of point where click is.
        first - if this is the first time.
        mouseModifiers - modifiers used with the mouse.
      • main

        public static void main(java.lang.String[] args)
                         throws VisADException,
                                java.rmi.RemoteException
        test PickManipulationRendererJ3D
        Throws:
        VisADException
        java.rmi.RemoteException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.