org.jmol.shape
Class Shape
public abstract
class
Shape
extends Object
After code reorganization of 11/2006 (BH) Shape now encompasses:
AtomShape
|
Balls, Dots, Halos, Labels, Polyhedra, Stars, Vectors
|
GeoSurface
Dipoles, Measures
FontLineShape
|
Axes, Bbcage, Frank, Uccage
MeshCollection
| |
Draw MeshFileCollection (adds parser code)
| |
Pmesh IsosurfaceMeshCollection (adds JVXL code)
|
Isosurface
|________ LcaoCartoon, MolecularOrbital
BioShapeCollection
|
Backbone, Cartoon, MeshRibbon, Ribbons, Rockets, Strands, Trace
Sticks
|
Hsticks, Sssticks
TextShape
|
Echo, Hover
Method Summary |
static void | appendCmd(StringBuffer s, String cmd) |
void | checkBoundsMinMax(Point3f pointMin, Point3f pointMax) |
Point3f | checkObjectClicked(int x, int y, int modifiers, BitSet bsVisible) |
boolean | checkObjectDragged(int prevX, int prevY, int deltaX, int deltaY, int modifiers, BitSet bsVisible) |
boolean | checkObjectHovered(int x, int y, BitSet bsVisible) |
String | encodeColor(short colix) |
String | encodeTransColor(byte pid, short colix, boolean translucentAllowed) |
void | findNearestAtomIndex(int xMouse, int yMouse, Atom[] closest) |
static short | getColix(short[] colixes, int i, Atom atom) |
String | getColorCommand(String type, short colix) |
String | getColorCommand(String type, byte pid, short colix) |
static String | getFontCommand(String type, Font3D font) |
int | getIndexFromName(String thisID) |
Object | getProperty(String property, int index) |
static String | getShapeCommands(Hashtable htDefine, Hashtable htMore, int atomCount) |
static String | getShapeCommands(Hashtable htDefine, Hashtable htMore, int count, String selectCmd) |
Vector | getShapeDetail() |
String | getShapeState() |
static String | getTranslucentLabel(short colix) |
Viewer | getViewer() |
void | initializeShape(Viewer viewer, Graphics3D g3d, ModelSet modelSet, int shapeID) |
protected void | initModelSet() |
void | initShape() |
protected void | remapColors() |
short | setColix(short colix, byte paletteID, int atomIndex) |
protected short | setColix(short colix, byte paletteID, Atom atom) |
void | setModelClickability() |
void | setModelSet(ModelSet modelSet) |
void | setProperty(String propertyName, Object value, BitSet bsSelected) |
void | setSize(int size, BitSet bsSelected) |
static void | setStateInfo(Hashtable ht, int i, String key) |
static void | setStateInfo(Hashtable ht, int i1, int i2, String key) |
void | setVisibilityFlags(BitSet bs) |
boolean | wasClicked(int x, int y) |
public boolean isBioShape
public int myVisibilityFlag
public int shapeID
protected boolean translucentAllowed
protected float translucentLevel
public static void appendCmd(StringBuffer s, String cmd)
public void checkBoundsMinMax(Point3f pointMin, Point3f pointMax)
public Point3f checkObjectClicked(int x, int y, int modifiers, BitSet bsVisible)
public boolean checkObjectDragged(int prevX, int prevY, int deltaX, int deltaY, int modifiers, BitSet bsVisible)
public boolean checkObjectHovered(int x, int y, BitSet bsVisible)
String encodeColor(short colix)
private String encodeTransColor(byte pid, short colix, boolean translucentAllowed)
public void findNearestAtomIndex(int xMouse, int yMouse,
Atom[] closest)
public static short getColix(short[] colixes, int i,
Atom atom)
public String getColorCommand(String type, short colix)
public String getColorCommand(String type, byte pid, short colix)
public static String getFontCommand(String type,
Font3D font)
public int getIndexFromName(String thisID)
public Object getProperty(String property, int index)
public static String getShapeCommands(Hashtable htDefine, Hashtable htMore, int atomCount)
public static String getShapeCommands(Hashtable htDefine, Hashtable htMore, int count, String selectCmd)
public Vector getShapeDetail()
public String getShapeState()
private static String getTranslucentLabel(short colix)
protected void initModelSet()
public void initShape()
protected void remapColors()
public short setColix(short colix, byte paletteID, int atomIndex)
protected short setColix(short colix, byte paletteID,
Atom atom)
public void setModelClickability()
public void setModelSet(
ModelSet modelSet)
public void setProperty(String propertyName, Object value, BitSet bsSelected)
public void setSize(int size, BitSet bsSelected)
public static void setStateInfo(Hashtable ht, int i, String key)
public static void setStateInfo(Hashtable ht, int i1, int i2, String key)
public void setVisibilityFlags(BitSet bs)
public boolean wasClicked(int x, int y)