Implements the 2D visualization of multiple chemical structures arrange in a grid.
More...
|
None | __init__ () |
| Constructs and initializes a StructureGridView2D instance for the visualization of multiple chemical structures.
|
|
None | __init__ (StructureGridView2D grid_view) |
| Constructs a copy of the StructureGridView2D instance grid_view. More...
|
|
bool | write (str file_name) |
|
bool | write (str file_name, str fmt) |
|
bool | write (str file_name, Base.DataFormat fmt) |
|
bool | write (Base.OStream os, str fmt) |
|
bool | write (Base.OStream os, Base.DataFormat fmt) |
|
FontMetrics | getFontMetrics () |
| Returns a reference to the used font metrics object. More...
|
|
None | setCellSize (float width, float height) |
| Allows to specify the desired width and height of the cells in grid output renderings. More...
|
|
float | getCellWidth () |
| Returns the active grid cell width. More...
|
|
float | getCellHeight () |
| Returns the active grid cell height. More...
|
|
None | resize (int num_rows, int num_cols) |
| Chnages the current number of grid rows and columns. More...
|
|
int | getNumRows () |
| Returns the current number of grid rows. More...
|
|
int | getNumColumns () |
| Returns the current number of grid columns. More...
|
|
None | clearStructures () |
| Clears all specified structures. More...
|
|
None | clearAllText () |
| Clears all specified text blocks. More...
|
|
StructureGridView2D | assign (StructureGridView2D grid_view) |
| Performs a copy assignment of the specified StructureGridView2D instance. More...
|
|
Cell | __call__ (int row, int col) |
| Returns the Cell instance storing the contents of the specified grid cell. More...
|
|
Cell | __getitem__ (tuple row_and_col) |
|
None | render (Renderer2D renderer) |
| Renders the visual representation of the model using the specified Vis.Renderer2D instance. More...
|
|
None | setFontMetrics (FontMetrics font_metrics) |
| Specifies a font metrics object that will be used to measure the dimension of text labels. More...
|
|
None | getModelBounds (Rectangle2D bounds) |
| Calculates the bounding rectangle of the visualized model. More...
|
|
None | setParameter (LookupKey key, Any value) |
|
bool | removeParameter (LookupKey key) |
| Removes the entry for the control-parameter specified by key. More...
|
|
Any | getParameter (LookupKey key, bool throw_=False, bool local=False) |
| Returns the value of the control-parameter specified by key. More...
|
|
Any | getParameterOrDefault (LookupKey key, Any def_value, bool local=False) |
|
bool | isParameterSet (LookupKey key, bool local=False) |
| Tells whether or not a value has been assigned to the control-parameter specified by key. More...
|
|
None | clearParameters () |
| Erases all container entries. More...
|
|
None | addParameters (ControlParameterContainer cntnr) |
| Adds the control-parameter value entries in the ControlParameterContainer instance cntnr. More...
|
|
None | copyParameters (ControlParameterContainer cntnr) |
| Replaces the current set of properties by a copy of the entries in cntnr. More...
|
|
int | getNumParameters () |
| Returns the number of container entries. More...
|
|
int | registerParameterChangedCallback (VoidLookupKeyAnyFunctor func) |
| Registers a callback target function that gets invoked when the value of a control-parameter has changed. More...
|
|
None | unregisterParameterChangedCallback (int id) |
| Unregisters the callback specified by id. More...
|
|
int | registerParameterRemovedCallback (VoidLookupKeyFunctor func) |
| Registers a callback target function that gets invoked when a control-parameter entry has been removed. More...
|
|
None | unregisterParameterRemovedCallback (int id) |
| Unregisters the callback specified by id. More...
|
|
int | registerParentChangedCallback (VoidFunctor func) |
| Registers a callback target function that gets invoked when the parent container has been changed or was detached. More...
|
|
None | unregisterParentChangedCallback (int id) |
| Unregisters the callback specified by id. More...
|
|
ControlParameterContainer | getParent () |
| Returns a reference to the parent control-parameter container. More...
|
|
None | setParent (ControlParameterContainer cntnr) |
| Sets or removes the parent control-parameter container used to resolve requests for missing entries. More...
|
|
list | getParameterKeys () |
|
list | getParameterValues () |
|
list | getParameters () |
| Returns a reference to itself. More...
|
|
int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
|
|
Any | __getitem__ (LookupKey key) |
|
None | __setitem__ (LookupKey key, Any value) |
|
bool | __delitem__ (LookupKey self) |
|
bool | __contains__ (LookupKey self, bool key) |
| Returns the result of the membership test operation self in arg1 . More...
|
|
int | __len__ () |
|
Implements the 2D visualization of multiple chemical structures arrange in a grid.
StructureGridView2D
visualizes multiple chemical structures as 2D structure diagrams arranged in a grid of arbitrary size.
StructureGridView2D
relies on Vis.StructureView2D for structure visualization and thus supports all all of its parameters controlling the graphical details of the generated structure diagrams (colors, fonts, line-widths etc.). Structure visualization parameters of a StructureGridView2D
instance can be set for individual grid cells as well as for the whole grid. Furthermore, any Chem.Atom, Chem.Bond and Chem.MolecularGraph relevant for 2D visualization properties will also be regarded (see Vis.StructureView2D for the list of supported properties). Properties of the visualized structures have a higher priority than the corresponding control-parameters of the grid cells hosting the structures. Likewise, control-parameters set for individual grid cells override the corresponding settings of the StructureGridView2D
instance.
Each grid cell can host up to nine text blocks which are located at the corners, edges and the cell center. Text blocks are stored as Vis.TextBlockPrimitive2D instances which allow the text to span multiple lines and support the styling (colors, italic, bold, sub/super-scripting, etc.) of individual text fragments.
StructureGridView2D
supports the following control-parameters in addition to the ones regarded by Vis.StructureView2D:
Default values for most of the control-parameters are defined in namespace Vis.ControlParameterDefault.
- Since
- 1.2