Package rdkit :: Package Chem :: Package Draw :: Module rdMolDraw2D :: Class MolDraw2D
[hide private]
[frames] | no frames]

Class MolDraw2D

 object --+    
          |    
??.instance --+
              |
             MolDraw2D
Known Subclasses:

Drawer abstract base class

Instance Methods [hide private]
 
DrawMolecule(...)
DrawMolecule( (MolDraw2D)self, (Mol)mol [, (AtomPairsParameters)highlightAtoms=None [, (AtomPairsParameters)highlightAtomColors=None [, (AtomPairsParameters)highlightAtomRadii=None [, (int)confId=-1 [, (str)legend='']]]]]) -> None : renders a molecule
 
DrawString(...)
DrawString( (MolDraw2D)self, (str)string, (Point2D)pos) -> None : add text to the canvas
 
FontSize(...)
FontSize( (MolDraw2D)arg1) -> float : get the default font size
 
Height(...)
Height( (MolDraw2D)arg1) -> int : get the height of the drawing canvas
 
SetFontSize(...)
SetFontSize( (MolDraw2D)arg1, (float)arg2) -> None : change the default font size
 
Width(...)
Width( (MolDraw2D)arg1) -> int : get the width of the drawing canvas
 
__init__(...)
Raises an exception...
 
__reduce__(...)
helper for pickle
 
drawOptions(...)
drawOptions( (MolDraw2D)arg1) -> MolDrawOptions : Returns a modifiable version of the current drawing options

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

DrawMolecule(...)

 

DrawMolecule( (MolDraw2D)self, (Mol)mol [, (AtomPairsParameters)highlightAtoms=None [, (AtomPairsParameters)highlightAtomColors=None [, (AtomPairsParameters)highlightAtomRadii=None [, (int)confId=-1 [, (str)legend='']]]]]) -> None :
    renders a molecule
    

    C++ signature :
        void DrawMolecule(RDKit::MolDraw2D {lvalue},RDKit::ROMol [,boost::python::api::object=None [,boost::python::api::object=None [,boost::python::api::object=None [,int=-1 [,std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >='']]]]])

DrawMolecule( (MolDraw2D)self, (Mol)mol, (AtomPairsParameters)highlightAtoms, (AtomPairsParameters)highlightBonds [, (AtomPairsParameters)highlightAtomColors=None [, (AtomPairsParameters)highlightBondColors=None [, (AtomPairsParameters)highlightAtomRadii=None [, (int)confId=-1 [, (str)legend='']]]]]) -> None :
    renders a molecule
    

    C++ signature :
        void DrawMolecule(RDKit::MolDraw2D {lvalue},RDKit::ROMol,boost::python::api::object,boost::python::api::object [,boost::python::api::object=None [,boost::python::api::object=None [,boost::python::api::object=None [,int=-1 [,std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >='']]]]])

DrawString(...)

 

DrawString( (MolDraw2D)self, (str)string, (Point2D)pos) -> None :
    add text to the canvas

    C++ signature :
        void DrawString(RDKit::MolDraw2D {lvalue},std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >,RDGeom::Point2D)

FontSize(...)

 

FontSize( (MolDraw2D)arg1) -> float :
    get the default font size

    C++ signature :
        double FontSize(RDKit::MolDraw2D {lvalue})

Height(...)

 

Height( (MolDraw2D)arg1) -> int :
    get the height of the drawing canvas

    C++ signature :
        int Height(RDKit::MolDraw2D {lvalue})

SetFontSize(...)

 

SetFontSize( (MolDraw2D)arg1, (float)arg2) -> None :
    change the default font size

    C++ signature :
        void SetFontSize(RDKit::MolDraw2D {lvalue},double)

Width(...)

 

Width( (MolDraw2D)arg1) -> int :
    get the width of the drawing canvas

    C++ signature :
        int Width(RDKit::MolDraw2D {lvalue})

__init__(...)
(Constructor)

 
Raises an exception
This class cannot be instantiated from Python

Overrides: object.__init__

__reduce__(...)

 
helper for pickle

Overrides: object.__reduce__
(inherited documentation)

drawOptions(...)

 

drawOptions( (MolDraw2D)arg1) -> MolDrawOptions :
    Returns a modifiable version of the current drawing options

    C++ signature :
        RDKit::MolDrawOptions {lvalue} drawOptions(RDKit::MolDraw2D {lvalue})