Documentation of 'visad.ShadowType' Java class
ShadowType
visad

Class ShadowType

    • Field Detail

      • NOTHING_MAPPED

        public static final int NOTHING_MAPPED
        possible values for LevelOfDifficulty
        See Also:
        Constant Field Values
      • PROP_IMAGE_BY_REF

        public static final java.lang.String PROP_IMAGE_BY_REF
        Image ByReference flags
        See Also:
        Constant Field Values
      • PROP_CONTOURFILL_SINGLE_VALUE_AS_TEXTURE

        public static final java.lang.String PROP_CONTOURFILL_SINGLE_VALUE_AS_TEXTURE
        Property to create a texture for a single value color filled contour
        See Also:
        Constant Field Values
      • byReference

        public static final boolean byReference
      • yUp

        public static final boolean yUp
      • trajectory1

        public boolean trajectory1
        trajectory flags
      • trajectory2

        public boolean trajectory2
    • Method Detail

      • getLevelOfDifficulty

        public int getLevelOfDifficulty()
      • getIsTerminal

        public boolean getIsTerminal()
      • getIsTextureMap

        public boolean getIsTextureMap()
      • getCurvedTexture

        public boolean getCurvedTexture()
      • getIsTexture3D

        public boolean getIsTexture3D()
      • getIsLinearContour3D

        public boolean getIsLinearContour3D()
      • getRefToComponent

        public int[] getRefToComponent()
      • getComponentIndex

        public int[] getComponentIndex()
      • getAdjustProjectionSeam

        public boolean getAdjustProjectionSeam()
      • getData

        public Data getData()
      • getAdaptedShadowType

        public ShadowType getAdaptedShadowType()
      • getAnyContour

        public boolean getAnyContour()
      • getAnyFlow

        public boolean getAnyFlow()
      • getAnyShape

        public boolean getAnyShape()
      • getAnyText

        public boolean getAnyText()
      • checkIndices

        public int checkIndices(int[] indices,
                                int[] display_indices,
                                int[] value_indices,
                                boolean[] isTransform,
                                int levelOfDifficulty)
                         throws VisADException,
                                java.rmi.RemoteException
        scans ShadowType tree to determine display feasibility and precompute useful information for Data transform; indices & display_indices are counts (at leaves) of numbers of occurrences of RealTypes and DisplayRealTypes; isTransform flags for (Animation, Range, Value) re-transform; levelOfDifficulty passed down and up call chain
        Throws:
        VisADException
        java.rmi.RemoteException
      • getMultipleDisplayScalar

        public boolean getMultipleDisplayScalar()
      • getMultipleSpatialDisplayScalar

        public boolean getMultipleSpatialDisplayScalar()
      • getMappedDisplayScalar

        public boolean getMappedDisplayScalar()
      • getDisplayIndices

        public int[] getDisplayIndices()
      • getValueIndices

        public int[] getValueIndices()
      • getFlowInfo

        public java.util.ArrayList<FlowInfo> getFlowInfo()
      • mapValues

        public static void mapValues(float[][] display_values,
                                     double[][] values,
                                     ShadowRealType[] reals)
                              throws VisADException
        map values to display_values according to ScalarMap-s in reals
        Throws:
        VisADException
      • mapValues

        public static void mapValues(float[][] display_values,
                                     float[][] values,
                                     ShadowRealType[] reals)
                              throws VisADException
        map values into display_values according to ScalarMap-s in reals
        Throws:
        VisADException
      • mapValues

        public static void mapValues(float[][] display_values,
                                     float[][] values,
                                     ShadowRealType[] reals,
                                     boolean copy)
                              throws VisADException
        Map values into display_values according to ScalarMap-s in reals
        Parameters:
        display_values - return display values
        values - data values
        reals - the ShadowRealTypes corresponding to the Scalar in maps
        copy - if false, scale values in place if reals[index] has only one mapping. Use true if values represent a getSamples(false) or getFloats(false)
        Throws:
        VisADException
      • assembleShape

        public VisADGeometryArray[] assembleShape(float[][] display_values,
                                                  int valueArrayLength,
                                                  int[] valueToMap,
                                                  java.util.Vector MapVector,
                                                  int[] valueToScalar,
                                                  DisplayImpl display,
                                                  float[] default_values,
                                                  int[] inherited_values,
                                                  float[][] spatial_values,
                                                  byte[][] color_values,
                                                  boolean[][] range_select,
                                                  int index,
                                                  ShadowType shadow_api)
                                           throws VisADException,
                                                  java.rmi.RemoteException
        collect and transform Shape DisplayRealType values from display_values; offset by spatial_values, colored by color_values and selected by range_select
        Throws:
        VisADException
        java.rmi.RemoteException
      • assembleSpatial

        public Set assembleSpatial(float[][] spatial_values,
                                   float[][] display_values,
                                   int valueArrayLength,
                                   int[] valueToScalar,
                                   DisplayImpl display,
                                   float[] default_values,
                                   int[] inherited_values,
                                   Set domain_set,
                                   boolean allSpatial,
                                   boolean set_for_shape,
                                   int[] spatialDimensions,
                                   boolean[][] range_select,
                                   float[][] flow1_values,
                                   float[][] flow2_values,
                                   float[] flowScale,
                                   boolean[] swap,
                                   DataRenderer renderer,
                                   ShadowType shadow_api)
                            throws VisADException,
                                   java.rmi.RemoteException
        collect and transform spatial DisplayRealType values from display_values; add spatial offset DisplayRealType values; adjust flow1_values and flow2_values for any coordinate transform; if needed, return a spatial Set from spatial_values, with the same topology as domain_set (or an appropriate Irregular topology); domain_set = null and allSpatial = false if not called from ShadowFunctionType
        Throws:
        VisADException
        java.rmi.RemoteException
      • assembleFlow

        public void assembleFlow(float[][] flow1_values,
                                 float[][] flow2_values,
                                 float[] flowScale,
                                 float[] arrowScale,
                                 float[][] display_values,
                                 int valueArrayLength,
                                 int[] valueToScalar,
                                 DisplayImpl display,
                                 float[] default_values,
                                 boolean[][] range_select,
                                 DataRenderer renderer,
                                 ShadowType shadow_api)
                          throws VisADException,
                                 java.rmi.RemoteException
        assemble Flow components; Flow components are 'single', so no compositing is required
        Throws:
        VisADException
        java.rmi.RemoteException
      • adjustFlowToEarth

        public static float[][] adjustFlowToEarth(int which,
                                                  float[][] flow_values,
                                                  float[][] spatial_values,
                                                  float flowScale,
                                                  DataRenderer renderer)
                                           throws VisADException
        Throws:
        VisADException
      • adjustFlowToEarth

        public static float[][] adjustFlowToEarth(int which,
                                                  float[][] flow_values,
                                                  float[][] spatial_values,
                                                  float flowScale,
                                                  DataRenderer renderer,
                                                  boolean force)
                                           throws VisADException
        Throws:
        VisADException
      • adjustFlowToEarth

        public static float[][] adjustFlowToEarth(int which,
                                                  float[][] flow_values,
                                                  float[][] spatial_values,
                                                  float flowScale,
                                                  DataRenderer renderer,
                                                  boolean force,
                                                  boolean isTraj,
                                                  float timeStep)
                                           throws VisADException
        Throws:
        VisADException
      • makeStreamline

        public VisADGeometryArray[] makeStreamline(int which,
                                                   float[][] flow_values,
                                                   float flowScale,
                                                   float[][] spatial_values,
                                                   Set spatial_set,
                                                   int spatialManifoldDimension,
                                                   byte[][] color_values,
                                                   boolean[][] range_select,
                                                   int valueArrayLength,
                                                   int[] valueToMap,
                                                   java.util.Vector MapVector)
                                            throws VisADException
        Throws:
        VisADException
      • makeTrajFlow

        public void makeTrajFlow(int which,
                                 float[][] flow_values,
                                 Data data,
                                 float flowScale,
                                 float[][] spatial_values,
                                 Set spatial_set,
                                 int spatialManifoldDimension,
                                 byte[][] color_values,
                                 boolean[][] range_select,
                                 GraphicsModeControl mode,
                                 float constant_alpha,
                                 float[] constant_color,
                                 int valueArrayLength,
                                 int[] valueToMap,
                                 java.util.Vector MapVector,
                                 java.util.ArrayList flowInfoList)
                          throws VisADException,
                                 java.rmi.RemoteException
        Throws:
        VisADException
        java.rmi.RemoteException
      • makeTrajColor

        public byte[][] makeTrajColor(float[][] rangeValues,
                                      int valueArrayLength,
                                      int[] valueToMap,
                                      java.util.Vector MapVector)
                               throws VisADException,
                                      java.rmi.RemoteException
        Throws:
        VisADException
        java.rmi.RemoteException
      • makeFlow

        public VisADGeometryArray[] makeFlow(int which,
                                             float[][] flow_values,
                                             float flowScale,
                                             float arrowScale,
                                             float[][] spatial_values,
                                             byte[][] color_values,
                                             boolean[][] range_select)
                                      throws VisADException
        which = 0 for Flow1 and which = 1 for Flow2
        Throws:
        VisADException
      • assembleColor

        public byte[][] assembleColor(float[][] display_values,
                                      int valueArrayLength,
                                      int[] valueToScalar,
                                      DisplayImpl display,
                                      float[] default_values,
                                      boolean[][] range_select,
                                      boolean[] single_missing,
                                      ShadowType shadow_api)
                               throws VisADException,
                                      java.rmi.RemoteException
        composite and transform color and Alpha DisplayRealType values from display_values, and return as (Red, Green, Blue, Alpha)
        Throws:
        VisADException
        java.rmi.RemoteException
      • byteToFloat

        public static final float byteToFloat(byte b)
      • floatToByte

        public static final byte floatToByte(float f)
      • getDefaultColorIndex

        public static int getDefaultColorIndex(DisplayImpl display,
                                               int index)
      • assembleSelect

        public boolean[][] assembleSelect(float[][] display_values,
                                          int domain_length,
                                          int valueArrayLength,
                                          int[] valueToScalar,
                                          DisplayImpl display,
                                          ShadowType shadow_api)
                                   throws VisADException
        return a composite of SelectRange DisplayRealType values from display_values, as 0.0 for select and Double.Nan for no select (these values can be added to other DisplayRealType values)
        Throws:
        VisADException
      • terminalTupleOrScalar

        public boolean terminalTupleOrScalar(java.lang.Object group,
                                             float[][] display_values,
                                             java.lang.String text_value,
                                             TextControl text_control,
                                             int valueArrayLength,
                                             int[] valueToScalar,
                                             float[] default_values,
                                             int[] inherited_values,
                                             DataRenderer renderer,
                                             ShadowType shadow_api)
                                      throws VisADException,
                                             java.rmi.RemoteException
        transform data into a (Java3D or Java2D) scene graph; add generated scene graph components as children of group; group is Group (Java3D) or VisADGroup (Java2D); value_array are inherited valueArray values; default_values are defaults for each display.DisplayRealTypeVector; return true if need post-process
        Throws:
        VisADException
        java.rmi.RemoteException
      • makeContour

        public boolean makeContour(int valueArrayLength,
                                   int[] valueToScalar,
                                   float[][] display_values,
                                   int[] inherited_values,
                                   java.util.Vector MapVector,
                                   int[] valueToMap,
                                   int domain_length,
                                   boolean[][] range_select,
                                   int spatialManifoldDimension,
                                   Set spatial_set,
                                   byte[][] color_values,
                                   boolean indexed,
                                   java.lang.Object group,
                                   GraphicsModeControl mode,
                                   boolean[] swap,
                                   float constant_alpha,
                                   float[] constant_color,
                                   ShadowType shadow_api,
                                   ShadowRealTupleType Domain,
                                   ShadowRealType[] DomainReferenceComponents,
                                   Set domain_set,
                                   Unit[] domain_units,
                                   CoordinateSystem dataCoordinateSystem)
                            throws VisADException
        Throws:
        VisADException
      • textureWidth

        public int textureWidth(int data_width)
      • textureHeight

        public int textureHeight(int data_height)
      • textureDepth

        public int textureDepth(int data_depth)
      • adjustZ

        public void adjustZ(float[] coordinates)
      • setTexCoords

        public void setTexCoords(float[] texCoords,
                                 float ratiow,
                                 float ratioh)
      • setTex3DCoords

        public float[] setTex3DCoords(int length,
                                      int axis,
                                      float ratiow,
                                      float ratioh,
                                      float ratiod)
      • setTexStackCoords

        public float[] setTexStackCoords(int length,
                                         int axis,
                                         float ratiow,
                                         float ratioh,
                                         float ratiod)
      • getTextMaps

        public java.util.Vector getTextMaps(int i,
                                            int[] textIndices)
      • makeSwitch

        public java.lang.Object makeSwitch()
      • makeBranch

        public java.lang.Object makeBranch()
      • recurseRange

        public boolean recurseRange(java.lang.Object group,
                                    Data data,
                                    float[] value_array,
                                    float[] default_values,
                                    DataRenderer renderer)
                             throws VisADException,
                                    java.rmi.RemoteException
        Throws:
        VisADException
        java.rmi.RemoteException
      • recurseComponent

        public boolean recurseComponent(int i,
                                        java.lang.Object group,
                                        Data data,
                                        float[] value_array,
                                        float[] default_values,
                                        DataRenderer renderer)
                                 throws VisADException,
                                        java.rmi.RemoteException
        Throws:
        VisADException
        java.rmi.RemoteException
      • wantIndexed

        public boolean wantIndexed()
      • getParentTextControl

        public TextControl getParentTextControl()
      • getParentText

        public java.lang.String getParentText()
      • setText

        public void setText(java.lang.String text,
                            TextControl control)
      • allowCurvedTexture

        public boolean allowCurvedTexture()
      • allowConstantColorSurfaces

        public boolean allowConstantColorSurfaces()
      • allowLinearContour

        public boolean allowLinearContour()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.