类 WaterFilter

    • 构造器详细资料

      • WaterFilter

        public WaterFilter()
    • 方法详细资料

      • setWavelength

        public void setWavelength​(float wavelength)
        Set the wavelength of the ripples.
        参数:
        wavelength - the wavelength
        另请参阅:
        getWavelength()
      • getWavelength

        public float getWavelength()
        Get the wavelength of the ripples.
        返回:
        the wavelength
        另请参阅:
        setWavelength(float)
      • setAmplitude

        public void setAmplitude​(float amplitude)
        Set the amplitude of the ripples.
        参数:
        amplitude - the amplitude
        另请参阅:
        getAmplitude()
      • getAmplitude

        public float getAmplitude()
        Get the amplitude of the ripples.
        返回:
        the amplitude
        另请参阅:
        setAmplitude(float)
      • setPhase

        public void setPhase​(float phase)
        Set the phase of the ripples.
        参数:
        phase - the phase
        另请参阅:
        getPhase()
      • getPhase

        public float getPhase()
        Get the phase of the ripples.
        返回:
        the phase
        另请参阅:
        setPhase(float)
      • setCentreX

        public void setCentreX​(float centreX)
        Set the centre of the effect in the X direction as a proportion of the image size.
        参数:
        centreX - the center
        另请参阅:
        getCentreX()
      • getCentreX

        public float getCentreX()
        Get the centre of the effect in the X direction as a proportion of the image size.
        返回:
        the center
        另请参阅:
        setCentreX(float)
      • setCentreY

        public void setCentreY​(float centreY)
        Set the centre of the effect in the Y direction as a proportion of the image size.
        参数:
        centreY - the center
        另请参阅:
        getCentreY()
      • getCentreY

        public float getCentreY()
        Get the centre of the effect in the Y direction as a proportion of the image size.
        返回:
        the center
        另请参阅:
        setCentreY(float)
      • setCentre

        public void setCentre​(Point2D centre)
        Set the centre of the effect as a proportion of the image size.
        参数:
        centre - the center
        另请参阅:
        getCentre()
      • setRadius

        public void setRadius​(float radius)
        Set the radius of the effect.
        参数:
        radius - the radius min-value 0
        另请参阅:
        getRadius()
      • getRadius

        public float getRadius()
        Get the radius of the effect.
        返回:
        the radius
        另请参阅:
        setRadius(float)
      • transformInverse

        protected void transformInverse​(int x,
                                        int y,
                                        float[] out)
        从类复制的说明: TransformFilter
        Inverse transform a point. This method needs to be overriden by all subclasses.
        指定者:
        transformInverse 在类中 TransformFilter
        参数:
        x - the X position of the pixel in the output image
        y - the Y position of the pixel in the output image
        out - the position of the pixel in the input image