.. include:: ../../common/cookbook/cookbook-hyperlinks

.. oe:namespace:: OEGrapheme

.. meta::
   :keywords: OE2DPropMap, 2DPropMap


.. _OEGrapheme_OE2DPropMap:

.. oe:class:: OE2DPropMap

   .. oe:api::

      class OE2DPropMap

   The :ref:`OE2DPropMap <OEGrapheme_OE2DPropMap>` class maps atom properties
   into a 2D grid and then *blurs* the image by using a Gaussian
   function.
   The points of the 2D grid are then colored using the
   :ref:`OELinearColorGradient <OESystem_OELinearColorGradient>` class that interpolates
   colors between a specified range.

   .. seealso::

      * :ref:`chapter_draw_prop_map` chapter

   .. admonition:: Code Example

      * `Visualizing Molecular Dipole Moment`_ **OpenEye Python Cookbook** recipe

   The :ref:`OE2DPropMap <OEGrapheme_OE2DPropMap>` class can be customized with the following properties:

      .. list-table::
         :widths: 100 100 100 150
         :header-rows: 1

         * - Property
           - Get method
           - Set method
           - Corresponding namespace/class

         * - legend font
           - :oe:meth:`GetLegendFont<OEGrapheme::OE2DPropMap::GetLegendFont>`
           - :oe:meth:`SetLegendFont<OEGrapheme::OE2DPropMap::SetLegendFont>`
           - :ref:`OEFont <OEDepict_OEFont>`

         * - legend font scale
           - :oe:meth:`GetLegendFontScale<OEGrapheme::OE2DPropMap::GetLegendFontScale>`
           - :oe:meth:`SetLegendFontScale<OEGrapheme::OE2DPropMap::SetLegendFontScale>`
           -

         * - legend location
           - :oe:meth:`GetLegendLocation<OEGrapheme::OE2DPropMap::GetLegendLocation>`
           - :oe:meth:`SetLegendLocation<OEGrapheme::OE2DPropMap::SetLegendLocation>`
           - :oe:constns:`OEGrapheme::OELegendLocation`

         * - maximum value
           - :oe:meth:`GetMaxValue<OEGrapheme::OE2DPropMap::GetMaxValue>`
           - :oe:meth:`SetMaxValue<OEGrapheme::OE2DPropMap::SetMaxValue>`
           -

         * - minimum value
           - :oe:meth:`GetMinValue<OEGrapheme::OE2DPropMap::GetMinValue>`
           - :oe:meth:`SetMinValue<OEGrapheme::OE2DPropMap::SetMinValue>`
           -

         * - negative color
           - :oe:meth:`GetNegativeColor<OEGrapheme::OE2DPropMap::GetNegativeColor>`
           - :oe:meth:`SetNegativeColor<OEGrapheme::OE2DPropMap::SetNegativeColor>`
           - :ref:`OEColor <OESystem_OEColor>`

         * - positive color
           - :oe:meth:`GetPositiveColor<OEGrapheme::OE2DPropMap::GetPositiveColor>`
           - :oe:meth:`SetPositiveColor<OEGrapheme::OE2DPropMap::SetPositiveColor>`
           - :ref:`OEColor <OESystem_OEColor>`

         * - radius ratio
           - :oe:meth:`GetRadiusRatio<OEGrapheme::OE2DPropMap::GetRadiusRatio>`
           - :oe:meth:`SetRadiusRatio<OEGrapheme::OE2DPropMap::SetRadiusRatio>`
           -

         * - grid resolution
           - :oe:meth:`GetResolution<OEGrapheme::OE2DPropMap::GetResolution>`
           - :oe:meth:`SetResolution<OEGrapheme::OE2DPropMap::SetResolution>`
           -

   .. oe:method:: Constructors

      .. oe:language:: c++ java csharp

         .. oe:api::

            OE2DPropMap(const OESystem::OEColor& backgroundColor = OESystem::OEColor(255, 255, 255))

      .. oe:language:: python

         .. oe:api:: python

            OE2DPropMap(backgroundColor: OEColor = OEColor(255, 255, 255)) -> OE2DPropMap

      Default constructor.

      .. oe:language:: c++ java csharp

         .. oe:api::

            OE2DPropMap(const OE2DPropMap& rhs)

      .. oe:language:: python

         .. oe:api:: python

            OE2DPropMap(arg2: OE2DPropMap) -> OE2DPropMap

      Copy constructor.


   .. oe:method:: operator=
      :language: c++

      .. oe:api::

         OE2DPropMap &operator=(const OE2DPropMap &)

      Assignment operator.


   .. ################################################################
      # Render
      ################################################################

   .. oe:method:: Render

      .. oe:language:: c++ java csharp

         .. oe:api::

            bool Render(OEDepict::OE2DMolDisplay& disp,
                        const std::string& tagname) const

      .. oe:language:: python

         .. oe:api:: python

            Render(disp: OE2DMolDisplay, tagname: str) -> bool

      Renders the property map into a molecule display.

      *disp*
         The molecule display that holds the molecule for which the
         property map is calculated and on which the property map is
         drawn.
         The property map is drawn onto the *below* layer of the molecule
         display *i.e.*, it appears underneath the molecular diagram.

      *tagname*
         The generic data identifier that is used to retrieve the
         properties being depicted on the property map.

      .. #############################################################

      .. oe:language:: c++ java csharp

         .. oe:api::

            bool Render(OEDepict::OEImageBase& image,
                        const OEDepict::OE2DMolDisplay& disp,
                        const std::string& tagname) const

      .. oe:language:: python

         .. oe:api:: python

            Render(image: OEImageBase, disp: OE2DMolDisplay, tagname: str) -> bool

      Renders the property map into an image.

      *image*
         The image on which the property map is drawn.

      *disp*
         The molecule display that holds the molecule for which the
         property map is calculated.

      *tagname*
         The generic data identifier that is used to retrieve the
         properties being depicted on the property map.


      .. #############################################################

      .. oe:language:: c++ java csharp

         .. oe:api::

            bool Render(OEDepict::OE2DMolDisplay& disp,
                        const OEDepict::OE2DMolDisplay& refdisp,
                        const std::string& tagname) const

      .. oe:language:: python

         .. oe:api:: python

            Render(disp: OE2DMolDisplay, refdisp: OE2DMolDisplay, tagname: str) -> bool

      Renders the property map calculated for one display,
      onto another display.

      *disp*
         The molecule display on which the property map is drawn.
         The property map is drawn onto the *below* layer of the molecule
         display *i.e.*, it appears underneath the molecular diagram.

      *refdisp*
         The molecule display that holds the molecule for which the
         property map is calculated.

      *tagname*
         The generic data identifier that used to retrieve the
         properties being depicted on the property map.


   .. oe:method:: GetLegendFont

      .. oe:language:: c++ java csharp

         .. oe:api::

            const OEDepict::OEFont& GetLegendFont() const

      .. oe:language:: python

         .. oe:api:: python

            GetLegendFont() -> OEFont

      Returns the font that is used to render the title of the legend
      and the color stops of the linear color gradient.

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::SetLegendFont` method
         * :ref:`OEFont <OEDepict_OEFont>` class


   .. oe:method:: GetLegendFontScale

      .. oe:language:: c++ java csharp

         .. oe:api::

            double GetLegendFontScale() const

      .. oe:language:: python

         .. oe:api:: python

            GetLegendFontScale() -> float

      Returns the multiplier that can be used to increase or decrease
      the size of the legend fonts.

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::SetLegendFontScale` method


   .. oe:method:: GetLegendLocation

      .. oe:language:: c++ java csharp

         .. oe:api::

            unsigned int GetLegendLocation() const

      .. oe:language:: python

         .. oe:api:: python

            GetLegendLocation() -> int

      Returns the position of the legend.
      The return value is taken from the
      :oe:constns:`OEGrapheme::OELegendLocation` namespace.

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::SetLegendLocation` method
         * :oe:constns:`OEGrapheme::OELegendLocation` namespace


   .. oe:method:: GetMaxValue

      .. oe:language:: c++ java csharp

         .. oe:api::

            double GetMaxValue() const

      .. oe:language:: python

         .. oe:api:: python

            GetMaxValue() -> float

      Returns the maximum value that is used to construct the
      color gradient of the property map.

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::SetMaxValue` method


   .. oe:method:: GetMinValue

      .. oe:language:: c++ java csharp

         .. oe:api::

            double GetMinValue() const

      .. oe:language:: python

         .. oe:api:: python

            GetMinValue() -> float

      Returns the minimum value that is used to construct the
      color gradient of the property map.

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::SetMinValue` method

   .. oe:method:: GetNegativeColor

      .. oe:language:: c++ java csharp

         .. oe:api::

            const OESystem::OEColor& GetNegativeColor() const

      .. oe:language:: python

         .. oe:api:: python

            GetNegativeColor() -> OEColor

      Returns the color that is used to represent negative atom
      property values.

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::SetNegativeColor` method
         * :ref:`OEColor <OESystem_OEColor>` class

   .. oe:method:: GetPositiveColor

      .. oe:language:: c++ java csharp

         .. oe:api::

            const OESystem::OEColor& GetPositiveColor() const

      .. oe:language:: python

         .. oe:api:: python

            GetPositiveColor() -> OEColor

      Returns the color that is used to represent positive atom property
      values.

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::SetPositiveColor` method
         * :ref:`OEColor <OESystem_OEColor>` class

   .. oe:method:: GetRadiusRatio

      .. oe:language:: c++ java csharp

         .. oe:api::

            double GetRadiusRatio() const

      .. oe:language:: python

         .. oe:api:: python

            GetRadiusRatio() -> float

      Returns he ratio that is used to scale the Gaussian radius.

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::SetRadiusRatio` method

   .. oe:method:: GetResolution

      .. oe:language:: c++ java csharp

         .. oe:api::

            unsigned int GetResolution() const

      .. oe:language:: python

         .. oe:api:: python

            GetResolution() -> int

      Returns the resolution of the property grid.

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::SetResolution` method

   .. oe:method:: SetLegendFont

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetLegendFont(const OEDepict::OEFont& font)

      .. oe:language:: python

         .. oe:api:: python

            SetLegendFont(font: OEFont) -> None

      Sets the font that is used to render the title of the legend
      and the color stops of the linear color gradient.

      .. note::

         The size of fonts of the legend  also depends on
         the scaling factor used to fit the linear color gradient into the
         given dimensions and the multiplier set by the
         :oe:meth:`OEGrapheme::OE2DPropMap::SetLegendFontScale`
         method.

      Example (see :ref:`Figure: Example of using the SetLegendFont method
      <figure_OE2DPropMap_SetLegendFont>`)

      .. oe:source:: OE2DPropMap_SetProperties.py
         :language: python
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-FONT

      ..    oe:language:: python

            :ref:`Full listing. <listing-OE2DPropMap_SetProperties.py>`


      .. oe:source:: OE2DPropMap_SetProperties.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-FONT

      .. oe:source:: OE2DPropMap_SetProperties.java
         :language: java
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-FONT

      .. oe:source:: OE2DPropMap_SetProperties.cs
         :language: csharp
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-FONT

      .. _figure_OE2DPropMap_SetLegendFont:

      .. figure:: ../images/OE2DPropMap_SetLegendFont.*
         :align:  center

         **Example of using the SetLegendFont method**

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::GetLegendFont` method
         * :ref:`OEFont <OEDepict_OEFont>` class

   .. oe:method:: SetLegendFontScale

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetLegendFontScale(double scale)

      .. oe:language:: python

         .. oe:api:: python

            SetLegendFontScale(scale: float) -> None

      Sets the multiplier that can be used to increase or decrease
      the size of the legend fonts.

      *scale*
         This value has to be in the range of ``[0.5, 2.0]``.

      Example (see :ref:`Figure: Example of using the SetLegendFontScale method
      <figure_OE2DPropMap_SetLegendFontScale>`)

      .. oe:source:: OE2DPropMap_SetProperties.py
         :language: python
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-FONT-SCALE

      ..    oe:language:: python

            :ref:`Full listing. <listing-OE2DPropMap_SetProperties.py>`

      .. oe:source:: OE2DPropMap_SetProperties.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-FONT-SCALE

      .. oe:source:: OE2DPropMap_SetProperties.java
         :language: java
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-FONT-SCALE

      .. oe:source:: OE2DPropMap_SetProperties.cs
         :language: csharp
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-FONT-SCALE

      .. _figure_OE2DPropMap_SetLegendFontScale:

      .. figure:: ../images/OE2DPropMap_SetLegendFontScale.*
         :align:  center

         **Example of using the SetLegendFontScale method**

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::GetLegendFontScale` method


   .. oe:method:: SetLegendLocation

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetLegendLocation(unsigned int loc)

      .. oe:language:: python

         .. oe:api:: python

            SetLegendLocation(loc: int) -> None

      Sets the position of the legend.

      *loc*
         This value has to be from the
         :oe:constns:`OEGrapheme::OELegendLocation` namespace.

      Example (see :ref:`Figure: Example of using the SetLegendLocation method
      <figure_OE2DPropMap_SetLegendLocation>`)

      .. oe:source:: OE2DPropMap_SetProperties.py
         :language: python
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-LOCATION

      :ref:`Full listing. <listing-OE2DPropMap_SetProperties.py>`


      .. oe:source:: OE2DPropMap_SetProperties.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-LOCATION

      .. oe:source:: OE2DPropMap_SetProperties.java
         :language: java
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-LOCATION

      .. oe:source:: OE2DPropMap_SetProperties.cs
         :language: csharp
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-LEGEND-LOCATION

      .. _figure_OE2DPropMap_SetLegendLocation:

      .. figure:: ../images/OE2DPropMap_SetLegendLocation.*
         :align:  center

         **Example of using the SetLegendLocation method**

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::GetLegendLocation` method
         * :oe:constns:`OEGrapheme::OELegendLocation` namespace

   .. oe:method:: SetMaxValue

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetMaxValue(double maxv)

      .. oe:language:: python

         .. oe:api:: python

            SetMaxValue(maxv: float) -> None

      Sets the maximum value that is used to construct the
      color gradient of the property map.
      If no maximum value is specified prior to calling the
      :oe:meth:`OEGrapheme::OE2DPropMap::Render` method, then the
      maximum value will be the largest atom property value.

      Example (see :ref:`Figure: Example of using the SetMaxValue method<figure_OE2DPropMap_SetMaxValue>`)

      .. oe:source:: OE2DPropMap_SetProperties.py
         :language: python
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-MAXVALUE

      ..    oe:language:: python

            :ref:`Full listing. <listing-OE2DPropMap_SetProperties.py>`


      .. oe:source:: OE2DPropMap_SetProperties.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-MAXVALUE

      .. oe:source:: OE2DPropMap_SetProperties.java
         :language: java
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-MAXVALUE

      .. oe:source:: OE2DPropMap_SetProperties.cs
         :language: csharp
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-MAXVALUE

      .. _figure_OE2DPropMap_SetMaxValue:

      .. figure:: ../images/OE2DPropMap_SetMaxValue.*
         :align:  center

         **Example of using the SetMaxValue method**

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::GetMaxValue` method

   .. oe:method:: SetMinValue

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetMinValue(double minv)

      .. oe:language:: python

         .. oe:api:: python

            SetMinValue(minv: float) -> None

      Sets the minimum value that is used to construct the
      color gradient of the property map.
      If no minimum value is specified prior to calling the
      :oe:meth:`OEGrapheme::OE2DPropMap::Render` method, then the
      minimum value will be the smallest atom property value.

      Example (see :ref:`Figure: Example of using the SetMinValue method<figure_OE2DPropMap_SetMinValue>`)

      .. oe:source:: OE2DPropMap_SetProperties.py
         :language: python
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-MINVALUE

      ..    oe:language:: python

            :ref:`Full listing. <listing-OE2DPropMap_SetProperties.py>`

      .. oe:source:: OE2DPropMap_SetProperties.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-MINVALUE

      .. oe:source:: OE2DPropMap_SetProperties.java
         :language: java
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-MINVALUE

      .. oe:source:: OE2DPropMap_SetProperties.cs
         :language: csharp
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-MINVALUE

      .. _figure_OE2DPropMap_SetMinValue:

      .. figure:: ../images/OE2DPropMap_SetMinValue.*
         :align:  center

         **Example of using the SetMinValue method**

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::GetMinValue` method

   .. oe:method:: SetNegativeColor

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetNegativeColor(const OESystem::OEColor& color)

      .. oe:language:: python

         .. oe:api:: python

            SetNegativeColor(color: OEColor) -> None

      Sets the color that is used to represent negative atom
      property values.

      Example (see :ref:`Figure: Example of using the SetNegativeColor method<figure_OE2DPropMap_SetNegativeColor>`)

      .. oe:source:: OE2DPropMap_SetProperties.py
         :language: python
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-NEGATIVECOLOR

      :ref:`Full listing. <listing-OE2DPropMap_SetProperties.py>`


      .. oe:source:: OE2DPropMap_SetProperties.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-NEGATIVECOLOR

      .. oe:source:: OE2DPropMap_SetProperties.java
         :language: java
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-NEGATIVECOLOR

      .. oe:source:: OE2DPropMap_SetProperties.cs
         :language: csharp
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-NEGATIVECOLOR

      .. _figure_OE2DPropMap_SetNegativeColor:

      .. figure:: ../images/OE2DPropMap_SetNegativeColor.*
         :align:  center

         **Example of using the SetNegativeColor method**

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::GetNegativeColor` method
         * :ref:`OEColor <OESystem_OEColor>` class

   .. oe:method:: SetPositiveColor

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetPositiveColor(const OESystem::OEColor& color)

      .. oe:language:: python

         .. oe:api:: python

            SetPositiveColor(color: OEColor) -> None

      Sets the color that is used to represent positive atom
      property values.

      Example (see :ref:`Figure: Example of using the SetPositiveColor method<figure_OE2DPropMap_SetPositiveColor>`)

      .. oe:source:: OE2DPropMap_SetProperties.py
         :language: python
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-POSITIVECOLOR

      ..    oe:language:: python

            :ref:`Full listing. <listing-OE2DPropMap_SetProperties.py>`

      .. oe:source:: OE2DPropMap_SetProperties.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-POSITIVECOLOR

      .. oe:source:: OE2DPropMap_SetProperties.java
         :language: java
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-POSITIVECOLOR

      .. oe:source:: OE2DPropMap_SetProperties.cs
         :language: csharp
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-POSITIVECOLOR

      .. _figure_OE2DPropMap_SetPositiveColor:

      .. figure:: ../images/OE2DPropMap_SetPositiveColor.*
         :align:  center

         **Example of using the SetPositiveColor method**

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::GetPositiveColor` method
         * :ref:`OEColor <OESystem_OEColor>` class

   .. oe:method:: SetRadiusRatio

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetRadiusRatio(double ratio)

      .. oe:language:: python

         .. oe:api:: python

            SetRadiusRatio(ratio: float) -> None

      Sets the ratio that is used to scale the Gaussian radius.

      *ratio*
         This value has to be in the range of [0.5, 2.0].

      Example (see :ref:`Figure: Example of using the SetRadiusRatio method<figure_OE2DPropMap_SetRadiusRatio>`)

      .. oe:source:: OE2DPropMap_SetProperties.py
         :language: python
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-RADIUS-RATIO

      :ref:`Full listing. <listing-OE2DPropMap_SetProperties.py>`


      .. oe:source:: OE2DPropMap_SetProperties.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-RADIUS-RATIO

      .. oe:source:: OE2DPropMap_SetProperties.java
         :language: java
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-RADIUS-RATIO

      .. oe:source:: OE2DPropMap_SetProperties.cs
         :language: csharp
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-RADIUS-RATIO

      .. _figure_OE2DPropMap_SetRadiusRatio:

      .. figure:: ../images/OE2DPropMap_SetRadiusRatio.*
         :align:  center

         **Example of using the SetRadiusRatio method**

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::GetRadiusRatio` method

   .. oe:method:: SetResolution

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetResolution(unsigned int resolution)

      .. oe:language:: python

         .. oe:api:: python

            SetResolution(resolution: int) -> None

      Sets the resolution of the property grid.

      *resolution*
         This value has to be in the range of [2, 20].

      Example (see :ref:`Figure: Example of using the SetResolution method<figure_OE2DPropMap_SetResolution>`)

      .. oe:source:: OE2DPropMap_SetProperties.py
         :language: python
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-RESOLUTION

      ..    oe:language:: python

            :ref:`Full listing. <listing-OE2DPropMap_SetProperties.py>`


      .. oe:source:: OE2DPropMap_SetProperties.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-RESOLUTION

      .. oe:source:: OE2DPropMap_SetProperties.java
         :language: java
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-RESOLUTION

      .. oe:source:: OE2DPropMap_SetProperties.cs
         :language: csharp
         :noindent:
         :frag:     SNIPPET-OE2DPROPMAP-RESOLUTION

      .. _figure_OE2DPropMap_SetResolution:

      .. figure:: ../images/OE2DPropMap_SetResolution.*
         :align:  center

         **Example of using the SetResolution method**

      .. seealso::

         * :oe:meth:`OEGrapheme::OE2DPropMap::GetResolution` method.

