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

Class CurveManipulationRendererJ3D

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class CurveManipulationRendererJ3D
    extends DirectManipulationRendererJ3D
    CurveManipulationRendererJ3D is the VisAD class for direct manipulation rendering of curves under Java2D, where curves are represented by UnionSets of Gridded2DSets with manifold dimension = 2
    • Constructor Detail

      • CurveManipulationRendererJ3D

        public CurveManipulationRendererJ3D()
        Construct a DataRenderer that supports direct manipulation of representations of curves by UnionSets of Gridded2DSets with manifold dimension = 2; the Set's domain RealTypes must be mapped to two of (XAxis, YAxis, ZAxis).
      • CurveManipulationRendererJ3D

        public CurveManipulationRendererJ3D(int mmm,
                                            int mmv)
        Construct a DataRenderer that supports direct manipulation of representations of curves by UnionSets of Gridded2DSets with manifold dimension = 2; the Set's domain RealTypes must be mapped to two of (XAxis, YAxis, ZAxis). 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
        mmv - mouse mask to check.
      • CurveManipulationRendererJ3D

        public CurveManipulationRendererJ3D(int mmm,
                                            int mmv,
                                            boolean oo)
        Construct a DataRenderer that supports direct manipulation of representations of curves by UnionSets of Gridded2DSets with manifold dimension = 2; the Set's domain RealTypes must be mapped to two of (XAxis, YAxis, ZAxis). 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
        mmv - mouse mask to check.
        oo - if true, only one curve should exist at any one time.
    • Method Detail

      • makeShadowSetType

        public ShadowType makeShadowSetType(SetType type,
                                            DataDisplayLink link,
                                            ShadowType parent)
                                     throws VisADException,
                                            java.rmi.RemoteException
        Create a ShadowType based on the SetType
        Overrides:
        makeShadowSetType in class RendererJ3D
        Parameters:
        type - SetType of UnionSet.
        link - DataDisplayLink for DataReference
        parent - Parent ShadowType
        Returns:
        constructed ShadowType
        Throws:
        VisADException - problem creating a VisAD object
        java.rmi.RemoteException - problem creating a remote object
      • checkDirect

        public void checkDirect()
                         throws VisADException,
                                java.rmi.RemoteException
        Check whether direct manipulation is possible for this Renderer. Set appropriate error conditions if not possible.
        Overrides:
        checkDirect in class DirectManipulationRendererJ3D
        Throws:
        VisADException - problem accessing information
        java.rmi.RemoteException - problem accessing information for remote objects
      • getWhyNotDirect

        public java.lang.String getWhyNotDirect()
        Get the error messages on why direct manipulation is not possible.
        Overrides:
        getWhyNotDirect in class DataRenderer
        Returns:
        error messages.
      • setSpatialValues

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

        public float checkClose(double[] origin,
                                double[] direction)
        Find minimum distance from ray to spatialValues.
        Overrides:
        checkClose in class DataRenderer
        Parameters:
        origin - origin of ray
        direction - direction of the ray
        Returns:
        miniumum distance from ray to spatial values
      • setGreedy

        public void setGreedy(boolean greedy)
      • release_direct

        public void release_direct()
        Mouse button released, ending direct manipulation. Does nothing now, may need to do this for performance.
        Overrides:
        release_direct in class DataRenderer
      • drag_direct

        public void drag_direct(VisADRay ray,
                                boolean first,
                                int mouseModifiers)
        This method is called when direct manipulation is occuring. This adds points to the Gridded2DSet that comprises the current line being drawn.
        Overrides:
        drag_direct in class DataRenderer
        Parameters:
        ray - ray to dragging point of mouse
        first - true if this is the first point.
        mouseModifiers - modifiers used with mouse click.
      • main

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.