public class CmdExt extends java.lang.Object implements JmolCmdExtension
Modifier and Type | Field and Description |
---|---|
protected boolean |
chk |
protected ScriptEval |
e |
(package private) static int |
ERROR_invalidArgument |
protected int |
slen |
protected T[] |
st |
protected Viewer |
vwr |
Constructor and Description |
---|
CmdExt() |
Modifier and Type | Method and Description |
---|---|
private void |
assign() |
private void |
assignAtom(int atomIndex,
javajs.util.P3 pt,
java.lang.String type) |
private void |
assignBond(int bondIndex,
char type) |
private void |
assignConnect(int index,
int index2) |
protected BS |
atomExpressionAt(int i) |
private void |
cache() |
private void |
calculate() |
private void |
capture() |
private void |
centerAt() |
protected javajs.util.P3 |
centerParameter(int i) |
protected void |
checkLength(int i) |
private void |
compare() |
private void |
configuration() |
private void |
connect(int index) |
private void |
console() |
void |
data() |
java.lang.String |
dispatch(int iTok,
boolean b,
T[] st) |
private void |
ellipsoid() |
protected void |
error(int err) |
boolean |
evalParallel(ScriptContext context,
ShapeManager shapeManager)
used for TRY command
|
protected void |
finalizeObject(int shapeID,
int colorArgb,
float translucentLevel,
int intScale,
boolean doSet,
java.lang.Object data,
int iptDisplayProperty,
BS bs) |
protected float |
floatParameter(int i) |
java.lang.Object |
getBitsetIdent(BS bs,
java.lang.String label,
java.lang.Object tokenValue,
boolean useAtomMap,
int index,
boolean isExplicitlyAll) |
protected float |
getColorTrans(ScriptEval eval,
int i,
boolean allowNone,
int[] ret)
Checks color, translucent, opaque parameters.
|
private java.lang.String |
getContext(boolean withVariables) |
private java.lang.String |
getIsosurfaceJvxl(boolean asMesh,
int iShape) |
private java.lang.String |
getMoJvxl(int ptMO,
boolean isNBO) |
private float |
getPlotMinMax(float[] data,
boolean isMax,
int tok) |
protected javajs.util.P3 |
getPoint3f(int i,
boolean allowFractional) |
private java.lang.String |
getScriptID(ScriptContext context) |
protected java.lang.Object |
getShapeProperty(int shapeType,
java.lang.String propertyName) |
private java.lang.Object |
getShapePropertyIndex(int shapeType,
java.lang.String propertyName,
int index) |
protected T |
getToken(int i) |
JmolCmdExtension |
init(java.lang.Object se) |
protected int |
intParameter(int index) |
protected void |
invArg() |
protected void |
invPO() |
protected boolean |
isFloatParameter(int index) |
(package private) boolean |
listIsosurface(int iShape) |
private void |
mapProperty() |
private void |
measure() |
private void |
minimize() |
private void |
modulation()
Allows for setting one or more specific t-values as well as full unit-cell
shifts (multiples of q).
|
void |
navigate() |
protected java.lang.String |
paramAsStr(int i) |
private java.lang.Object |
parseDataArray(java.lang.String str,
boolean is3D) |
protected java.lang.String |
plot(T[] args) |
private int |
plotProp() |
private boolean |
polyhedra() |
protected java.lang.String |
setShapeId(int iShape,
int i,
boolean idSeen) |
protected void |
setShapeProperty(int shapeType,
java.lang.String propertyName,
java.lang.Object propertyValue) |
private void |
show() |
protected void |
showString(java.lang.String s) |
private void |
stereo() |
protected java.lang.String |
stringParameter(int index) |
private boolean |
struts() |
protected int |
tokAt(int i) |
private static int |
tokAtArray(int i,
T[] args) |
private T |
tokenAt(int i,
T[] args) |
private java.lang.String |
write(T[] args) |
protected Viewer vwr
protected ScriptEval e
protected boolean chk
protected T[] st
protected int slen
static final int ERROR_invalidArgument
public JmolCmdExtension init(java.lang.Object se)
init
in interface JmolCmdExtension
public java.lang.String dispatch(int iTok, boolean b, T[] st) throws ScriptException
dispatch
in interface JmolCmdExtension
ScriptException
protected BS atomExpressionAt(int i) throws ScriptException
ScriptException
protected void checkLength(int i) throws ScriptException
ScriptException
protected void error(int err) throws ScriptException
ScriptException
protected void invArg() throws ScriptException
ScriptException
protected void invPO() throws ScriptException
ScriptException
protected java.lang.Object getShapeProperty(int shapeType, java.lang.String propertyName)
protected java.lang.String paramAsStr(int i) throws ScriptException
ScriptException
protected javajs.util.P3 centerParameter(int i) throws ScriptException
ScriptException
protected float floatParameter(int i) throws ScriptException
ScriptException
protected javajs.util.P3 getPoint3f(int i, boolean allowFractional) throws ScriptException
ScriptException
protected int intParameter(int index) throws ScriptException
ScriptException
protected boolean isFloatParameter(int index)
protected void setShapeProperty(int shapeType, java.lang.String propertyName, java.lang.Object propertyValue)
protected void showString(java.lang.String s)
protected java.lang.String stringParameter(int index) throws ScriptException
ScriptException
protected T getToken(int i) throws ScriptException
ScriptException
protected int tokAt(int i)
private void cache() throws ScriptException
ScriptException
private void calculate() throws ScriptException
ScriptException
private void capture() throws ScriptException
ScriptException
private void centerAt() throws ScriptException
ScriptException
private void compare() throws ScriptException
ScriptException
private void configuration() throws ScriptException
ScriptException
private void measure() throws ScriptException
ScriptException
private void connect(int index) throws ScriptException
index
- 0 indicates hbond commandScriptException
private void console() throws ScriptException
ScriptException
public void data() throws ScriptException
ScriptException
private void ellipsoid() throws ScriptException
ScriptException
private void mapProperty() throws ScriptException
ScriptException
private void minimize() throws ScriptException
ScriptException
private void modulation() throws ScriptException
ScriptException
public void navigate() throws ScriptException
ScriptException
protected java.lang.String plot(T[] args) throws ScriptException
ScriptException
private int plotProp()
private boolean polyhedra() throws ScriptException
ScriptException
public boolean evalParallel(ScriptContext context, ShapeManager shapeManager)
evalParallel
in interface JmolCmdExtension
context
- shapeManager
- private java.lang.String write(T[] args) throws ScriptException
ScriptException
private void show() throws ScriptException
ScriptException
private void stereo() throws ScriptException
ScriptException
private boolean struts() throws ScriptException
ScriptException
private void assign() throws ScriptException
ScriptException
private void assignAtom(int atomIndex, javajs.util.P3 pt, java.lang.String type)
private void assignBond(int bondIndex, char type)
private void assignConnect(int index, int index2)
private java.lang.String getContext(boolean withVariables)
protected float getColorTrans(ScriptEval eval, int i, boolean allowNone, int[] ret) throws ScriptException
eval
- i
- allowNone
- ret
- returned int argb colorScriptException
private java.lang.String getIsosurfaceJvxl(boolean asMesh, int iShape)
private java.lang.String getMoJvxl(int ptMO, boolean isNBO) throws ScriptException
ScriptException
private java.lang.String getScriptID(ScriptContext context)
private java.lang.Object getShapePropertyIndex(int shapeType, java.lang.String propertyName, int index)
private static int tokAtArray(int i, T[] args)
protected void finalizeObject(int shapeID, int colorArgb, float translucentLevel, int intScale, boolean doSet, java.lang.Object data, int iptDisplayProperty, BS bs) throws ScriptException
ScriptException
private float getPlotMinMax(float[] data, boolean isMax, int tok)
public java.lang.Object getBitsetIdent(BS bs, java.lang.String label, java.lang.Object tokenValue, boolean useAtomMap, int index, boolean isExplicitlyAll)
getBitsetIdent
in interface JmolCmdExtension
boolean listIsosurface(int iShape) throws ScriptException
ScriptException
protected java.lang.String setShapeId(int iShape, int i, boolean idSeen) throws ScriptException
ScriptException
private java.lang.Object parseDataArray(java.lang.String str, boolean is3D)