OEDepict TK 2.0.4
================================================================================

New features
--------------------------------------------------------------------------------

* Pie drawing, semi-circle, methods added to the following classes:

  * :oe:meth:`OEDepict::OEImageBase<OEDepict::OEImageBase::DrawPie>`
  * :oe:meth:`OEDepict::OEImage<OEDepict::OEImage::DrawPie>`
  * :oe:meth:`OEDepict::OEImageFrame<OEDepict::OEImageFrame::DrawPie>`

* An example of a python-based web interface and web service have been added.
  The code for this example was on GitHub, as it required multiple files.

* Enabling the depiction of MDL's enhanced stereochemical
  representation by default. 
  See the :oe:const:`OEDepict::OEAtomStereoStyle::Display::MDLStereoCenter` constant.

Major bug fixes
--------------------------------------------------------------------------------

* The following molecule depiction defaults have been changed:

  * The background color is now pure white instead of a very light grey.
  * The bond width is now 2.0 instead of 1.0. 

  See the effect of these changes in :ref:`Table: Example of default molecule depictions
  <table_ExampleDepictionChange>`.

  .. _table_ExampleDepictionChange:

  .. list-table::  **Example of default molecule depictions**

     * - **OEDepict TK 2.0.3**
       - **OEDepict TK 2.0.4**
     * - .. image:: ../../depicttk/images/releasenotes-2.0.4/DepictMolSimple-toolkits2012_Jun.*
       - .. image:: ../../depicttk/images/releasenotes-2.0.4/DepictMolSimple-toolkits2012_Oct.*

Minor bug fixes
--------------------------------------------------------------------------------

* Adding the depiction of R-groups for molecules that have not been
  initialized from a MDL query file. See the example the in the
  :ref:`Table: Example of depicting R-Groups
  <table_ExampleOfRGroupDepiction>`.

  .. _table_ExampleOfRGroupDepiction:

  .. list-table::  **Example of depicting R-Groups**

     * - **OEDepict TK 2.0.3**
       - **OEDepict TK 2.0.4**
     * - .. image:: ../../depicttk/images/releasenotes-2.0.4/RGroupFromSmiles-toolkits2012_Jun.*
       - .. image:: ../../depicttk/images/releasenotes-2.0.4/RGroupFromSmiles-toolkits2012_Oct.*

* Fixed a bug that would erroneously hide the following types of hydrogens in a depiction:

  * isolated hydrogens
  * charged hydrogens
  * hydrogen isotopes

* Fused ring system templates added for 29 different types of complex
  depiction cases. 

* :oe:meth:`OEDepict::OE2DAtomDisplay::SetHCount` method will now place
  the hydrogen position correctly as returned by
  :oe:meth:`OEDepict::OE2DAtomDisplay::GetHPosition`, i.e., the
  position relative to the heavy atom. An incorrect position was
  possible when generating 2D coordinates with
  :oe:func:`OEDepict::OEPrepareDepiction` with the parameter
  ``suppressH`` set to ``false``.

* The stipple factor of a line in now based on the line width
  instead of the scaling factor of the molecule display. 

  .. list-table::  **Example of line width affecting the stipple factor**

     * - **OEDepict TK 2.0.3**
       - **OEDepict TK 2.0.4**
     * - .. image:: ../../depicttk/images/releasenotes-2.0.4/MoleculeAromaticDash-toolkits2012_Jun.*
       - .. image:: ../../depicttk/images/releasenotes-2.0.4/MoleculeAromaticDash-toolkits2012_Oct.*


* Atom stereo depiction improved: 
 
  * The number of individual lines used in the :oe:const:`OEDepict::OEBondDisplayType::Hash` and 
    the :oe:const:`OEDepict::OEBondDisplayType::Wavy` stereo bonds now
    depends on the bond width.
  * Heuristic used to shorten hash and wedge stereo bonds improved. 

  See the effect of these improvements in :ref:`Table: Example of depicting atom stereo
  <table_ExampleStereoBond>`.

  .. _table_ExampleStereoBond:

  .. list-table::  **Example of depicting atom stereo**

     * - **OEDepict TK 2.0.3**
       - **OEDepict TK 2.0.4**
     * - .. image:: ../../depicttk/images/releasenotes-2.0.4/StereoBond-toolkits2012_Jun.*
       - .. image:: ../../depicttk/images/releasenotes-2.0.4/StereoBond-toolkits2012_Oct.*

* :oe:const:`OEDepict::OEBondDisplayType::Any` bond type will now
  properly set the stipple factor for the end pen of that bond.

* Fixing the problem when the default atom label colors were not updated
  after atom color style change.
  For example when setting the atom color style to
  :oe:const:`OEDepict::OEAtomColorStyle::WhiteMonochrome`
  the super atoms remained pink rather than changed to black.
  See the effect of fix in :ref:`Table: Example of using the 'WhiteMonochrome'
  atom color style <table_WhiteMonochrome>`.

  .. _table_WhiteMonochrome:

  .. list-table::  **Example of using the 'WhiteMonochrome' atom color style**

     * - **OEDepict TK 2.0.3**
       - **OEDepict TK 2.0.4**
     * - .. image:: ../../depicttk/images/releasenotes-2.0.4/WhiteMonochrome-toolkits2012_Jun.*
       - .. image:: ../../depicttk/images/releasenotes-2.0.4/WhiteMonochrome-toolkits2012_Oct.*

Documentation changes
--------------------------------------------------------------------------------

* All images are automatically regenerated to reflect the changes made
  since the previous release.
