Documentation of 'jvx.imageDisplay.PiImageSource' Java class
PiImageSource ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.imageDisplay

Class PiImageSource

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf


    public abstract class PiImageSource
    extends PsObject
    Abstract class for images computed from a function over the xy-plane. The image should be considered as lying above a rectangular region of the xy-plane. The pixel images are assigned by subclasses based on the function values.
    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    09.06.13, 1.50 revised (kp) Code completed.
    24.03.11, 1.00 created (kp)
    • Constructor Detail

      • PiImageSource

        public PiImageSource()
        Constructor.
    • Method Detail

      • init

        public void init()
        Initialization.
        Overrides:
        init in class PsObject
      • getImage

        public java.awt.Image getImage()
        Get image of this object, will automatically be updated whenever computeColors() is called.
      • createImage

        public java.awt.Image createImage(java.awt.Component comp,
                                          int width,
                                          int height)
        Set size of image and, if changed, create an new image.
      • compute

        public abstract void compute()
        Compute an image in the complex plane and update the corresponding images.
      • computeColors

        public void computeColors()
        Compute colors based on a previously computed function values.
      • getImagePosition

        public int getImagePosition(double u,
                                    double v)
        Converts a point (u,v) in the plane to its position in the image.
        Parameters:
        u - real value of complex position
        v - imaginary value of complex position
        Returns:
        index in the pixel array
      • getDomainPosition

        public PdVector getDomainPosition(java.awt.Point loc)
        Converts a point (u,v) in the complex plane to its position in the image.
        Parameters:
        loc - Integer location in image
        Returns:
        2d double coordinates of location in domain of image.
      • getDomainBounds

        public PdVector getDomainBounds()
        Set the domain of the image in the Euclidean plane.

        Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.

      • setDomainBounds

        public void setDomainBounds(PdVector bounds)
        Set the domain of the image in the Euclidean plane.

        Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.

      • setDomainBounds

        public void setDomainBounds(double[] bounds)
        Set the domain of the image in the Euclidean plane.

        Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.

      • setDomainBounds

        public void setDomainBounds(double xMin,
                                    double yMin,
                                    double xMax,
                                    double yMax)
        Set the domain of the image in the Euclidean plane.

        Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.

      • getBlockSize

        public int getBlockSize()
        Get block size of image which determines a square block of equally rendered pixels. Block size 1 means every pixel is computed (default), which larger values will lead to pixelization effects while speeding up calculations.
      • setBlockSize

        public void setBlockSize(int blockSize)
        Set block size of image which determines a square block of equally rendered pixels. Block size 1 means every pixel is computed (default), which larger values will lead to pixelization effects while speeding up calculations.
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

You see the box below because you did not login.