Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## igeo
Class IMap

    java.lang.Object
      igeo.IMap

Direct Known Subclasses:
  IAddMap, IConstantMap, IDoubleMap, IInvertMap, IMaxMap, IMinMap, IMultiplyMap, IScaleMap, ISubMap, ISubtractMap, ISurfaceDensityMap, ISurfaceDepthMap, IUFlipMap, IULinearMap, IUPiecewiseLinearMap, IUSineMap, IUStripeShiftMap, IVFlipMap, IVLinearMap, IVPiecewiseLinearMap, IVSineMap, IVStripeShiftMap

    public class IMap

extends java.lang.Object

A base class of map classes to provide mapping function to set values on a 2D map and extract value out of the map. The value contained on the map is double in the range of 0.0 - 1.0.

Field Summary
`static int` | `defaultDensityHeight`
`static int` | `defaultDensityWidth`
`static double` | `densityMinDelta`
`IDoubleMap` | `uIntegration`
`IDoubleMap` | `vIntegration`

Constructor Summary
`IMap()`

Method Summary
`java.awt.image.BufferedImage` | `createImage(int imgWidth, int imgHeight)`
`void` | `flipU()` to be defined in sub class
`void` | `flipV()` to be defined in sub class
`double` | `get(double u, double v)` A main method to get a value of the map.
`double` | `get(IVec2I v)`
`void` | `initDensityMapU()`
`void` | `initDensityMapU(int width, int height)`
`void` | `initDensityMapV()`
`void` | `initDensityMapV(int width, int height)`
`void` | `matchUDensityWithMap(IMap map, double u, double v)`
`void` | `matchUDensityWithMap(IMap map, double u1, double u2, double v)`
`void` | `matchVDensityWithMap(IMap map, double u, double v)`
`void` | `matchVDensityWithMap(IMap map, double u, double v1, double v2)`
`IVec2` | `project(double u, double v)`
`double` | `projectU(double u, double v)`
`double` | `projectV(double u, double v)`
`void` | `scaleDensityMapU(double factor)`
`void` | `scaleDensityMapV(double factor)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### defaultDensityWidth

    public static final int defaultDensityWidth

See Also:
  Constant Field Values

### defaultDensityHeight

    public static final int defaultDensityHeight

See Also:
  Constant Field Values

### densityMinDelta

    public static final double densityMinDelta

See Also:
  Constant Field Values

### uIntegration

    public IDoubleMap uIntegration

### vIntegration

    public IDoubleMap vIntegration

Constructor Detail

### IMap

    public IMap()

Method Detail

### get

    public double get(double u,
                      double v)

  A main method to get a value of the map. This method should be overwritten by child classes to have preferable behavior returning value of the map ranging 0.0 - 1.0.

  Parameters:
    `u` - u coordinates ranges 0.0 - 1.0
    `v` - v coordinates ranges 0.0 - 1.0
  Returns:
    value of the map.

### get

    public double get(IVec2I v)

### initDensityMapU

    public void initDensityMapU()

### initDensityMapV

    public void initDensityMapV()

### initDensityMapU

    public void initDensityMapU(int width,
                                int height)

### initDensityMapV

    public void initDensityMapV(int width,
                                int height)

### scaleDensityMapU

    public void scaleDensityMapU(double factor)

### scaleDensityMapV

    public void scaleDensityMapV(double factor)

### matchUDensityWithMap

    public void matchUDensityWithMap(IMap map,
                                     double u,
                                     double v)

### matchUDensityWithMap

    public void matchUDensityWithMap(IMap map,
                                     double u1,
                                     double u2,
                                     double v)

### matchVDensityWithMap

    public void matchVDensityWithMap(IMap map,
                                     double u,
                                     double v)

### matchVDensityWithMap

    public void matchVDensityWithMap(IMap map,
                                     double u,
                                     double v1,
                                     double v2)

### createImage

    public java.awt.image.BufferedImage createImage(int imgWidth,
                                                    int imgHeight)

### projectU

    public double projectU(double u,
                           double v)

  Parameters:
    `u` - range 0-1
    `v` - range 0-1

### projectV

    public double projectV(double u,
                           double v)

  Parameters:
    `u` - range 0-1
    `v` - range 0-1

### project

    public IVec2 project(double u,
                         double v)

  Parameters:
    `u` - range 0-1
    `v` - range 0-1

### flipU

    public void flipU()

  to be defined in sub class

### flipV

    public void flipV()

  to be defined in sub class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD