Skip to content

Commit

Permalink
Show inheritance in the rips pdm-object based main classes
Browse files Browse the repository at this point in the history
  • Loading branch information
lindkvis committed Feb 18, 2021
1 parent bd61d79 commit f8ec392
Showing 1 changed file with 76 additions and 7 deletions.
83 changes: 76 additions & 7 deletions docs/source/rips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Main Classes

Case class
----------

Overview
^^^^^^^^^
Access to case information.
Inherits :ref:`PdmObjectBase<PdmObjectBaseLabel>` and all its members.

Expand All @@ -18,6 +21,21 @@ Can be accessed with the case() and cases() methods on rips.Project ::
In practise each object is of the sub-classes rips.EclipseCase and rips.GeoMechCase.
See :ref:`AllClasses` for a description of them.

API Documentation
^^^^^^^^^^^^^^^^^
.. autoclass:: rips.Case
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
:noindex:

Detailed documentation :class:`rips.Case`

Examples
^^^^^^^^
See :ref:`all_cases`, :ref:`load_case` and :ref:`selected_cases`.

.. _result-definition-label:

Result Definition
Expand All @@ -39,15 +57,21 @@ result
FLOW_DIAGNOSTICS | |
INJECTION_FLOODING | |

Detailed documentation :class:`rips.Case`

Examples
^^^^^^^^
See :ref:`all_cases`, :ref:`load_case` and :ref:`selected_cases`.

Grid class
----------
Access to grid information

Overview
^^^^^^^^^
Access to grid geometry and size information. Can be accessed with the grid() and grids() methods on rips.Case.

API Documentation
^^^^^^^^^^^^^^^^^
.. autoclass:: rips.Grid
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
:noindex:

Detailed documentation :class:`rips.Grid`

Expand All @@ -57,6 +81,9 @@ See :ref:`grid_information`.

Instance - the main starting point
----------------------------------

Overview
^^^^^^^^^
The basic access class to ResInsight. Use to find or launch a running instance of ResInsight ::

import rips
Expand All @@ -65,6 +92,16 @@ The basic access class to ResInsight. Use to find or launch a running instance o
# Get the ResInsight project
project = resinsight.project

API Documentation
^^^^^^^^^^^^^^^^^

.. autoclass:: rips.Instance
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
:noindex:

Detailed documentation :class:`rips.Instance`

Examples
Expand All @@ -75,6 +112,9 @@ See :ref:`instance_example` and :ref:`launch_with_commandline_options`.

PdmObjectBase class
-------------------

Overview
^^^^^^^^^
The base class of all data classes in ResInsight. Not used directly but all attributes
and methods are available in the other ResInsight data classes.

Expand All @@ -89,10 +129,16 @@ ancestors(), children() and descendants() using a class name as the argument ::

See :ref:`AllClasses` for all classes based on PdmObjectBase.

API Documentation
^^^^^^^^^^^^^^^^^

Detailed documentation :class:`rips.PdmObjectBase`

Project class
-------------

Overview
^^^^^^^^^
The ResInsight project. Inherits :ref:`PdmObjectBase<PdmObjectBaseLabel>` and all its members.
Always available as an object member "project" on the rips.Instance ::

Expand All @@ -103,6 +149,16 @@ Always available as an object member "project" on the rips.Instance ::
# Get the project
project = resinsight.project

API Documentation
^^^^^^^^^^^^^^^^^

.. autoclass:: rips.Project
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
:noindex:

Detailed documentation :class:`rips.Project`

Examples
Expand All @@ -111,9 +167,22 @@ See :ref:`open_project`

View class
----------

Overview
^^^^^^^^^
The base class of all views in ResInsight.
Inherits :ref:`PdmObjectBase<PdmObjectBaseLabel>` and all its members

API Documentation
^^^^^^^^^^^^^^^^^

.. autoclass:: rips.View
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
:noindex:

Detailed documentation :class:`rips.View`

Examples
Expand Down

0 comments on commit f8ec392

Please sign in to comment.