Graphic Object handling

Graphic objects are represented by the following classes in Marvin: We differentiate two kinds of graphic objects: simple graphic object and graphic object connected to chemical structures like reaction arrow in chemical reaction, or brackets in groups. We store the simple graphic objects in an MDocument object and we store connected object in the related structure. After creating the structure we should add the object to its container class. In case of simple graphic object, the container is always the MDocument object, and the graphic object should be added by method MDocument.addObject(MObject o). In case of graphic object connected to chemical structures, the object is always stored at the related chemical object: in case of reaction arrow (represented by MRArrow) the container class is the reaction (represented by the RxnMolecule). However, all graphic object are available for processing with MDocument methods: Simple graphic objects: Graphic objects connected to chemical structure:

 

 

Atom and bond-set handling
Previous chapter

Table of contents
 

Code examples
Next chapter