#include <openbabel/depict/depict.h>
|  | 
| enum | AtomLabelType { AtomId = 1, 
AtomIndex, 
AtomSymmetryClass, 
AtomValence,
 AtomTetrahedralStereo
 }
 | 
|  | 
| enum | OptionType { bwAtoms = 0x0001, 
internalColor = 0x0002, 
noMargin = 0x0004, 
drawTermC = 0x0010,
 drawAllC = 0x0020, 
noWedgeHashGen = 0x0100, 
asymmetricDoubleBond = 0x0200, 
allExplicit = 0x0400
 }
 | 
|  | 
2D depiction of molecules using OBPainter. 
- Since
- version 2.3 
◆ AtomLabelType
| Enumerator | 
|---|
| AtomId |  | 
| AtomIndex |  | 
| AtomSymmetryClass |  | 
| AtomValence |  | 
| AtomTetrahedralStereo |  | 
 
 
◆ OptionType
| Enumerator | 
|---|
| bwAtoms |  | 
| internalColor |  | 
| noMargin |  | 
| drawTermC |  | 
| drawAllC |  | 
| noWedgeHashGen |  | 
| asymmetricDoubleBond |  | 
| allExplicit |  | 
 
 
◆ OBDepict() [1/2]
◆ OBDepict() [2/2]
◆ ~OBDepict()
◆ DrawMolecule()
      
        
          | bool DrawMolecule | ( | OBMol * | mol | ) |  | 
      
 
Draw mol using the painter previously stored in the constructor.
- Returns
- True if successful. 
d->drawTerminalC) 
 
 
◆ AddAtomLabels()
Draw atom labels of a specified type.
- Returns
- True if successful. 
 
 
◆ SetBondLength()
      
        
          | void SetBondLength | ( | double | length | ) |  | 
      
 
 
◆ GetBondLength()
      
        
          | double GetBondLength | ( |  | ) | const | 
      
 
 
◆ SetPenWidth()
      
        
          | void SetPenWidth | ( | double | length | ) |  | 
      
 
 
◆ GetPenWidth()
      
        
          | double GetPenWidth | ( |  | ) | const | 
      
 
 
◆ SetBondSpacing()
      
        
          | void SetBondSpacing | ( | double | spacing | ) |  | 
      
 
 
◆ GetBondSpacing()
      
        
          | double GetBondSpacing | ( |  | ) | const | 
      
 
 
◆ SetBondWidth()
      
        
          | void SetBondWidth | ( | double | width | ) |  | 
      
 
 
◆ GetBondWidth()
      
        
          | double GetBondWidth | ( |  | ) | const | 
      
 
 
◆ SetOption()
      
        
          | void SetOption | ( | unsigned | opts | ) |  | 
      
 
 
◆ GetOptions()
      
        
          | unsigned GetOptions | ( |  | ) | const | 
      
 
 
◆ ClearOptions()
◆ SetFontFamily()
      
        
          | void SetFontFamily | ( | const std::string & | family | ) |  | 
      
 
 
◆ GetFontFamily()
      
        
          | const std::string & GetFontFamily | ( |  | ) | const | 
      
 
 
◆ SetFontSize()
      
        
          | void SetFontSize | ( | int | pointSize, | 
        
          |  |  | bool | subscript = false | 
        
          |  | ) |  |  | 
      
 
 
◆ GetFontSize()
      
        
          | int GetFontSize | ( | bool | subscript = false | ) | const | 
      
 
 
◆ SetAliasMode()
      
        
          | void SetAliasMode | ( | bool | b = true | ) |  | 
      
 
 
◆ SetBondColor()
      
        
          | void SetBondColor | ( | const std::string & | scolor | ) |  | 
      
 
 
The documentation for this class was generated from the following files: