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

Class TextureFillRendererJ3D

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class TextureFillRendererJ3D
    extends DefaultRendererJ3D
    TextureFillRendererJ3D is the VisAD class for rendering Sets (usually Irregular2DSets) filled with a cross hatch pattern via texture mapping
    • Constructor Detail

      • TextureFillRendererJ3D

        public TextureFillRendererJ3D()
    • Method Detail

      • setScale

        public void setScale(float s)
        texture pattern will repreat 2 * s times across box
      • getScale

        public float getScale()
      • setTexture

        public void setTexture(int w,
                               int h,
                               int[] t)
                        throws VisADException
        define texture pattern as a w * h rectangle of ints (RGB values); note w and h must be powers of 2, and t.length must be w * h
        Throws:
        VisADException
      • getTextureWidth

        public int getTextureWidth()
      • getTextureHeight

        public int getTextureHeight()
      • getTexture

        public int[] getTexture()
      • setSmooth

        public void setSmooth(boolean s)
        set s = true to smooth texture
      • getSmooth

        public boolean getSmooth()
      • isSetType

        public static boolean isSetType(MathType type)
        determine whether the given MathType is usable with TextureFillRendererJ3D
      • isRendererUsable

        public static boolean isRendererUsable(MathType type,
                                               ScalarMap[] maps)
                                        throws VisADException
        determine whether the given MathType and collection of ScalarMaps meets the criteria to use TextureFillRendererJ3D. Throw a VisADException if ImageRenderer cannot be used, otherwise return true.
        Throws:
        VisADException
      • makeShadowSetType

        public ShadowType makeShadowSetType(SetType type,
                                            DataDisplayLink link,
                                            ShadowType parent)
                                     throws VisADException,
                                            java.rmi.RemoteException
        Description copied from class: DataRenderer
        factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowSetType; ShadowType trees are constructed that 'shadow' the MathType trees of Data to be depicted, via recursive calls to buildShadowType() methods of MathType sub-classes, to DataRenderer.makeShadow*Type() methods, to Shadow*Type constructors, then back to buildShadowType() methods; the recursive call chain is initiated by DataDisplayLink.prepareData() calls to buildShadowType() methods of MathType sub-classes;
        Overrides:
        makeShadowSetType in class RendererJ3D
        Parameters:
        type - FunctionType that returned ShadowType will shadow
        link - DataDisplayLink linking Data to be depicted
        parent - parent in ShadowType tree structure
        Returns:
        constructed ShadowType
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class DefaultRendererJ3D
        Returns:
        a copy of this DataRenderer
      • main

        public static void main(java.lang.String[] args)
                         throws VisADException,
                                java.rmi.RemoteException,
                                java.io.IOException
        run 'java visad.bom.TextureFillRendererJ3D smooth'
        Throws:
        VisADException
        java.rmi.RemoteException
        java.io.IOException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.