|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectastex.Symmetry
astex.Map
public class Map
A class for storing an electron density map.
| Field Summary | |
|---|---|
static int |
ASTEX_ASCII
|
int[] |
axis
|
static int |
CCP4_BINARY
Various definitions of map types. |
int[] |
centerGrid
The center grid point for the current stored map data. |
float[] |
data
|
int[] |
grid
Size of map grid. |
boolean |
headerInitialised
Is header initialised. |
boolean |
initialiseContours
|
static int |
INSIGHT_ASCII
|
static int |
Lines
Types for the display style. |
static int |
MaximumContourLevels
Maximum number of contour levels. |
int[] |
maximumGrid
The maximum grid point for the current stored map data. |
int[] |
minimumGrid
The minimum grid point for the current stored map data. |
int[] |
ngrid
The number of grid points along each axis. |
static int |
O_BINARY
|
Point3d |
origin
The position of the first grid point. |
Point3d |
spacing
The spacing along each axis. |
static int |
Surface
|
static int |
SYBYL_ASCII
|
int |
volumeColor
Volume color. |
double |
volumeMax
Volume max. |
double |
volumeMin
Volume min. |
boolean |
volumeRender
Volume render. |
| Fields inherited from class astex.Symmetry |
|---|
cartesianToFractional, fractionalToCartesian, matricesAssigned, scale, unitCell |
| Method Summary | |
|---|---|
void |
absoluteGridToCartesian(double ix,
double iy,
double iz,
Point3d p)
Convert grid coordiantes to cartesian. |
static int |
convertBigToLittle(int i)
Convert from big to little endian byte ordering. |
static Map |
create()
Public interface to map creation. |
static Map |
createSimpleMap()
Create a simple map for internal use. |
void |
ensureMapCapacity(int dataPoints)
Ensure we have enough room to store the map. |
int |
getContourColor(int i)
Get the specified contour color. |
boolean |
getContourDisplayed(int i)
Get if the specified contour is displayed. |
double |
getContourLevel(int i)
Get the specified contour level. |
int |
getContourStyle(int i)
Get the specified contour color. |
float[] |
getDataArray()
Get the actual data array. |
java.lang.String |
getFile()
Get the filename. |
void |
getMapBoxDimensions(int[] dims)
Return the size of map we have loaded. |
int |
getMapType()
Get the value of mapType. |
java.lang.String |
getName()
Get the map name. |
double |
getRadius()
Get the radius of the current map region. |
int |
getRelativeGridIndex(int gx,
int gy,
int gz)
Calculate the relative grid index. |
double |
getSigma()
Return the sigma value for the map. |
double |
getValueAtRelativeGrid(int gx,
int gy,
int gz)
Get the map value at relative grid point. |
boolean |
hasContoursDisplayed()
|
void |
lowerRelativeGrid(Point3d p,
int[] g)
Find nearest relative grid point to the specified point. |
static void |
main(java.lang.String[] args)
Test program. |
void |
nearestRelativeGrid(Point3d p,
int[] g)
Find nearest relative grid point to the specified point. |
boolean |
needsReading()
Does the map need reading. |
static void |
printArray(java.lang.String name,
double[] array)
Print an array. |
static void |
printArray(java.lang.String name,
int[] array)
Print an array. |
void |
printHeader(java.io.PrintStream printStream)
Print the header for the map. |
void |
read()
Read a map from the specified file object. |
void |
readHeader()
Read a map from the specified file object. |
void |
readRegion()
Read the determined region from the map. |
void |
relativeGridToCartesian(double ix,
double iy,
double iz,
Point3d p)
Convert grid coordiantes to cartesian. |
void |
setCenter(double x,
double y,
double z)
Set the center point of the region we will contour. |
void |
setCenter(Point3d p)
Set the center point of the region we will contour. |
void |
setContourColor(int i,
int color)
Set the specified contour color. |
void |
setContourDisplayed(int i,
boolean displayed)
Set if the specified contour is displayed. |
void |
setContourLevel(int i,
double level)
Set the specified contour level. |
void |
setContourStyle(int i,
int style)
Set the specified contour color. |
void |
setFile(java.lang.String file)
Set the filename. |
void |
setMapType(int v)
Set the value of mapType. |
void |
setName(java.lang.String mapName)
Set the map name. |
void |
setNeedsReading(boolean flag)
Set whether the map needs reading. |
void |
setRadius(double r)
Set the radis of the region we will contour. |
void |
setSigma(double s)
Set the sigma level. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean volumeRender
public int volumeColor
public double volumeMin
public double volumeMax
public static int MaximumContourLevels
public static final int Lines
public static final int Surface
public int[] grid
public boolean headerInitialised
public static final int CCP4_BINARY
public static final int SYBYL_ASCII
public static final int INSIGHT_ASCII
public static final int ASTEX_ASCII
public static final int O_BINARY
public int[] centerGrid
public int[] minimumGrid
public int[] maximumGrid
public int[] axis
public float[] data
public Point3d origin
public Point3d spacing
public int[] ngrid
public boolean initialiseContours
| Method Detail |
|---|
public static Map create()
public static Map createSimpleMap()
public double getSigma()
public void setSigma(double s)
public boolean needsReading()
public void setNeedsReading(boolean flag)
public int getMapType()
public void setMapType(int v)
v - Value to assign to mapType.public void read()
public static int convertBigToLittle(int i)
public void readHeader()
public void printHeader(java.io.PrintStream printStream)
public void setCenter(double x,
double y,
double z)
public void setCenter(Point3d p)
public void setRadius(double r)
public double getRadius()
public void setName(java.lang.String mapName)
public java.lang.String getName()
public void setFile(java.lang.String file)
public java.lang.String getFile()
public void ensureMapCapacity(int dataPoints)
public void readRegion()
public void relativeGridToCartesian(double ix,
double iy,
double iz,
Point3d p)
public double getValueAtRelativeGrid(int gx,
int gy,
int gz)
public int getRelativeGridIndex(int gx,
int gy,
int gz)
public void getMapBoxDimensions(int[] dims)
public float[] getDataArray()
public void absoluteGridToCartesian(double ix,
double iy,
double iz,
Point3d p)
public void nearestRelativeGrid(Point3d p,
int[] g)
public void lowerRelativeGrid(Point3d p,
int[] g)
public static void printArray(java.lang.String name,
int[] array)
public static void printArray(java.lang.String name,
double[] array)
public void setContourLevel(int i,
double level)
public void setContourColor(int i,
int color)
public void setContourStyle(int i,
int style)
public void setContourDisplayed(int i,
boolean displayed)
public double getContourLevel(int i)
public int getContourColor(int i)
public int getContourStyle(int i)
public boolean getContourDisplayed(int i)
public boolean hasContoursDisplayed()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||