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

Class RubberBandLineRendererJ3D

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class RubberBandLineRendererJ3D
    extends DirectManipulationRendererJ3D
    RubberBandLineRendererJ3D is the VisAD class for direct manipulation of rubber band lines
    • Constructor Detail

      • RubberBandLineRendererJ3D

        public RubberBandLineRendererJ3D(RealType xarg,
                                         RealType yarg)
        this DirectManipulationRenderer is quite different - it does not render its data, but only place values into its DataReference on right mouse button release; it uses xarg and yarg to determine spatial ScalarMaps
      • RubberBandLineRendererJ3D

        public RubberBandLineRendererJ3D(RealType xarg,
                                         RealType yarg,
                                         int mmm,
                                         int mmv)
        xarg and yarg determine spatial ScalarMaps; 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)
    • Method Detail

      • checkDirect

        public void checkDirect()
                         throws VisADException,
                                java.rmi.RemoteException
        Description copied from class: DataRenderer
        set isDirectManipulation = true if this DataRenderer supports direct manipulation for the MathType of its linked Data, and for its ScalarMaps; intended to be over-ridden by extensions of DataRenderer
        Overrides:
        checkDirect in class DirectManipulationRendererJ3D
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • getWhyNotDirect

        public java.lang.String getWhyNotDirect()
        Overrides:
        getWhyNotDirect in class DataRenderer
        Returns:
        String with reason MathType and ScalarMaps do not qualify for direct manipulation
      • addPoint

        public void addPoint(float[] x)
                      throws VisADException
        Description copied from class: DataRenderer
        add point for temporary rendering; intended to be over-ridden by graphics-API-specific extensions of DataRenderer
        Overrides:
        addPoint in class DirectManipulationRendererJ3D
        Parameters:
        x - 3-D graphics coordinates of point to render
        Throws:
        VisADException - a VisAD error occurred
      • setSpatialValues

        public void setSpatialValues(float[][] spatial_values)
        set spatialValues from ShadowType.doTransform
        Overrides:
        setSpatialValues in class DataRenderer
        Parameters:
        spatial_values - float[3][number_of_points] of 3-D locations of depiction points
      • checkClose

        public float checkClose(double[] origin,
                                double[] direction)
        check if ray intersects sub-manifold
        Overrides:
        checkClose in class DataRenderer
        Parameters:
        origin - 3-D origin of ray
        direction - 3-D direction of ray
        Returns:
        minimum distance of ray to any point in spatialValues (spatial values for Data depiction)
      • release_direct

        public void release_direct()
        mouse button released, ending direct manipulation
        Overrides:
        release_direct in class DataRenderer
      • stop_direct

        public void stop_direct()
        Description copied from class: DataRenderer
        discontinue manipulating Data values for current mouse drag; (this only applies to the current mouse drag and is not a general disable)
        Overrides:
        stop_direct in class DataRenderer
      • drag_direct

        public void drag_direct(VisADRay ray,
                                boolean first,
                                int mouseModifiers)
        Description copied from class: DataRenderer
        modify Data values based on direct manipulation mouse actions
        Overrides:
        drag_direct in class DataRenderer
        Parameters:
        ray - 3-D graphics coordinates of ray corresponding to mouse screen location
        first - flag if this is first call (for MouseEvent.MOUSE_PRESSED, not for MouseEvent.MOUSE_DRAGGED)
        mouseModifiers - value of InputEvent.getModifiers() from most recent direct manipulation mouse click
      • main

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.