Package org.jmol.scriptext
Class CmdExt
java.lang.Object
org.jmol.scriptext.ScriptExt
org.jmol.scriptext.CmdExt
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassign()Though a command, not documented.private voidcache()private voidprivate voidcapture()private voidcenterAt()private intcheckPacked(int i, Map<String, Object> htParams, javajs.util.SB sOptions) Process FILL and PACKED and all their variants.private voidcompare()Compares one set of atoms to another, generating the matrix that takes that maps the first set's coordinates to the second's.private voidprivate voidconnect(int index) private voidconsole()private voiddata()The command dispatcher for the set of commands extended by this class.private voidbooleanevalParallel(ScriptContext context, ShapeManager shapeManager) used for TRY commandprivate javajs.util.BSexpFor(int i, javajs.util.BS bsAtoms) private StringfilterShow(String msg, String name) getBitsetIdent(javajs.util.BS bs, String label, Object tokenValue, boolean useAtomMap, int index, boolean isExplicitlyAll) getBitsetIdentFull(javajs.util.BS bs, String label, Object tokenValue, boolean useAtomMap, int index, boolean isExplicitlyAll, String[] sout) float[]getBitsetPropertyFloat(javajs.util.BS bs, int tok, String property, float min, float max) private StringgetContext(boolean withVariables) private ObjectgetIsosurfaceJvxl(int iShape, String type) intgetLoadSymmetryParams(int i, javajs.util.SB sOptions, Map<String, Object> htParams) private StringgetMoJvxl(int ptMO, boolean isNBO) private floatgetPlotMinMax(float[] data, boolean isMax, int tok) private StringgetScriptID(ScriptContext context) private javajs.util.P3[]getUVBoxFromHKL(SymmetryInterface uc, javajs.util.P4 hkl, javajs.util.P4 plane) create a uvw-space unit cell from an HKL planeprivate voidimage()private voidprivate voidmacro()private voidprivate voidmeasure()private voidminimize()private voidmodelkit()Configure the ModelKitPopup for Crystallographic symmetry viewing and structure editing new 14.29.45 see modelkit.ModelKitPopup.javaprivate voidAllows for setting one or more specific t-values as well as full unit-cell shifts (multiples of q).private voidmutate()private voidnavigate()private ObjectparseDataArray(String str, boolean is3D) private Stringprivate voidjavajs.util.Lst<Object>prepareBinaryOutput(SV tvar) private voidshow()private voidstereo()private booleanstruts()private static inttokAtArray(int i, T[] args) private Tprivate voidunitcell(int i, boolean isModelkit) private Stringprivate StringMethods inherited from class org.jmol.scriptext.ScriptExt
atomExpressionAt, bsToArray, centerParameter, checkLength, error, finalizeObject, floatParameter, getAllPoints, getColorTrans, getIntArray2, getPoint3f, getShapeProperty, getToken, init, intParameter, invArg, invPO, isFloatParameter, paramAsStr, setShapeId, setShapeProperty, showString, stringParameter, tokAt
-
Field Details
-
ERROR_invalidArgument
static final int ERROR_invalidArgument- See Also:
-
-
Constructor Details
-
CmdExt
public CmdExt()
-
-
Method Details
-
dispatch
The command dispatcher for the set of commands extended by this class. These commands can be from the Jmol command of their method name or another command or method working as though it were a command, with a non-GUI-generated compiled script.- Specified by:
dispatchin classScriptExt- Parameters:
iTok- the current statement position, usually 1flag- a command-specific flagst- the compiled statement for this command- Throws:
ScriptException
-
macro
- Throws:
ScriptException
-
evalParallel
used for TRY command- Parameters:
context-shapeManager-- Returns:
- true if successful; false if not
-
getBitsetIdent
-
getBitsetIdentFull
-
getLoadSymmetryParams
public int getLoadSymmetryParams(int i, javajs.util.SB sOptions, Map<String, Object> htParams) throws ScriptException- Throws:
ScriptException
-
checkPacked
private int checkPacked(int i, Map<String, Object> htParams, javajs.util.SB sOptions) throws ScriptExceptionProcess FILL and PACKED and all their variants.- Parameters:
i-htParams-sOptions-- Returns:
- new token position
- Throws:
ScriptException
-
cache
- Throws:
ScriptException
-
calculate
- Throws:
ScriptException
-
capture
- Throws:
ScriptException
-
centerAt
- Throws:
ScriptException
-
compare
Compares one set of atoms to another, generating the matrix that takes that maps the first set's coordinates to the second's. Options TRANSLATE and ROTATE will generate an animation. See interactive documentation for more details.- Throws:
ScriptException
-
configuration
- Throws:
ScriptException
-
measure
- Throws:
ScriptException
-
connect
- Parameters:
index- 0 indicates hbond command- Throws:
ScriptException
-
console
- Throws:
ScriptException
-
data
- Throws:
ScriptException
-
ellipsoid
- Throws:
ScriptException
-
image
- Throws:
ScriptException
-
invertSelected
- Throws:
ScriptException
-
mapProperty
- Throws:
ScriptException
-
minimize
- Throws:
ScriptException
-
modulation
Allows for setting one or more specific t-values as well as full unit-cell shifts (multiples of q).- Throws:
ScriptException
-
mutate
- Throws:
ScriptException
-
plot
- Throws:
ScriptException
-
polyhedra
- Throws:
ScriptException
-
write
- Parameters:
args-- Returns:
- string for write() function
- Throws:
ScriptException
-
prepareBinaryOutput
-
writeMsg
- Throws:
ScriptException
-
show
- Throws:
ScriptException
-
getCurrentModelFileAsString
-
filterShow
-
stereo
- Throws:
ScriptException
-
struts
- Throws:
ScriptException
-
unitcell
- Throws:
ScriptException
-
getUVBoxFromHKL
private javajs.util.P3[] getUVBoxFromHKL(SymmetryInterface uc, javajs.util.P4 hkl, javajs.util.P4 plane) throws ScriptException create a uvw-space unit cell from an HKL plane- Parameters:
uc-hkl-plane-- Returns:
- [o a b c]
- Throws:
ScriptException
-
modelkit
Configure the ModelKitPopup for Crystallographic symmetry viewing and structure editing new 14.29.45 see modelkit.ModelKitPopup.java- Throws:
ScriptException
-
assign
Though a command, not documented. Use the MODELKIT command instead- Throws:
ScriptException
-
expFor
- Throws:
ScriptException
-
getContext
-
getIsosurfaceJvxl
-
getMoJvxl
- Throws:
ScriptException
-
getScriptID
-
tokenAt
-
tokAtArray
-
getPlotMinMax
private float getPlotMinMax(float[] data, boolean isMax, int tok) -
parseDataArray
-
getBitsetPropertyFloat
public float[] getBitsetPropertyFloat(javajs.util.BS bs, int tok, String property, float min, float max) throws ScriptException - Throws:
ScriptException
-