org.jmol.util
Class Bmp
java.lang.Object
org.jmol.util.Bmp
public final class Bmp
- extends java.lang.Object
The Bmp class provides support for BitMap Pool objects
and static support for BitMaP operations on int[]
Constructor Summary |
Bmp()
|
Method Summary |
static int[] |
allocateBitmap(int count)
|
static int[] |
allocateSetAllBits(int count)
|
static int[] |
allocMinimalCopy(int[] bitmap)
|
static boolean |
and(int[] target,
int[] other)
|
static boolean |
and(int[] target,
int[] bmpA,
int[] bmpB)
|
static void |
clearBit(int[] bitmap,
int i)
|
static void |
clearBitmap(int[] bitmap)
|
static int |
countBits(int map)
|
static int |
countBits(int[] bitmap)
|
static boolean |
getBit(int[] bitmap,
int i)
|
static int |
getMaxMappedBit(int[] bitmap)
|
static int |
getMinMappedBit(int[] bitmap)
|
static int[] |
growBitmap(int[] bitmap,
int count)
|
static int |
nextSetBit(int[] bitmap,
int iStart)
|
static void |
orInto(int[] bmDestination,
int[] bmSource)
|
static void |
setAllBits(int[] bitmap,
int count)
|
static void |
setBit(int[] bitmap,
int i)
|
static int[] |
setBitGrow(int[] bitmap,
int i)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Bmp
public Bmp()
allocateBitmap
public static final int[] allocateBitmap(int count)
allocateSetAllBits
public static final int[] allocateSetAllBits(int count)
growBitmap
public static final int[] growBitmap(int[] bitmap,
int count)
setBit
public static final void setBit(int[] bitmap,
int i)
setBitGrow
public static final int[] setBitGrow(int[] bitmap,
int i)
clearBit
public static final void clearBit(int[] bitmap,
int i)
getBit
public static final boolean getBit(int[] bitmap,
int i)
setAllBits
public static final void setAllBits(int[] bitmap,
int count)
orInto
public static final void orInto(int[] bmDestination,
int[] bmSource)
allocMinimalCopy
public static final int[] allocMinimalCopy(int[] bitmap)
countBits
public static final int countBits(int map)
countBits
public static final int countBits(int[] bitmap)
clearBitmap
public static final void clearBitmap(int[] bitmap)
getMaxMappedBit
public static final int getMaxMappedBit(int[] bitmap)
getMinMappedBit
public static final int getMinMappedBit(int[] bitmap)
nextSetBit
public static final int nextSetBit(int[] bitmap,
int iStart)
and
public static final boolean and(int[] target,
int[] other)
and
public static final boolean and(int[] target,
int[] bmpA,
int[] bmpB)