Package org.jmol.scriptext
Class CmdExt
java.lang.Object
org.jmol.scriptext.ScriptExt
org.jmol.scriptext.CmdExt
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe command dispatcher for the set of commands extended by this class.boolean
evalParallel
(ScriptContext context, ShapeManager shapeManager) used for TRY commandgetBitsetIdent
(BS bs, String label, Object tokenValue, boolean useAtomMap, int index, boolean isExplicitlyAll) getBitsetIdentFull
(BS bs, String label, boolean useAtomMap, int index, boolean isExplicitlyAll, String[] sout) float[]
getBitsetPropertyFloat
(BS bs, int tok, String property, float min, float max) int
getLoadSymmetryParams
(int i, SB sOptions, Map<String, Object> htParams) prepareBinaryOutput
(SV tvar) Methods 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
-
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:
dispatch
in classScriptExt
- Parameters:
iTok
- the current statement position, usually 1flag
- a command-specific flagst
- the compiled statement for this command- Throws:
ScriptException
-
evalParallel
used for TRY command- Parameters:
context
-shapeManager
-- Returns:
- true if successful; false if not
-
getBitsetIdent
public Object getBitsetIdent(BS bs, String label, Object tokenValue, boolean useAtomMap, int index, boolean isExplicitlyAll) - Parameters:
bs
-label
-tokenValue
- unuseduseAtomMap
-index
-isExplicitlyAll
-- Returns:
- String or, if multiple or explicitly ALL, String[]
-
getBitsetIdentFull
-
getLoadSymmetryParams
public int getLoadSymmetryParams(int i, SB sOptions, Map<String, Object> htParams) throws ScriptException- Throws:
ScriptException
-
prepareBinaryOutput
-
getBitsetPropertyFloat
public float[] getBitsetPropertyFloat(BS bs, int tok, String property, float min, float max) throws ScriptException - Throws:
ScriptException
-