VIDA Python API Manual


Introduction

This document describes the Python api to VIDA. VIDA uses the Python programming language to internally script user actions. Most users actions have a corresponding Python function that is called to perform the action and save it in the journal file.

This document does not describe how to program in Python or any of the built-in features already accessible through the Python scripting interface. You can find out more information about Python at the Python website, http://python.org/.

VIDA Python Interface

Every Python function called by VIDA automatically blocks user interaction from the GUI and restores it when the function is completed. (The one exception is the stop sign by the progress bar which can always be used to halt Python scripts and functions)

Advanced users can look at the Blocking functions which control this behavior. These functions should be used with caution as they can have strange artifacts during some function calls.

If you are importing a Python function from a library or a user supplied function, you may wish to use vfapp.scriptDoWork() and vfapp.scriptStopWork(). These functions force VIDA to look for GUI events after every Python function call. Standard usage is:

def myFunction():
   vfapp.scriptDoWork()
   try:
      ... perform Python functions here
   finally:
      vfapp.scriptStopWork()

Placing the functions in a try...finally block ensure that the GUI blocking is appropriately turned off when the function ends or an exception is caught.

Data Library

DataAdd:

(OEKey key, string str, string data)

Add a piece of data to the object specified by key. This piece of data will also appear in the spreadsheet ( a new column will be created if the column doesn't already exist. )

This is an easy way to annotate molecules or atoms for instance.

DataGetDB:

() -> VFDataBase *

Return the VFDataTable Object for datatable name.

DataGetTable:

(string name, bool throwError) -> VFDataTable *

Return the list of all internal datatables.

DatatableAddColumn:

(string datatable, string columnName, bool genericData)

Add a column to datatable datatable with the name columnName. If columnName already exists in the datatable, it will be ignored.

DatatableCommitChanges:

(string datatable)

Commit any outstanding changes to the internal database.

DatatableCurrent:

() -> string

Returns the name of the current datatable. e.g. 'Molecules'. This function is deprecated and the DatatableCurrentGet function should be used instead.

DatatableCurrentGet:

() -> string

Returns the name of the current datatable. e.g. 'Molecules'.

DatatableCurrentSet:

(string datatable) -> bool

Sets the current datatable.

DatatableData:

(string datatable, integer row, string header) -> string

Return the string representation of the data in the datatable named datatable for the row row and the column named header.

DatatableDeleteColumn:

(string datatable, string name)

Delete the column named column. Note that this delets column from all datatables.

DatatableEditableGet:

(string ss) -> bool

Returns True if datatable is editable.

DatatableEditableSet:

(string ss, bool val)

Sets datatable to be editable if val is True, otherwise sets datatable to be read-only.

DatatableFilter:

(string datatable, OEDataFilter filter, string name, bool staticView, bool permaFilter)

(string datatable, string filter, string name, bool staticView, bool permaFilter)

Create a new datatable view from the datatable named datatable using the filter defined in filter. The new view is named name. filter is an arbitrary python expression that is applied to every row in the datatable.

This expression may assume that a local variable ROW is assigned to the row currently being evaluated. e.g.

DatatableData(DatatableCurrent(), ROW, foo)

returns the string representation of the data in column foo for the current datatable. Note: the current datatable may not be datatable.

DatatableFromList:

(integer listid, string name)

Generate a filtered datatable with name name from the list listid.

If name is already in the datatable, it will be renamed name1, name2 and so on.

DatatableGetColumn:

(string datatable, string name) -> [string, ...]

(string datatable, integer index) -> [string, ...]

Returns string representations of the entire column for the datatable named datatable for column name or, alternatively, for column index by index.

DatatableGetCurrentRow:

(string datatable) -> int

Returns the row index for the first active or selected row for the datatable named datatable.

DatatableGetDatatables:

() -> [string, ...]

DatatableGetImageStreamAtRow:

(string datatable, string filename, int row, int width, int height) -> bool

Write an image file to the file specified by filename for the datatable named datatable at the row specified by row. The size of the image is specified by width and height.

DatatableGetNumRows:

(string datatable) -> int

Return the number of rows for the datatable named datatable.

DatatableHeaders:

(string datatable) -> [string, ...]

Return a list of all the names of all the headers for the datatable named datatable.

DatatableLingoSimSort:

(string spreadsheet, integer row) -> bool

DatatableMolNumberFunction:

(string datatable, int row, string func) -> double

DatatableMolNumberFunctions calculate molecular data that returns a numeric value.

datatable identifies the datatable containing the molecule and row is the datatable row with the molecule.

The function func to compute is one of:

  • "mw" Molecular weight.

  • "Num Atoms" Number of atoms in the molecule.

  • "Num Bonds" number of bonds in the molecule.

  • "Carbon-Hetero ratio" the ratio of carbons to hetero atoms in the molecule.

    Returns -1 if there are no carbons.

  • "Energy" The molecular energy of the molecule as specified in the input file.

  • "Actual Charge" The sum of the partial charges on all atoms as specified in the input file.

  • "Formal Charge" The sum of the formal charges on all atoms.

  • "Halide Count" The number of halogen atoms in the molecule.

  • "Num Carbons" The number of carbon atoms in the molecule.

  • "Num Formal Charges" The number of more atoms with a specified formal charge.

  • "Num Heavy Atoms" The number of heavy atoms (non hydrogen) in the molecule.

  • "Num Hetero Atoms" The number of hetero atoms in the molecule.

  • "Num Hydrogens" The number of hydrogen atoms in the molecule.

  • "Num Rigid Bonds" The number of rigid bonds in the molecule.

  • "Nom Rotatable Bonds" The number of rotatable bonds in the molecule.

  • "Num Chiral Atoms" returns the number of chiral atoms in the molecule.

  • "Num Chiral Bonds" returns the number of chiral bonds in the molecule.

DatatableMolStringFunction:

(string datatable, int row, string func) -> string

DatatableMolNumberFunctions calculate molecular data that returns a string value.

datatable identifies the datatable containing the molecule and row is the datatable row with the molecule.

The function func to compute is one of:

o 'molformula' the molecular formula for the molecule.

DatatableNumRows:

(string datatable) -> int

Return the number of rows for the datatable named datatable.

DatatableReadState:

(string filename) -> bool

DatatableSetData:

(string datatable, integer row, string header, string value, bool update)

Set the cell data for the datatable named datatable at row for the column named header to the string value value.

If update is true, immediately update the datatable. Set this to false if you are updating a bunch of data and then call DatatableUpdateContents(ss).

DatatableSetExpression:

(string datatable, string col, string expr)

A datatable expression defines an arbitrary piece of python code to call that generates data to be displayed in the datatable.

DatatableSetExpression creates a new column named col for the datatable named datatable using the function defined by expr.

This expression may assume that a local variable ROW is assigned to the row currently being evaluated. e.g.

DatatableData(DatatableCurrent(), ROW, foo)

returns the string representation of the data in column foo for the current datatable which, for this function, is always datatable.

DatatableSetRowData:

(string datatable, integer row, [string, ...] headers, [string, ...] rows, bool update)

Set data in the datatable named datatable. row is the row index to set. headers defines the names of the columns to set and rows is the string representation of the data.

Note: headers[i] should be the name of the column for row[i].

The update parameter is no longer used and is kept for backwards compatabillity.

DatatableWriteState:

(string filename) -> bool

Geometer Library

AtomClearColorScoped:

(integer scope)

This function restores the default atom coloring to those atoms within the specified scope.

AtomColorPaletteUpdate:

()

This function updates the default atom coloring palette based on whether or not the application is using a dark or light colored background scheme. This function is called internally and should not by called by the user.

AtomColorReferenceScoped:

(integer scope)

This function provides a quick way to mark a molecule (or set of atoms) as a reference structure. The coloring function that is applied colors all carbon atoms the current application 'reference' color (default is green). The 'reference' color can be changed in the preferences.

AtomColorResidueScoped:

(integer scope)

This function provides a quick way to color a molecule (or set of atoms) based on associated residue information. The default coloring that is applied uses the 'Shapely' color scheme for coloring residues. The residue colors can be changed in the preferences:

* ALA     Medium Green  [140,255,140]
* GLY     White         [255,255,255]
* LEU     Olive Green   [ 69, 94, 69]
* SER     Medium Orange [255,112, 66]
* VAL     Light Purple  [255,140,255]
* THR     Dark Orange   [184, 76,  0]
* LYS     Royal Blue    [ 71, 71,184]
* ASP     Dark Rose     [160,  0, 66]
* ILE     Dark Green    [  0, 76,  0]
* ASN     Light Salmon  [255,124,112]
* GLU     Dark Brown    [102,  0,  0]
* PRO     Dark Grey     [ 82, 82, 82]
* ARG     Dark Blue     [  0,  0,124]
* PHE     Olive Grey    [ 83, 76, 66]
* GLN     Dark Salmon   [255, 76, 76]
* TYR     Medium Brown  [140,112, 76]
* HIS     Medium Blue   [112,112,255]
* CYS     Medium Yellow [255,255,112]
* MET     Light Brown   [184,160, 66]
* TRP     Olive Brown   [ 79, 70,  0]
* ASX     Medium Purple [255,  0,255]
* GLX     Medium Purple [255,  0,255]
* PCA     Medium Purple [255,  0,255]
* HYP     Medium Purple [255,  0,255]
* A       Light Blue    [160,160,255]
* C       Light Orange  [255,140, 75]
* G       Medium Salmon [255,112,112]
* T       Light Green   [160,255,160]
* Default Medium Purple [255,  0,255]

AtomColorSetScoped:

(OESystem::OEColor color, integer scope)

(integer element, OESystem::OEColor color, integer scope)

This function sets the color of the atoms in the specified scope to be the specified color c.

AtomDarkColorsGet:

() -> bool

Returns whether or not the application is using the atom color palette designed for dark colored backgrounds. Otherwise, the application is using the atom color palette designed for light colored backgrounds. Both of these palettes can be edited in the preferences.

AtomDarkColorsSet:

(bool dark)

Sets whether or not the application is using the atom color palette designed for dark colored backgrounds. Otherwise, the application is using the atom color palette designed for light colored backgrounds. Both of these palettes can be edited in the preferences.

AtomDefaultColorGet:

() -> OESystem::OEColor

(integer elem) -> OESystem::OEColor

Returns the current default atom color. The default atom color is applied to every atom that does not have its own specific default color assigned. Calling this function with the elem parameter returns the specific default color associated with the passed element number (e.g. carbon = 6).

AtomDefaultColorSet:

(OESystem::OEColor color)

(integer elem, OESystem::OEColor color)

Sets the current default atom color. The default atom color is applied to every atom that does not have its own specific default color assigned. Calling this function with the elem parameter sets the specific default color associated with the passed element number (e.g. carbon = 6).

AtomHaloRadiusGet:

() -> float

Returns the current radius of atom selection halo. The atom selection halo is a transparent white surface with the specified radius drawn around the current selected set of atoms. If the DistanceControlsVisibility property is set (see DistanceControlsVisibilitySet/Get functions), only atoms falling within this radius will be displayed.

AtomHaloRadiusSet:

(float radius, bool notify) -> float

Sets the current radius of atom selection halo. The atom selection halo is a transparent white surface with the specified radius drawn around the current selected set of atoms. If the DistanceControlsVisibility property is set (see DistanceControlsVisibilitySet/Get functions), only atoms falling within this radius will be displayed.

AtomHydrogenStyleGet:

() -> integer

(OEKey key) -> integer

Returns the current default hydrogen display style - 0 for no hydrogens, 1 for polar hydrogens only, and 2 for all hydrogens.

AtomHydrogenStyleSet:

(integer style)

Sets the current default hydrogen display style. Valid style parameter values are 0 for no hydrogens, 1 for polar hydrogens only, and 2 for all hydrogens.

AtomHydrogenStyleSetScoped:

(integer style, integer scope)

Sets the hydrogen display style for all the molecules in the specified scope. Valid style parameter values are 0 for no hydrogens, 1 for polar hydrogens only, and 2 for all hydrogens.

AtomLabelDefaultGet:

() -> string

Returns the default label displayed on atoms. The default is "None". See the AtomLabelSetScoped function for more information about label types.

AtomLabelDefaultSet:

(string label)

Sets the default label displayed on atoms. The default is "None". See the AtomLabelSetScoped function for more information about label types.

AtomLabelSet:

(OEKey k, string label) -> bool

Sets the label on the specified atom. The parameter label contains the text of the label and the parameter key specifies which atom this label should apply to. See the AtomLabelSetScoped function for more information about label types.

AtomLabelSetScoped:

(string label, integer scope) -> bool

Sets the current label displayed on the atoms in the specified scope. Label types include:

* "none"               or ""
* "index"              or "%i"
* "element"            or "%e"
* "name"               or "%n"
* "type"               or "%t"
* "inttype"            or "%it"
* "implicit hcount"    or "%h"
* "formal charge"      or "%f"
* "partial charge"     or "%p"
* "residue info"       or "%r"
* "degree"             or "%d"
* "ischiral"           or "%c"
* "chirality"          or "%chi"
* "hasstereospecified" or "%sts"
* "symmetry class"     or "%sy"
* "isinring"           or "%rng"
* "oechem idx"         or "%oei"
* "map index"          or "%m"
* "read order"         or "%ro"
* "isotope"            or "%iso"
* "hcount"             or "%h"
* "residue info (ca)"  or "%car"
* "bfactor"            or "%cab"
* "degree"             or "%d"
* "hybrid"             or "%hyb"
* "comment"            or "%cm"
* "%gd(x)" - where x specifies the desired piece of generic data to use as the label

AtomStyleGet:

() -> string

Returns the default atom style. The default is "small". See the AtomStyleSetScoped function for more information about atom styles.

AtomStyleGetScoped:

(integer scope) -> integer

Returns the style of the atoms in the specified scope. If there are multiple styles present, the return type is "mixed". See the AtomStyleSetScoped function for more information about atom styles.

AtomStyleLargeGet:

() -> string

Returns the default atom style for large molecules, where large is determined by whether or not the number of atoms in the molecule exceeds the specified cutoff. For more information on this cutoff, see the MoleculeSizeCutoff function. The default is "none". See the AtomStyleSetScoped function for more information about atom styles.

AtomStyleLargeSet:

(string atomStyle)

(integer style)

Sets the default atom style for large molecules, where large is determined by whether or not the number of atoms in the molecule exceeds the specified cutoff. This function accepts either a string or an enumerated representation as its parameter. The default is "none". For more information on this large molecule atom cutoff, see the MoleculeSizeCutoff function. See the AtomStyleSetScoped function for more information about atom styles.

AtomStyleNucleicGet:

() -> string

Returns the default atom style for nucleic acids. The default is to mirror the large molecule atom style. See the AtomStyleLargeSet function for more information about large molecules and see the AtomStyleSetScoped function for more information about atom styles.

Note: this function is a placeholder for a future implementation and therefore does not currently have any effect.

AtomStyleNucleicSet:

(string atomStyle)

(integer style)

Sets the default atom style for nucleic acids. This function accepts either a string or an enumerated representation as its parameter. The default is to mirror the large molecule atom style. See the AtomStyleLargeSet function for more information about large molecules and see the AtomStyleSetScoped function for more information about atom styles.

Note: this function is a placeholder for a future implementation and therefore does not currently have any effect.

AtomStyleSet:

(string atomStyle)

(integer style)

Sets the default atom style. This function accepts either a string or an enumerated representation as its parameter. The default is "small". See the AtomStyleSetScoped function for more information about atom styles.

AtomStyleSetScoped:

(string atomStyle, integer scope)

(integer style, integer scope)

Sets the display style for the specified atoms. This function accepts either a string or an enumerated representation as its parameter. Available atom styles include:

* "small"   atoms are drawn as small sized spheres
* "medium"  atoms are drawn as medium sized spheres
* "large"   atoms are drawn as large sized spheres
* "stars"   atoms are drawn as stars
* "radii"   atoms are drawn as spheres with radii equivalent to their VDW radii
* "none"    atoms are not drawn, but are still considered visible and thus selectable
* "hidden"  atoms are not drawn and are not considered visible and thus are not selectable

AtomStyleToEnum:

(string style) -> integer

This function returns the enumerated type associated the specified string atoms style representation. See the AtomStyleSetScoped function for more information about atom styles.

AtomStyleToText:

(integer style) -> string

This function returns the text string associated with the specified enumerated atom style representation. See the AtomStyleSetScoped function for more information about atom styles.

BondBallToStickRatioGet:

() -> float

This function is currently a placeholder for future functionality.

BondBallToStickRatioSet:

(float ballStickRatio) -> float

This function is currently a placeholder for future functionality.

BondClearColorScoped:

(integer scope)

This function restores the default bond coloring to those bonds within the specified scope.

BondColorSetScoped:

(OESystem::OEColor color, integer scope)

This function sets the color of the bonds in the specified scope to be the specified color c.

BondDrawAromaticGet:

(integer id) -> bool

Returns whether or not aromatic bonds should be drawn as aromatic or instead in kekule format for the molecule with the specified id.

BondDrawAromaticSet:

(integer id, bool aromatic) -> bool

Sets whether or not aromatic bonds should be drawn as aromatic or instead in kekule format for the molecule with the specified id.

BondHideHydrogenGet:

() -> bool

Returns the global property which specifies whether or not explicit hydrogens should be displayed.

BondHideHydrogenSet:

(bool hide) -> bool

Sets the global property which specifies whether or not explicit hydrogens should be displayed.

BondHideNonbondedGet:

() -> bool

Returns the global property which specifies whether or not explicit non-bonded atoms should be displayed.

BondHideNonbondedSet:

(bool hide) -> bool

Sets the global property which specifies whether or not explicit non-bonded atoms should be displayed.

BondLabelDefaultGet:

() -> string

Returns the default label displayed on bonds. The default is "None". See the BondLabelSetScoped function for more information about label types.

BondLabelDefaultSet:

(string label)

Sets the default label displayed on bonds. The default is "None". See the BondLabelSetScoped function for more information about label types.

BondLabelSet:

(OEKey k, string label) -> bool

Sets the label on the specified bond. The parameter label contains the text of the label and the parameter key specifies which bond this label should apply to. See the BondLabelSetScoped function for more information about label types.

BondLabelSetScoped:

(string label, integer scope) -> bool

Sets the current label displayed on the bonds in the specified scope. Label types include:

* "none"               or ""
* "index"              or "%i"
* "order"              or "%o"
* "length"             or "%l"
* "type"               or "%t"
* "inttype"            or "%it"
* "ischiral"           or "%c"
* "chirality"          or "%chi"
* "hasstereospecified" or "%sts"
* "oechem idx"         or "%oei"
* "%gd(x)" - where x specifies the desired piece of generic data to use as the label

BondLineWidthGet:

() -> float

Returns the line width (in pixels) to be used when drawing bonds in "line" or "wireframe" styles.

BondLineWidthSet:

(float width) -> float

Sets the line width (in pixels) to be used when drawing bonds in "line" or "wireframe" styles.

BondRadiusGet:

() -> float

Returns the radius of the cylinders to be used when drawing bonds in "cylinder" style.

BondRadiusSet:

(float radius) -> float

Sets the radius of the cylinders to be used when drawing bonds in "cylinder" style.

BondShowAromaticGet:

() -> bool

Returns the global property which specifies whether or not aromatic bonds should be drawn as aromatic or instead in kekule format.

BondShowAromaticSet:

(bool show) -> bool

Sets the global property which specifies whether or not aromatic bonds should be drawn as aromatic or instead in kekule format.

BondShowDipolarGet:

() -> bool

Returns the global property which specifies whether or not dipolar bonds should be drawn as directed bonds.

BondShowDipolarSet:

(bool show) -> bool

Sets the global property which specifies whether or not dipolar bonds should be drawn as directed bonds.

BondShowOrdersGet:

() -> bool

Returns the global property which specifies whether or not bond orders should be displayed.

BondShowOrdersSet:

(bool show) -> bool

Sets the global property which specifies whether or not bond orders should be displayed.

BondStyleGet:

() -> string

Returns the default bond style. The default is "cylinders". See the BondStyleSetScoped function for more information about bond styles.

BondStyleGetScoped:

(integer scope) -> integer

Returns the style of the bonds in the specified scope. If there are multiple styles present, the return type is "mixed". See the BondStyleSetScoped function for more information about bond styles.

BondStyleLargeGet:

() -> string

Returns the default bond style for large molecules, where large is determined by whether or not the number of atoms in the molecule exceeds the specified cutoff. For more information on this cutoff, see the MoleculeSizeCutoff function. The default is "lines". See the BondStyleSetScoped function for more information about bond styles.

BondStyleLargeSet:

(string bondstyle)

(integer style)

Sets the default bond style for large molecules, where large is determined by whether or not the number of atoms in the molecule exceeds the specified cutoff. This function accepts either a string or an enumerated representation as its parameter. The default is "lines". For more information on this large molecule atom cutoff, see the MoleculeSizeCutoff function. See the BondStyleSetScoped function for more information about bond styles.

BondStyleNucleicGet:

() -> string

Returns the default bond style for nucleic acids. The default is to mirror the large molecule bond style. See the BondStyleLargeSet function for more information about large molecules and see the BondStyleSetScoped function for more information about bond styles.

Note: this function is a placeholder for a future implementation and therefore does not currently have any effect.

BondStyleNucleicSet:

(string bondstyle)

(integer style)

Sets the default bond style for nucleic acids. This function accepts either a string or an enumerated representation as its parameter. The default is to mirror the large molecule atom style. See the AtomStyleLargeSet function for more information about large molecules and see the AtomStyleSetScoped function for more information about atom styles.

Note: this function is a placeholder for a future implementation and therefore does not currently have any effect.

BondStyleSet:

(string bondstyle)

(integer style)

Sets the default bond style. This function accepts either a string or an enumerated representation as its parameter. The default is "cylinders". See the BondStyleSetScoped function for more information about bond styles.

BondStyleSetScoped:

(string bondstyle, integer scope)

(integer style, integer scope)

Sets the display style for the specified bonds. This function accepts either a string or an enumerated representation as its parameter. Available bonds styles include:

* "lines"     bonds are drawn as lines
* "cylinders" bonds are drawn as cylinders
* "none"      bonds are not drawn, but are still considered visible and thus selectable
* "hidden"    bonds are not drawn and are not considered visible and thus are not selectable

BondStyleToEnum:

(string style) -> integer

This function returns the enumerated type associated the specified string bond style representation. See the BondStyleSetScoped function for more information about bond styles.

BondStyleToText:

(integer style) -> string

This function returns the text string associated with the specified enumerated bond style representation. See the BondStyleSetScoped function for more information about bond styles.

ColorGet:

(OEKey ) -> OESystem::OEColor

Returns the color of the object specified by the OEKey parameter key.

ColorSet:

(OEKey , OESystem::OEColor var2)

Sets the color of the object specified by the OEKey parameter key to be the specified color.

ColorSetScoped:

(OESystem::OEColor , integer scope)

Sets the color for all of the objects in the specified scope to be the specified color.

ColorUniqueScoped:

(integer scope)

Assigns a "unique" color to each individual object found in the specified scope. For large numbers of objects in the scope, the colors used may eventually repeat.

DistanceControlsVisibilityGet:

() -> bool

Returns whether or not an atom's or bond's distance from the selected set will affect its visibility. The distance cutoff is specified by the AtomHaloSet function.

DistanceControlsVisibilitySet:

(bool state)

Sets whether or not an atom's or bond's distance from the selected set will affect its visibility. The distance cutoff is specified by the AtomHaloSet function.

DrawAtomsAndBondsGet:

() -> bool

Returns whether or not the application has drawing of atoms and bonds enabled. Ordinarily, this function should not need to be called by the user.

DrawAtomsAndBondsSet:

(bool draw) -> bool

Sets whether or not the application has drawing of atoms and bonds enabled. Ordinarily, this function should not need to be called by the user.

DrawAxesGet:

() -> bool

Returns whether or not axes should be drawn in the application's 3D display.

DrawAxesSet:

(bool draw) -> bool

Sets whether or not axes should be drawn in the application's 3D display.

DrawLabelsGet:

() -> bool

Returns whether or not the application has drawing of labels enabled.

DrawLabelsSet:

(bool draw) -> bool

Sets whether or not the application has drawing of labels enabled.

DrawMatrixGet:

() -> bool

Returns whether or not the application has matrix (or tiled) displays enabled.

DrawMatrixSet:

(bool draw) -> bool

Sets whether or not the application has matrix (or tiled) displays enabled.

DrawSymmetryGet:

() -> bool

Returns whether or not the application has drawing of symmetry enabled.

DrawSymmetrySet:

(bool draw) -> bool

Sets whether or not the application has drawing of symmetry enabled.

DrawTitlesGet:

() -> bool

Returns whether or not the application has drawing of titles enabled.

DrawTitlesSet:

(bool draw) -> bool

Sets whether or not the application has drawing of symmetry enabled.

DrawUnitCellGet:

() -> bool

Returns whether or not the application has drawing of unit cells enabled.

DrawUnitCellSet:

(bool draw) -> bool

Sets whether or not the application has drawing of symmetry enabled.

GetVisibleIDs:

() -> [integer, ...]

Returns of a list of IDs corresponding to all the visible objects.

HBondAddTarget:

(OEKey key)

This function adds the molecule corresponding to the specified key to the list of targets to be considered when displaying hydrogen bonds. Calling this function on a molecule will cause hydrogens to be added to that molecule if they are not already present.

HBondAddTargetsScoped:

(integer scope)

This function adds of the molecules in the specified scope to the list of targets to be considered when displaying hydrogen bonds. Calling this function on a molecule will cause hydrogens to be added to that molecule if they are not already present.

HBondClearTargets:

()

This function clears the list of molecule targets to be consdered when displaying hydrogen bonds.

HBondColorGet:

() -> OESystem::OEColor

Returns the current color being used when drawing hydrogen bonds.

HBondColorSet:

(OESystem::OEColor )

Sets the color to be used when drawing hydrogen bonds.

HBondRemoveTarget:

(OEKey key)

This function removes the molecule corresponding to the specified key from the list of molecule targets to be consdered when displaying hydrogen bonds.

HBondRemoveTargetsScoped:

(integer scope)

This function removes all of the molecules in the specified scope from the list of molecule targets to be consdered when displaying hydrogen bonds.

HBondShowExternalGet:

() -> bool

Returns whether or not external hydrogen bonds (those between two separate molecules) should be displayed if present.

HBondShowExternalSet:

(bool show)

Sets whether or not external hydrogen bonds (those between two separate molecules) should be displayed if present.

HBondShowInternalGet:

() -> bool

Returns whether or not internal hydrogen bonds should be displayed if present.

HBondShowInternalSet:

(bool show)

Sets whether or not internal hydrogen bonds should be displayed if present.

HaloColorDefaultGet:

() -> OESystem::OEColor

Returns the default color to be used when displaying halos.

HaloColorDefaultSet:

(OESystem::OEColor c)

Sets the default color to be used when displaying halos.

HaloColorGet:

(OEKey ) -> OESystem::OEColor

Returns the color of the halo associated with the specified atom key.

HaloColorSet:

(OEKey k, OESystem::OEColor c)

(OEKey k, string var2)

Sets the color of the halo associated with the specified atom key.

HaloColorSetScoped:

(OESystem::OEColor , integer scope)

(string , integer scope)

Sets the color of the halos associated with the atoms in the specified scope.

HaloRadiusGet:

(OEKey ) -> float

Returns the radius of the halo associated with the specified atom key.

HaloRadiusSet:

(OEKey , string var2)

(OEKey , float var2)

Sets the radius of the halo associated with the specified atom key.

HaloRadiusSetScoped:

(string , integer scope)

(float , integer scope)

Sets the radius of the halos associated with the atoms in the specified scope.

HaloScaleGet:

(OEKey ) -> float

Returns the scaling factor for the size of the halo associated with the specified atom key.

HaloScaleSet:

(OEKey , string var2)

(OEKey , float var2)

Sets the scaling factor for the size of the halo associated with the specified atom key.

HaloScaleSetScoped:

(string , integer scope)

(float , integer scope)

Sets the scaling factor for the size of the halo associated with the atoms in the specified scope.

HasGridChildrenScoped:

(integer scope) -> int

Returns whether or not any of the molecules in the specified scope have visible grids attached to them. Returns 0 for none of the molecules have visible grids, 1 for all molecules have visible grid, and 2 for at least one has a visible grid.

HasSurfaceChildrenScoped:

(string type, integer scope) -> int

Returns whether or not any of the molecules in the specified scope have visible surfaces attached to them. Returns 0 for none of the molecules have visible surfaces, 1 for all molecules have visible surface, and 2 for at least one has a visible surface.

LabelClearColorScoped:

(integer scope)

This function restores the default label coloring to those labels within the specified scope.

LabelClearScoped:

(integer scope)

Clears the labels on all the atoms and bonds in the specified scope.

LabelColorScoped:

(OESystem::OEColor c, integer scope)

This function sets the color of the labels in the specified scope to be the specified color c.

LabelDefaultColorGet:

() -> OESystem::OEColor

This function returns the default color for labels.

LabelDefaultColorSet:

(OESystem::OEColor c)

This function sets the default color for labels.

LabelFixedSizeGet:

() -> bool

Returns whether or not labels are drawn using a fixed size on the screen or whether they scale with zooming of the scene.

LabelFixedSizeSet:

(bool fixed)

Sets whether or not labels are drawn using a fixed size on the screen or whether they scale with zooming of the scene.

MoleculeAddHydrogens:

(OEKey k, bool polarOnly)

This function adds hydrogens to the molecule associated with the specified key. If the polarOnly parameter is set, only polar hydrogens will be added.

MoleculeAddHydrogensScoped:

(bool polarOnly, integer scope)

This function adds hydrogens to the molecules int the specified scope. If the polarOnly parameter is set, only polar hydrogens will be added.

MoleculeAtomBondStyleSetScoped:

(string atomStyle, string bondStyle, integer scope)

Set the combined style for atoms and bonds.

o atomStyle is the style to set the atom , see AtomStyleSetScoped. o bondStyle is the style to set the bond, see BondStyleSetScoped. o scope is the default scope to use.

MoleculeColorByScoped:

(string property, string params, integer scope)

This color colors all the molecules in the specified scope according to the scheme specified by the property parameter. Valid properties include:

* "amino"
* "bfactor"
* "chain"
* "charge"
* "cpk"
* "cpknew"
* "formal charge"
* "group"
* "hbond"
* "hydrophobicity"
* "partial charge"
* "shapely"

If the specified property is hydrophobicity, the specific scale to be used can be specified in the params parameter. Valid scale options include:

* "charifson"
* "eisenberg"
* "kytedolittle"
* "whiteoctanol"

For more details on the specifics of these coloring scheme, please see the user manual.

MoleculeColorsResetScoped:

(integer scope)

This function restores the default atom and bond coloring to those atoms and bonds in the specified scope. It is essentially equivalent to calling AtomClearColorScoped followed by BondClearColorScoped.

MoleculeDarkColorsGet:

() -> bool

Returns whether or not the application is using either the atom or residue color palette designed for dark colored backgrounds. Otherwise, the application is using the atom color palettes designed for light colored backgrounds. All of these palettes can be edited in the preferences. For more information, see the functions AtomDarkColorsGet and ResidueDarkColorsGet.

MoleculeDarkColorsSet:

(bool dark)

Sets whether or not the application is using the atom and residue color palettes designed for dark colored backgrounds. Otherwise, the application is using the atom color palettes designed for light colored backgrounds. All of these palettes can be edited in the preferences. For more information, see the functions AtomDarkColorsSet and ResidueDarkColorsSet.

MoleculeShowfAntsyGet:

() -> bool

Returns whether or not the application is using the high quality molecule representations as opposed to standard models.

MoleculeShowfAntsySet:

(bool show) -> bool

Sets whether or not the application is using the high quality molecule representations as opposed to standard models.

MoleculeSizeCutoffGet:

() -> integer

Returns the atom number cutoff at which point a molecule is considered to be a "large" molecule. The default is 255.

MoleculeSizeCutoffSet:

(integer size)

Sets the atom number cutoff at which point a molecule is considered to be a "large" molecule. The default is 255.

MoleculeStyleGet:

() -> string

Returns the default molecule style. The default is "stick". See the MoleculeStyleSetScoped function for more information about molecule styles.

MoleculeStyleGetScoped:

(integer scope) -> integer

Returns the style of the molecules in the specified scope. If there are multiple styles present, the return type is "mixed". See the MoleculeStyleSetScoped function for more information about molecule styles.

MoleculeStyleLargeGet:

() -> string

Returns the default molecule style for large molecules, where large is determined by whether or not the number of atoms in the molecule exceeds the specified cutoff. For more information on this cutoff, see the MoleculeSizeCutoff function. The default is "wireframe". See the MoleculeStyleSetScoped function for more information about moleceule styles.

MoleculeStyleLargeSet:

(string style)

(integer style)

Sets the default molecule style for large molecules, where large is determined by whether or not the number of atoms in the molecule exceeds the specified cutoff. For more information on this cutoff, see the MoleculeSizeCutoff function. The default is "wireframe". See the MoleculeStyleSetScoped function for more information about moleceule styles.

MoleculeStyleNucleicGet:

() -> string

Returns the default molecule style for nucleic acids. The default is to mirror the large molecule style. See the MoleculeStyleLargeSet function for more information about large molecules and see the MoleculeStyleSetScoped function for more information about molecule styles.

Note: this function is a placeholder for a future implementation and therefore does not currently have any effect.

MoleculeStyleNucleicSet:

(string style)

(integer style)

Sets the default molecule style for nucleic acids. The default is to mirror the large molecule style. See the MoleculeStyleLargeSet function for more information about large molecules and see the MoleculeStyleSetScoped function for more information about molecule styles.

Note: this function is a placeholder for a future implementation and therefore does not currently have any effect.

MoleculeStyleSet:

(string atomStyle)

(integer style)

Sets the default molecule style. This function accepts either a string or an enumerated representation as its parameter. The default is "stick". See the MoleculeStyleSetScoped function for more information about molecule styles.

MoleculeStyleSetScoped:

(string atomStyle, integer scope)

(integer style, integer scope)

Sets the display style for the specified molecules. This function accepts either a string or an enumerated representation as its parameter. Available molecule styles include:

* "ball and stick" molecules are drawn in ball and stick mode
* "cpk"            molecules are drawn in CPK mode
* "stars"          molecules are drawn in star mode
* "stick"          molecules are drawn in stick mode
* "wireframe"      molecules are drawn in wireframe mode
* "none"           molecules are not drawn, but are still considered visible and thus selectable
* "hidden"         molecules are not drawn and are not considered visible and thus are not selectable

MoleculeStyleToEnum:

(string style) -> integer

This function returns the enumerated type associated the specified string molecule style representation. See the MoleculeStyleSetScoped function for more information about molecule styles.

MoleculeStyleToText:

(integer style) -> string

This function returns the text string associated with the specified enumerated molecule style representation. See the MolStyleSetScoped function for more information about molecule styles.

PaneActivated:

(integer pane)

In matrix (tiled) mode, sets the specified pane to be the active pane in the display. Ordinarily, this function should not need to be called by the user.

ResidueColorPaletteUpdate:

()

This function updates the default residue coloring palette based on whether or not the application is using a dark or light colored background scheme. This function is called internally and should not by called by the user.

ResidueDarkColorsGet:

() -> bool

Returns whether or not the application is using the residue color palette designed for dark colored backgrounds. Otherwise, the application is using the residue color palette designed for light colored backgrounds. Both of these palettes can be edited in the preferences.

ResidueDarkColorsSet:

(bool dark)

Sets whether or not the application is using the residue color palette designed for dark colored backgrounds. Otherwise, the application is using the residue color palette designed for light colored backgrounds. Both of these palettes can be edited in the preferences.

ResidueDefaultColorGet:

() -> OESystem::OEColor

(integer res) -> OESystem::OEColor

Returns the current default residue color. The default residue color is applied to every residue that does not have its own specific default color assigned. Calling this function with the res parameter returns the specific default color associated with the passed residue index.

ResidueDefaultColorSet:

(OESystem::OEColor c)

(integer res, OESystem::OEColor c)

Sets the current default residue color. The default residue color is applied to every residue that does not have its own specific default color assigned. Calling this function with the res parameter sets the specific default color associated with the passed residue index.

SceneDrawActiveBorderGet:

() -> bool

Returns whether or not a border is drawn (in matrix mode) around the cell containing the focused object.

SceneDrawActiveBorderSet:

(bool draw)

Sets whether or not a border is drawn (in matrix mode) around the cell containing the focused object.

SceneMatrixModeGet:

() -> string

Returns the display style for the individual cells when the application is in matrix mode. Available styles are: "OnePerView", "LockedOnAll", and "LockedPerView".

SceneMatrixModeSet:

(string mode) -> string

Sets the display style for the individual cells when the application is in matrix mode. Available styles are: "OnePerView", "LockedOnAll", and "LockedPerView".

SelectAllMolecules:

()

This function selects every molecule that is currently visible.

SelectByQuery:

(string query, bool mark, integer scope)

This function selects every molecule in the specified scope based on whether or not it matches the specified substructure query. Valid query inputs include SMILES, SMARTS, and IUPAC as well as common names. The IUPAC and common name to structure conversion is performed by the Ogham toolkit.

SelectKeys:

([OEKey, ...] atomsKeys)

This function selects the objects corresponding to each of the keys specified in the parameter list keys.

SelectOERID:

(integer id, bool selected)

This function sets the selected property on the object corresponding to the specified id. The selected parameter specifies whether or not the object should either be selected or unselected.

SelectionColorBlendFactorGet:

() -> float

Returns the alpha buffer coloring blending factor for selection colors. The default value is 1.0 which corresponds to zero blending with the selection color being the one displayed. A value of 0.0 also corresponds to zero blending but with the underlying color being the one displayed. A value of 0.5 corresponds to even blending of the underlying color and the selected color.

SelectionColorBlendFactorSet:

(float alpha) -> float

Sets the alpha buffer coloring blending factor for selection colors. The default value is 1.0 which corresponds to zero blending with the selection color being the one displayed. A value of 0.0 also corresponds to zero blending but with the underlying color being the one displayed. A value of 0.5 corresponds to even blending of the underlying color and the selected color.

TitleDefaultColorGet:

() -> OESystem::OEColor

This function returns the default color for titles.

TitleDefaultColorSet:

(OESystem::OEColor c)

This function returns the default color for titles.

TitlesDrawAboveGet:

() -> bool

Returns whether or not titles are drawn at the top of the scene or the bottom of the scene.

TitlesDrawAboveSet:

(bool top)

Sets whether or not titles are drawn at the top of the scene or the bottom of the scene.

TransparencySet:

(OEKey , integer alpha)

This function sets the transparency of the object associated with the specified key. The transparency is determined by the specified parameter alpha which corresponds to the desired alpha value of the object's color. Alpha can range from 0 (completely transparent) to 255 (completely opaque).

TransparencySetScoped:

(integer alpha, integer scope)

This function sets the transparency of all the objects in the specified scope. The transparency is determined by the specified parameter alpha which corresponds to the desired alpha value of the object's color. Alpha can range from 0 (completely transparent) to 255 (completely opaque).

UpdateStyleWidget:

()

This function notifies the style widget that it should update itself due to changes that might affect its display.

Grid Geometer Library

ContourAutoCenterGet:

(integer id) -> bool

Returns whether or not reentrant grids are automatically contoured at the center of the scene.

ContourAutoCenterSet:

(integer id, bool center) -> bool

Sets whether or not reentrant grids are automatically contoured at the center of the scene. If this is set to true, translating the center of the scene will cause the grids to be recontoured as the scene moves.

ContourAutoContourGet:

() -> bool

Returns whether or not reentrant grids are automatically recontoured when the center of the scene is changed.

ContourAutoContourRadiusScaleSet:

(float radius, float scale) -> bool

Sets the radius and scale parameters used in determining how to contour a reentrant grid around the center of the scene.

ContourAutoContourSet:

(bool autocontour)

Sets whether or not reentrant grids are automatically recontoured when the center of the scene is changed.

ContourCenter:

(integer id) -> [float, ...]

(integer id, [float, ...] var2) -> [float, ...]

Returns the scene center position associated with the specified contour.

ContourColorForIndexGet:

(integer id, integer index) -> OESystem::OEColor

Return the color of the grid contour specified by the grid id and contour index.

ContourColorForIndexGetScoped:

(integer index, integer scope) -> OESystem::OEColor

Returns the color of the grid contours in the specified scope at contour index index. This color is determined by looking at the first contour found in the specified scope.

ContourColorForIndexSet:

(integer id, integer index, OESystem::OEColor color) -> OESystem::OEColor

For grid id in scope set the color of contour index to color.

ContourColorForIndexSetScoped:

(integer index, OESystem::OEColor color, integer scope) -> OESystem::OEColor

For all grids in scope set the color of contour index to color.

ContourColorSet:

(OEKey , OESystem::OEColor var2)

This function sets the color of the contour associated with the specified key.

ContourColorSetScoped:

(OESystem::OEColor , integer scope)

This function sets the color of the contours in the specified scope.

ContourCount:

(integer id) -> integer

Returns the number of contours for grid id.

ContourCountScoped:

(integer scope) -> int

Returns the number of contours for all grids in scope.

This returns the number of contours for the focused grid or the first grid found in the given scope.

ContourCreate:

(integer id)

(integer id, float threshold)

(integer id, float threshold, OESystem::OEColor color)

Create a new contour for grid id.

ContourCurrentGridGet:

() -> integer

This function is obsolete and has been deprecated.

ContourCurrentGridSet:

(integer id) -> integer

This function is obsolete and has been deprecated.

ContourDeleteAll:

(integer id)

Delete all contours for grid id.

ContourDeleteByIndex:

(integer id, integer index)

Delete contour index for grid id. All contours with indices greater than index will now be at their current index - 1.

ContourDeleteByThreshold:

(integer id, float threshold)

Delete all contours abouve threshold for grid id.

Contour indices will be reassigned.

ContourDrawAsSurfaceGet:

(integer id) -> bool

Returns whether or not the contour should be drawn as a solid surface or as a mesh.

ContourDrawAsSurfaceSet:

(integer id, bool draw) -> bool

Sets whether or not the contour should be drawn as a solid surface or as a mesh.

ContourDrawAsSurfaceSetScoped:

(bool draw, integer scope)

Returns the style of contour drawing for the surfaces in scope.

See ContourDrawAsSurfaceGet.

Essentially returns the state of the first grid found in scope.

ContourDrawStyleGet:

(integer id) -> string

If "surface" the contours are drawn as a surface, otherwise the contour is drawn as a mesh.

ContourDrawStyleSet:

(integer id, string var2)

If set to "surface" the contours are drawn as a surface, otherwise the contour is drawn as a mesh.

ContourDrawStyleSetScoped:

(string , integer scope)

Set the drawstyle to all contours in scope.

ContourEntireGridGet:

(integer id) -> bool

Returns true if grid id is contoured over the whole grid.

Returns false if only the portion near the center of the scene is contoured.

ContourEntireGridSet:

(integer id, bool entire) -> bool

If true contour the entire extent of grid id, otherwise only contour the portion near the center of the drawing scene.

ContourExtractIsoSurface:

(integer id, integer vertex, bool maskVis) -> integer

Reserved for internal use.

ContourFixAsSurfaceScoped:

(integer scope) -> [integer, ...]

ContourGetAll:

(integer id) -> [float, ...]

Get all contour levels from each contour drawn for grid id.

ContourHideIndex:

(integer index, bool hide)

(integer id, integer index, bool hide)

This function controls the visibility of the contour specified by the grid id and contour index. If the hide parameter is set to true, the contour is hidden, otherwise the contour is shown.

ContourHideIndexGet:

(integer id, integer index) -> bool

This function returns whether or not the contour specified by the grid id and contour index is hidden or not.

ContourHideIndexSet:

(integer index, bool hide)

(integer id, integer index, bool hide)

This function controls the visibility of the contour specified by the grid id and contour index. If the hide parameter is set to true, the contour is hidden, otherwise the contour is shown.

ContourLevelForIndexGet:

(integer id, integer index) -> float

Returns the contour level for grid id at index id.

ContourLevelForIndexGetScoped:

(int index, integer scope) -> float

Returns the contour level for index id for the first grid in scope.

ContourLevelForIndexSet:

(integer id, integer index, float thresh) -> float

Set the level for the contour at index index to thresh for grid id.

ContourLevelForIndexSetScoped:

(integer index, float thresh, integer gridType, integer scope)

Set the level for the contour at index index to thresh for all grids in scope.

ContourLevelNudgeScoped:

(bool increase, integer scope)

This function increases or decreases the contour value for the contours in the specified scope by 0.1 depending on whether the increase parameter is set to true or false.

ContourLevelSetScoped:

(float level, integer scope)

This function sets the contour level of all the contours in the specified scope to the value specified by the parameter level.

ContourLineWidthGet:

(integer id) -> float

Returns the line width for drawing mesh contours.

ContourLineWidthSet:

(integer id, float rad) -> float

Set the line width to width for drawing mesh contours.

ContourMax:

(integer oerid) -> float

Returns the maximum allowable contour threshold for grid id.

ContourMaxScoped:

(integer scope) -> float

Returns the maximum allowable contour threshod for the first grid found in scope.

ContourMin:

(integer oerid) -> float

Returns the minimum allowable contour threshold for grid id.

ContourMinScoped:

(integer scope) -> float

Returns the minimum allowable contour threshod for the first grid found in scope.

ContourPickIsoSurfacesGet:

() -> bool

Returns whether or not contours are selectable by picking.

ContourPickIsoSurfacesSet:

(bool pickable)

Sets whether or not contours are selectable by picking.

ContourRadiusGet:

(integer id) -> float

Returns the radius used when generating contours for crystallographic grids.

ContourRadiusSet:

(integer id, float rad) -> float

Sets the radius used when generating contours for crystallographic grids.

ContourResolutionGet:

(integer id) -> float

Return the contouring resolution for drawing the contours in angstroms. A lower resolution samples more grid points, but requires more memory.

ContourResolutionSet:

(integer id, float rad) -> float

Set the contouring resolution in angstroms. Lower values sample more grid points and generate finer visualizations but require more memory.

ContourTransparencySet:

(OEKey , integer var2)

Sets the transparency of the contour associated with the specified key. The transparency is determined by the alpha parameter which corresponds to the color alpha value which can range from 0 (completely transparent) to 255 (completely opaque).

ContourTypedAddScoped:

(integer scope)

Add a single contour to all grids of type type in scope.

ContourTypedCountScoped:

(integer scope) -> int

Return the number of contours of all grids of type type in scope. This essentially returns the number of contours of the first grid found.

ContourTypedMaxScoped:

(integer scope) -> float

Returns the maximum allowable threshold for the first grid found of type type in scope.

ContourTypedMinScoped:

(integer scope) -> float

Returns the minimum allowable threshold for the first grid found of type type in scope.

ContourTypedRemoveScoped:

(integer scope)

Remove the last contour from all grids of type type in scope.

ContourTypedSetLevelForIndexScoped:

(integer index, float thresh, integer scope)

Set the contour level for the contour at index for all grids of type type in scope.

DrawContoursGet:

() -> bool

Returns true if the contours are being drawn. Returns false if no contours are being drawn.

DrawContoursSet:

(bool draw) -> bool

If draw is true, then draw all contours for each visible grid. Otherwise no contours are drawn.

GridCreateElectrostaticsGrid:

(OEKey k, bool property) -> integer

Create an electrostatis grid for molecule id.

If property is true, then this grid is attached to id and does not show up in the list window. These grids cannot be saved to disk.

If property is false, then this grid is created as a seperate entity from id.

GridCreateGaussian:

(OEKey k, float res) -> integer

Creates a gaussian grid representation for the molecule associated with the specified key at the specified resolution.

GridCreateGaussianProduct:

(OEKey k, float res) -> integer

Creates a gaussian product grid representation for the molecule associated with the specified key at the specified resolution.

GridDefaultContourColorByIndexGet:

(integer gridType, integer index) -> OESystem::OEColor

Returns the default contour color for contour index for grids of type gridType.

GridDefaultContourColorByIndexSet:

(integer gridType, integer index, OESystem::OEColor color)

Set the default contour color for contour index for grids of type gridType.

GridDefaultContourLevelByIndexGet:

(integer gridType, integer index) -> float

Returns the default contour level for contour index for grids of type gridType.

GridDefaultContourLevelByIndexSet:

(integer gridType, integer index, float thresh)

Set the default contour level thresh for contour index for grids of type gridType.

GridDefaultDrawAsSurfaceGet:

(integer gridType) -> bool

Returns the default drawing style for contours of grid with type gridType.

If true, then the surface is drawn as a solid surface, otherwise the surface is drawn as a mesh.

GridDefaultDrawAsSurfaceSet:

(integer gridType, bool asSurf)

Set the default drawing style asSurf for contours of grid with type gridType.

If asSurf is true, then the surface is drawn as a solid surface, otherwise the surface is drawn as a mesh.

GridDefaultNumContoursGet:

(integer gridType) -> integer

Returns the default number of contours for grids of type gridType.

GridDefaultNumContoursSet:

(integer gridType, integer count)

Set the default number of contours for grids of type gridType to count.

GridInitializeContours:

(integer id, bool update)

Initialize a grid to it's default contours, colors and levels.

GridNormalize:

(integer id) -> bool

Normalizes a grid. This finds the sigma for the grid and divides all grid points by that value.

GridShowCornersGet:

() -> bool

Returns true if grid corners are being shown false if not.

Grid corners are indicators of the extent of visible grids. They are useful for displaying uncontoured grids and showing whether grid space and molecules intersect.

GridShowCornersSet:

(bool show)

Set show to true to show grid corners, false if not.

Grid corners are indicators of the extent of visible grids. They are useful for displaying uncontoured grids and showing whether grid space and molecules intersect.

GridShowLastMaskedGrid:

(bool show) -> integer

Reserved for internal use.

GridToGaussianGrid:

(integer id) -> integer

Creates a gaussian grid representation for the specified grid.

GridTypeGet:

(integer oerid) -> integer

Returns the type of grid for grid id.

GridTypeGetScoped:

(integer scope) -> integer

Returns the type of grid for the first grid found in scope.

GridTypeSet:

(integer id, integer gridType)

Set the grid type of grid id to gridType.

GridTypeSetScoped:

(integer gridType, integer scope)

Scoped version of GridTypeSet.

GridWorkingGetScoped:

(integer scope) -> integer

Returns the ID for the "working grid" which is determined in the following order: grid associated with selected contour, grid which is currently focused, grid which is a child object of the currently focused object, or lastly the first grid found in the current default scope.

ShowESGridScoped:

(bool show, integer scope)

If show is true, attach and show electrostatic grids to all molecules in scope.

If show if false, hide all attached electrostatic grids to molecules in scope.

Interpreter Library

InterpreterDebugTextColorGet:

() -> OESystem::OEColor

InterpreterDebugTextColorSet:

(OESystem::OEColor c)

InterpreterErrorTextColorGet:

() -> OESystem::OEColor

InterpreterErrorTextColorSet:

(OESystem::OEColor c)

InterpreterInteractiveSet:

(bool interactive)

InterpreterOutputTextColorGet:

() -> OESystem::OEColor

InterpreterOutputTextColorSet:

(OESystem::OEColor c)

List Library

ListWindowDump:

(bool expand) -> string

(bool expand) -> string

ListWindowFocusOnOERID:

(integer id)

(integer id)

ListWindowGetCurrentPos:

() -> [integer, ...]

() -> [integer, ...]

ListWindowHideColumn:

(integer column)

(integer column)

ListWindowNextList:

() -> bool

() -> bool

ListWindowNextListItem:

() -> bool

() -> bool

ListWindowPrevList:

() -> bool

() -> bool

ListWindowPrevListItem:

() -> bool

() -> bool

ListWindowReadState:

(string fname) -> integer

(string fname) -> integer

ListWindowSetCurrentPos:

([integer, ...] pos)

([integer, ...] pos)

ListWindowShowColumn:

(integer column)

(integer column)

ListWindowShowKeyGet:

() -> bool

() -> bool