<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>OCC.Standard module — pythonocc API 0.17.3 documentation</title> <link rel="stylesheet" href="_static/css/theme.css" type="text/css" /> <link rel="index" title="Index" href="genindex.html"/> <link rel="search" title="Search" href="search.html"/> <link rel="top" title="pythonocc API 0.17.3 documentation" href="index.html"/> <script src="_static/js/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href="index.html" class="icon icon-home"> pythonocc API </a> <div class="version"> 0.17.3 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <!-- Local TOC --> <div class="local-toc"><ul> <li><a class="reference internal" href="#">OCC.Standard module</a></li> </ul> </div> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="index.html">pythonocc API</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="index.html">Docs</a> »</li> <li>OCC.Standard module</li> <li class="wy-breadcrumbs-aside"> <a href="_sources/OCC.Standard.rst.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="occ-standard-module"> <h1>OCC.Standard module<a class="headerlink" href="#occ-standard-module" title="Permalink to this headline">¶</a></h1> <span class="target" id="module-OCC.Standard"></span><dl class="class"> <dt id="OCC.Standard.Handle_Standard_Failure"> <em class="property">class </em><code class="descname">Handle_Standard_Failure</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Failure" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#OCC.Standard.Handle_Standard_Transient" title="OCC.Standard.Handle_Standard_Transient"><code class="xref py py-class docutils literal"><span class="pre">OCC.Standard.Handle_Standard_Transient</span></code></a></p> <dl class="staticmethod"> <dt id="OCC.Standard.Handle_Standard_Failure.DownCast"> <em class="property">static </em><code class="descname">DownCast</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Failure.DownCast" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Failure.GetObject"> <code class="descname">GetObject</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Failure.GetObject" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Failure.IsNull"> <code class="descname">IsNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Failure.IsNull" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Failure.Nullify"> <code class="descname">Nullify</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Failure.Nullify" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Handle_Standard_Failure.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Handle_Standard_Failure.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Handle_Standard_Transient"> <em class="property">class </em><code class="descname">Handle_Standard_Transient</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Transient" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p> <dl class="staticmethod"> <dt id="OCC.Standard.Handle_Standard_Transient.DownCast"> <em class="property">static </em><code class="descname">DownCast</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Transient.DownCast" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Transient.DumpToString"> <code class="descname">DumpToString</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Transient.DumpToString" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Transient.GetObject"> <code class="descname">GetObject</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Transient.GetObject" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Transient.IsNull"> <code class="descname">IsNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Transient.IsNull" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Transient.Nullify"> <code class="descname">Nullify</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Transient.Nullify" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Handle_Standard_Transient.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Handle_Standard_Transient.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Handle_Standard_Type"> <em class="property">class </em><code class="descname">Handle_Standard_Type</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Type" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#OCC.Standard.Handle_Standard_Transient" title="OCC.Standard.Handle_Standard_Transient"><code class="xref py py-class docutils literal"><span class="pre">OCC.Standard.Handle_Standard_Transient</span></code></a></p> <dl class="staticmethod"> <dt id="OCC.Standard.Handle_Standard_Type.DownCast"> <em class="property">static </em><code class="descname">DownCast</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Type.DownCast" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Type.GetObject"> <code class="descname">GetObject</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Type.GetObject" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Type.IsNull"> <code class="descname">IsNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Type.IsNull" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Handle_Standard_Type.Nullify"> <code class="descname">Nullify</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Handle_Standard_Type.Nullify" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Handle_Standard_Type.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Handle_Standard_Type.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_ErrorHandler"> <em class="property">class </em><code class="descname">Standard_ErrorHandler</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p> <ul class="simple"> <li>Create a ErrorHandler (to be used with try{}catch(){}). It uses the ‘setjmp’ and ‘longjmp’ routines.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <dl class="method"> <dt id="OCC.Standard.Standard_ErrorHandler.Catches"> <code class="descname">Catches</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler.Catches" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns ‘True’ if the caught exception has the same type or inherits from ‘aType’</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aType</strong> (<em>Handle_Standard_Type &</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_ErrorHandler.Destroy"> <code class="descname">Destroy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler.Destroy" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Unlinks and checks if there is a raised exception.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_ErrorHandler.Error"> <code class="descname">Error</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler.Error" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns the current Error.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Handle_Standard_Failure" title="OCC.Standard.Handle_Standard_Failure">Handle_Standard_Failure</a></td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="OCC.Standard.Standard_ErrorHandler.IsInTryBlock"> <em class="property">static </em><code class="descname">IsInTryBlock</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler.IsInTryBlock" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Test if the code is currently running in a try block</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_ErrorHandler.Label"> <code class="descname">Label</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler.Label" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns label for jump</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Standard_JmpBuf</td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="OCC.Standard.Standard_ErrorHandler.LastCaughtError"> <em class="property">static </em><code class="descname">LastCaughtError</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler.LastCaughtError" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns the caught exception.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Handle_Standard_Failure" title="OCC.Standard.Handle_Standard_Failure">Handle_Standard_Failure</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_ErrorHandler.Unlink"> <code class="descname">Unlink</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler.Unlink" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Removes handler from the handlers list</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Standard_ErrorHandler.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_ErrorHandlerCallback"> <em class="property">class </em><code class="descname">Standard_ErrorHandlerCallback</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandlerCallback" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p> <dl class="method"> <dt id="OCC.Standard.Standard_ErrorHandlerCallback.DestroyCallback"> <code class="descname">DestroyCallback</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandlerCallback.DestroyCallback" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>The callback function to perform necessary callback action. Called by the exception handler when it is being destroyed but still has this callback registered.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">void</td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Standard_ErrorHandlerCallback.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandlerCallback.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="function"> <dt id="OCC.Standard.Standard_ErrorHandler_IsInTryBlock"> <code class="descname">Standard_ErrorHandler_IsInTryBlock</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler_IsInTryBlock" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Test if the code is currently running in a try block</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="OCC.Standard.Standard_ErrorHandler_LastCaughtError"> <code class="descname">Standard_ErrorHandler_LastCaughtError</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_ErrorHandler_LastCaughtError" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns the caught exception.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Handle_Standard_Failure" title="OCC.Standard.Handle_Standard_Failure">Handle_Standard_Failure</a></td> </tr> </tbody> </table> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_Failure"> <em class="property">class </em><code class="descname">Standard_Failure</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#OCC.Standard.Standard_Transient" title="OCC.Standard.Standard_Transient"><code class="xref py py-class docutils literal"><span class="pre">OCC.Standard.Standard_Transient</span></code></a></p> <ul class="simple"> <li>Creates a status object of type ‘Failure’.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> <tr class="field-even field"><th class="field-name">Parameters:</th><td class="field-body"><strong>f</strong> (<em>Standard_Failure &</em>) – </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <ul class="simple"> <li>Creates a status object of type ‘Failure’.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aString</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <dl class="staticmethod"> <dt id="OCC.Standard.Standard_Failure.Caught"> <em class="property">static </em><code class="descname">Caught</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure.Caught" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns the last caught exception. Needed when exceptions are emulated by C longjumps, in other cases is also provided for compatibility.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Handle_Standard_Failure" title="OCC.Standard.Handle_Standard_Failure">Handle_Standard_Failure</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Failure.Destroy"> <code class="descname">Destroy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure.Destroy" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Failure.GetHandle"> <code class="descname">GetHandle</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure.GetHandle" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Failure.GetMessageString"> <code class="descname">GetMessageString</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure.GetMessageString" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns error message</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">char *</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Failure.Jump"> <code class="descname">Jump</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure.Jump" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Used to throw CASCADE exception from C signal handler. On platforms that do not allow throwing C++ exceptions from this handler (e.g. Linux), uses longjump to get to the current active signal handler, and only then is converted to C++ exception.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="OCC.Standard.Standard_Failure.NewInstance"> <em class="property">static </em><code class="descname">NewInstance</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure.NewInstance" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Used to construct an instance of the exception object as a handle. Shall be used to protect against possible construction of exception object in C stack – that is dangerous since some of methods require that object was allocated dynamically.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aMessage</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Handle_Standard_Failure" title="OCC.Standard.Handle_Standard_Failure">Handle_Standard_Failure</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Failure.PrintToString"> <code class="descname">PrintToString</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure.PrintToString" title="Permalink to this definition">¶</a></dt> <dd><p>Standard_Failure_PrintToString(Standard_Failure self) -> std::string</p> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Failure.SetMessageString"> <code class="descname">SetMessageString</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure.SetMessageString" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Sets error message</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aMessage</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Standard_Failure.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_Failure.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="function"> <dt id="OCC.Standard.Standard_Failure_Caught"> <code class="descname">Standard_Failure_Caught</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure_Caught" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns the last caught exception. Needed when exceptions are emulated by C longjumps, in other cases is also provided for compatibility.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Handle_Standard_Failure" title="OCC.Standard.Handle_Standard_Failure">Handle_Standard_Failure</a></td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="OCC.Standard.Standard_Failure_NewInstance"> <code class="descname">Standard_Failure_NewInstance</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Failure_NewInstance" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Used to construct an instance of the exception object as a handle. Shall be used to protect against possible construction of exception object in C stack – that is dangerous since some of methods require that object was allocated dynamically.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aMessage</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Handle_Standard_Failure" title="OCC.Standard.Handle_Standard_Failure">Handle_Standard_Failure</a></td> </tr> </tbody> </table> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_GUID"> <em class="property">class </em><code class="descname">Standard_GUID</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <ul class="simple"> <li>build a GUID from an ascii string with the following format: Length : 36 char ‘00000000-0000-0000-0000-000000000000’</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aGuid</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <ul class="simple"> <li>build a GUID from an unicode string with the following format: //! ‘00000000-0000-0000-0000-000000000000’</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aGuid</strong> (<em>Standard_GUID &</em>) – </li> <li><strong>a32b</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> <li><strong>a16b1</strong> (<em>Standard_ExtCharacter</em>) – </li> <li><strong>a16b2</strong> (<em>Standard_ExtCharacter</em>) – </li> <li><strong>a16b3</strong> (<em>Standard_ExtCharacter</em>) – </li> <li><strong>a8b1</strong> (<em>Standard_Byte</em>) – </li> <li><strong>a8b2</strong> (<em>Standard_Byte</em>) – </li> <li><strong>a8b3</strong> (<em>Standard_Byte</em>) – </li> <li><strong>a8b4</strong> (<em>Standard_Byte</em>) – </li> <li><strong>a8b5</strong> (<em>Standard_Byte</em>) – </li> <li><strong>a8b6</strong> (<em>Standard_Byte</em>) – </li> <li><strong>aGuid</strong> – </li> <li><strong>aGuid</strong> – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> </tbody> </table> <dl class="method"> <dt id="OCC.Standard.Standard_GUID.Assign"> <code class="descname">Assign</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.Assign" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>uid</strong> (<em>Standard_UUID &</em>) – </li> <li><strong>uid</strong> – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="OCC.Standard.Standard_GUID.CheckGUIDFormat"> <em class="property">static </em><code class="descname">CheckGUIDFormat</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.CheckGUIDFormat" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Check the format of a GUID string. It checks the size, the position of the ‘-‘ and the correct size of fields.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aGuid</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_GUID.Hash"> <code class="descname">Hash</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.Hash" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Hash function for GUID.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Upper</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="OCC.Standard.Standard_GUID.HashCode"> <em class="property">static </em><code class="descname">HashCode</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.HashCode" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>H method used by collections.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aguid</strong> (<em>Standard_GUID &</em>) – </li> <li><strong>Upper</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></p> </td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="OCC.Standard.Standard_GUID.IsEqual"> <em class="property">static </em><code class="descname">IsEqual</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.IsEqual" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns True when the two GUID are the same.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>string1</strong> (<em>Standard_GUID &</em>) – </li> <li><strong>string2</strong> (<em>Standard_GUID &</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></p> </td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_GUID.IsNotSame"> <code class="descname">IsNotSame</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.IsNotSame" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>uid</strong> (<em>Standard_GUID &</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_GUID.IsSame"> <code class="descname">IsSame</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.IsSame" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>uid</strong> (<em>Standard_GUID &</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_GUID.Set"> <code class="descname">Set</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.Set" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>uid</strong> (<em>Standard_UUID &</em>) – </li> <li><strong>uid</strong> – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_GUID.ShallowDumpToString"> <code class="descname">ShallowDumpToString</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.ShallowDumpToString" title="Permalink to this definition">¶</a></dt> <dd><p>Standard_GUID_ShallowDumpToString(Standard_GUID self) -> std::string</p> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_GUID.ToCString"> <code class="descname">ToCString</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.ToCString" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>translate the GUID into ascii string the aStrGuid is allocated by user. the guid have the following format: //! ‘00000000-0000-0000-0000-000000000000’</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aStrGuid</strong> (<em>Standard_PCharacter</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_GUID.ToExtString"> <code class="descname">ToExtString</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.ToExtString" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>translate the GUID into unicode string the aStrGuid is allocated by user. the guid have the following format: //! ‘00000000-0000-0000-0000-000000000000’</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aStrGuid</strong> (<em>Standard_PExtCharacter</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_GUID.ToUUID"> <code class="descname">ToUUID</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID.ToUUID" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Standard_UUID</td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Standard_GUID.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_GUID.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="function"> <dt id="OCC.Standard.Standard_GUID_CheckGUIDFormat"> <code class="descname">Standard_GUID_CheckGUIDFormat</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID_CheckGUIDFormat" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Check the format of a GUID string. It checks the size, the position of the ‘-‘ and the correct size of fields.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aGuid</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="OCC.Standard.Standard_GUID_HashCode"> <code class="descname">Standard_GUID_HashCode</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID_HashCode" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>H method used by collections.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aguid</strong> (<em>Standard_GUID &</em>) – </li> <li><strong>Upper</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></p> </td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="OCC.Standard.Standard_GUID_IsEqual"> <code class="descname">Standard_GUID_IsEqual</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_GUID_IsEqual" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns True when the two GUID are the same.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>string1</strong> (<em>Standard_GUID &</em>) – </li> <li><strong>string2</strong> (<em>Standard_GUID &</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></p> </td> </tr> </tbody> </table> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_MMgrOpt"> <em class="property">class </em><code class="descname">Standard_MMgrOpt</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_MMgrOpt" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#OCC.Standard.Standard_MMgrRoot" title="OCC.Standard.Standard_MMgrRoot"><code class="xref py py-class docutils literal"><span class="pre">OCC.Standard.Standard_MMgrRoot</span></code></a></p> <ul class="simple"> <li>Constructor. If aClear is True, the allocated emmory will be nullified. For description of other parameters, see description of the class above.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aClear</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_True</li> <li><strong>aMMap</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_True</li> <li><strong>aCellSize</strong> (<em>Standard_Size</em>) – default value is 200</li> <li><strong>aNbPages</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – default value is 10000</li> <li><strong>aThreshold</strong> (<em>Standard_Size</em>) – default value is 40000</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> </tbody> </table> <dl class="attribute"> <dt id="OCC.Standard.Standard_MMgrOpt.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_MMgrOpt.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_MMgrRaw"> <em class="property">class </em><code class="descname">Standard_MMgrRaw</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_MMgrRaw" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#OCC.Standard.Standard_MMgrRoot" title="OCC.Standard.Standard_MMgrRoot"><code class="xref py py-class docutils literal"><span class="pre">OCC.Standard.Standard_MMgrRoot</span></code></a></p> <ul class="simple"> <li>Constructor; if aClear is True, the memory will be nullified upon allocation.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aClear</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_False</td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <dl class="attribute"> <dt id="OCC.Standard.Standard_MMgrRaw.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_MMgrRaw.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_MMgrRoot"> <em class="property">class </em><code class="descname">Standard_MMgrRoot</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_MMgrRoot" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p> <dl class="method"> <dt id="OCC.Standard.Standard_MMgrRoot.Allocate"> <code class="descname">Allocate</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_MMgrRoot.Allocate" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Allocate specified number of bytes. The actually allocated space should be rounded up to double word size (4 bytes), as this is expected by implementation of some classes in OCC (e.g. TCollection_AsciiString)</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>theSize</strong> (<em>Standard_Size</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">Standard_Address</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_MMgrRoot.Free"> <code class="descname">Free</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_MMgrRoot.Free" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Frees previously allocated memory at specified address.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>thePtr</strong> (<em>Standard_Address</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">void</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_MMgrRoot.Purge"> <code class="descname">Purge</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_MMgrRoot.Purge" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Purge internally cached unused memory blocks (if any) by releasing them to the operating system. Must return non-zero if some memory has been actually released, or zero otherwise. If option isDestroyed is True, this means that memory manager is not expected to be used any more; note however that in general case it is still possible to have calls to that instance of memory manager after this (e.g. to free memory of static objects in OCC). Thus this option should command the memory manager to release any cached memory to the system and not cache any more, but still remain operable... //! Default implementation does nothing and returns 0.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>isDestroyed</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_False</td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_MMgrRoot.Reallocate"> <code class="descname">Reallocate</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_MMgrRoot.Reallocate" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Reallocate previously allocated memory to contain at least theSize bytes. In case of success, new pointer is returned.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>thePtr</strong> (<em>Standard_Address</em>) – </li> <li><strong>theSize</strong> (<em>Standard_Size</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Standard_Address</p> </td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Standard_MMgrRoot.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_MMgrRoot.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_MMgrTBBalloc"> <em class="property">class </em><code class="descname">Standard_MMgrTBBalloc</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_MMgrTBBalloc" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#OCC.Standard.Standard_MMgrRoot" title="OCC.Standard.Standard_MMgrRoot"><code class="xref py py-class docutils literal"><span class="pre">OCC.Standard.Standard_MMgrRoot</span></code></a></p> <ul class="simple"> <li>Constructor; if aClear is True, the memory will be nullified upon allocation.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aClear</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_False</td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <dl class="attribute"> <dt id="OCC.Standard.Standard_MMgrTBBalloc.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_MMgrTBBalloc.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_Mutex"> <em class="property">class </em><code class="descname">Standard_Mutex</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Mutex" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#OCC.Standard.Standard_ErrorHandlerCallback" title="OCC.Standard.Standard_ErrorHandlerCallback"><code class="xref py py-class docutils literal"><span class="pre">OCC.Standard.Standard_ErrorHandlerCallback</span></code></a></p> <ul class="simple"> <li>Constructor: creates a mutex object and initializes it. It is strongly recommended that mutexes were created as static objects whenever possible.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <dl class="method"> <dt id="OCC.Standard.Standard_Mutex.Lock"> <code class="descname">Lock</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Mutex.Lock" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Method to lock the mutex; waits until the mutex is released by other threads, locks it and then returns</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Mutex.TryLock"> <code class="descname">TryLock</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Mutex.TryLock" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Method to test the mutex; if the mutex is not hold by other thread, locks it and returns True; otherwise returns False without waiting mutex to be released.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Mutex.Unlock"> <code class="descname">Unlock</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Mutex.Unlock" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Method to unlock the mutex; releases it to other users</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Standard_Mutex.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_Mutex.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_Storable"> <em class="property">class </em><code class="descname">Standard_Storable</code><a class="headerlink" href="#OCC.Standard.Standard_Storable" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p> <dl class="method"> <dt id="OCC.Standard.Standard_Storable.Delete"> <code class="descname">Delete</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Storable.Delete" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">void</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Storable.HashCode"> <code class="descname">HashCode</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Storable.HashCode" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns a hashed value denoting <self>. This value is in the range 1..<Upper>.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Upper</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Storable.IsEqual"> <code class="descname">IsEqual</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Storable.IsEqual" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns true if the direct contents of <self> and <Other> are memberwise equal.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Other</strong> (<em>Standard_Storable &</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Storable.IsSimilar"> <code class="descname">IsSimilar</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Storable.IsSimilar" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns true if the Deep contents of <self> and <Other> are memberwise equal.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Other</strong> (<em>Standard_Storable &</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Standard_Storable.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_Storable.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_Transient"> <em class="property">class </em><code class="descname">Standard_Transient</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Transient" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p> <ul class="simple"> <li>Empty constructor</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <ul class="simple"> <li>Copy constructor – does nothing</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>&</strong> (<a class="reference internal" href="#OCC.Standard.Standard_Transient" title="OCC.Standard.Standard_Transient"><em>Standard_Transient</em></a>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td> </tr> </tbody> </table> <dl class="method"> <dt id="OCC.Standard.Standard_Transient.Delete"> <code class="descname">Delete</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Transient.Delete" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Memory deallocator for transient classes</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">void</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Transient.DynamicType"> <code class="descname">DynamicType</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Transient.DynamicType" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns a type information object about this object.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Handle_Standard_Type" title="OCC.Standard.Handle_Standard_Type">Handle_Standard_Type</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Transient.GetHandle"> <code class="descname">GetHandle</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Transient.GetHandle" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Transient.GetRefCount"> <code class="descname">GetRefCount</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Transient.GetRefCount" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Get the reference counter of this object.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Transient.IsInstance"> <code class="descname">IsInstance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Transient.IsInstance" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns a true value if this is an instance of Type.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>theType</strong> (<em>Handle_Standard_Type &</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> <ul class="simple"> <li>Returns a true value if this is an instance of TypeName.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>theTypeName</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Transient.IsKind"> <code class="descname">IsKind</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Transient.IsKind" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>theType</strong> (<em>Handle_Standard_Type &</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> <ul class="simple"> <li>Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>theTypeName</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Transient.Set"> <code class="descname">Set</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Transient.Set" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Assignment operator, needed to avoid copying reference counter</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>&</strong> (<a class="reference internal" href="#OCC.Standard.Standard_Transient" title="OCC.Standard.Standard_Transient"><em>Standard_Transient</em></a>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Standard_Transient" title="OCC.Standard.Standard_Transient">Standard_Transient</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Transient.This"> <code class="descname">This</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Transient.This" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns a Handle which references this object. Must never be called to objects created in stack.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="#OCC.Standard.Handle_Standard_Transient" title="OCC.Standard.Handle_Standard_Transient">Handle_Standard_Transient</a></td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Standard_Transient.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_Transient.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.Standard_Type"> <em class="property">class </em><code class="descname">Standard_Type</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="#OCC.Standard.Standard_Transient" title="OCC.Standard.Standard_Transient"><code class="xref py py-class docutils literal"><span class="pre">OCC.Standard.Standard_Transient</span></code></a></p> <ul class="simple"> <li>The constructor for a imported type.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aName</strong> (<em>char *</em>) – </li> <li><strong>aSize</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> </tbody> </table> <ul class="simple"> <li>The constructor for a primitive.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aName</strong> (<em>char *</em>) – </li> <li><strong>aSize</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> <li><strong>aNumberOfParent</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> <li><strong>aAncestors</strong> (<em>Standard_Address</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> </tbody> </table> <ul class="simple"> <li>The constructor for an enumeration.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aName</strong> (<em>char *</em>) – </li> <li><strong>aSize</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> <li><strong>aNumberOfElement</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> <li><strong>aNumberOfParent</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> <li><strong>anAncestors</strong> (<em>Standard_Address</em>) – </li> <li><strong>aElements</strong> (<em>Standard_Address</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> </tbody> </table> <ul class="simple"> <li>The constructor for a class.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aName</strong> (<em>char *</em>) – </li> <li><strong>aSize</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> <li><strong>aNumberOfParent</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – </li> <li><strong>anAncestors</strong> (<em>Standard_Address</em>) – </li> <li><strong>aFields</strong> (<em>Standard_Address</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p> </td> </tr> </tbody> </table> <dl class="method"> <dt id="OCC.Standard.Standard_Type.GetHandle"> <code class="descname">GetHandle</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.GetHandle" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.IsClass"> <code class="descname">IsClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.IsClass" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns ‘True’, if the type is a ‘Class’.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.IsEnumeration"> <code class="descname">IsEnumeration</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.IsEnumeration" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns ‘True’, if the type is an ‘Enumeration’.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.IsImported"> <code class="descname">IsImported</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.IsImported" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns ‘True’, if the type is imported.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.IsPrimitive"> <code class="descname">IsPrimitive</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.IsPrimitive" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns ‘True’, if the type is a primitive.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.Name"> <code class="descname">Name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.Name" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns the type name of <self>.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">char *</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.NumberOfAncestor"> <code class="descname">NumberOfAncestor</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.NumberOfAncestor" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns the number of ancestors of the class.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.NumberOfParent"> <code class="descname">NumberOfParent</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.NumberOfParent" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns the number of direct parents of the class.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.PrintToString"> <code class="descname">PrintToString</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.PrintToString" title="Permalink to this definition">¶</a></dt> <dd><p>Standard_Type_PrintToString(Standard_Type self) -> std::string</p> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.Size"> <code class="descname">Size</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.Size" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns the size of <self> in bytes.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="OCC.Standard.Standard_Type.SubType"> <code class="descname">SubType</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.Standard_Type.SubType" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Returns ‘True’, if <self> is the same as <aOther>, or inherits from <aOther>. Note that multiple inheritance is not supported.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aOther</strong> (<em>Handle_Standard_Type &</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> <ul class="simple"> <li>Returns ‘True’, if <self> or one of its ancestors has the name equal to theName. Note that multiple inheritance is not supported.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>theName</strong> (<em>char *</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.Standard_Type.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.Standard_Type.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="OCC.Standard.SwigPyIterator"> <em class="property">class </em><code class="descname">SwigPyIterator</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p> <dl class="method"> <dt id="OCC.Standard.SwigPyIterator.advance"> <code class="descname">advance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator.advance" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.SwigPyIterator.copy"> <code class="descname">copy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator.copy" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.SwigPyIterator.decr"> <code class="descname">decr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator.decr" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.SwigPyIterator.distance"> <code class="descname">distance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator.distance" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.SwigPyIterator.equal"> <code class="descname">equal</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator.equal" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.SwigPyIterator.incr"> <code class="descname">incr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator.incr" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.SwigPyIterator.next"> <code class="descname">next</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator.next" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="OCC.Standard.SwigPyIterator.previous"> <code class="descname">previous</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator.previous" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="attribute"> <dt id="OCC.Standard.SwigPyIterator.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.SwigPyIterator.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> <dl class="method"> <dt id="OCC.Standard.SwigPyIterator.value"> <code class="descname">value</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.SwigPyIterator.value" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="OCC.Standard.register_handle"> <code class="descname">register_handle</code><span class="sig-paren">(</span><em>handle</em>, <em>base_object</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.register_handle" title="Permalink to this definition">¶</a></dt> <dd><p>Inserts the handle into the base object to prevent memory corruption in certain cases</p> </dd></dl> <dl class="class"> <dt id="OCC.Standard.standard"> <em class="property">class </em><code class="descname">standard</code><a class="headerlink" href="#OCC.Standard.standard" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p> <dl class="staticmethod"> <dt id="OCC.Standard.standard.Allocate"> <em class="property">static </em><code class="descname">Allocate</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.standard.Allocate" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Allocates memory blocks aSize - bytes to allocate</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aSize</strong> (<em>Standard_Size</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">Standard_Address</td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="OCC.Standard.standard.AllocateAligned"> <em class="property">static </em><code class="descname">AllocateAligned</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.standard.AllocateAligned" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Allocates aligned memory blocks. Should be used with CPU instructions which require specific alignment. For example: SSE requires 16 bytes, AVX requires 32 bytes. @param theSize bytes to allocate @param theAlign alignment in bytes</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>theSize</strong> (<em>Standard_Size</em>) – </li> <li><strong>theAlign</strong> (<em>Standard_Size</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Standard_Address</p> </td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="OCC.Standard.standard.Purge"> <em class="property">static </em><code class="descname">Purge</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.standard.Purge" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Deallocates the storage retained on the free list and clears the list. Returns non-zero if some memory has been actually freed.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="OCC.Standard.standard.Reallocate"> <em class="property">static </em><code class="descname">Reallocate</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.standard.Reallocate" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Reallocates memory blocks aStorage - previously allocated memory block aNewSize - new size in bytes</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aStorage</strong> (<em>Standard_Address</em>) – </li> <li><strong>aNewSize</strong> (<em>Standard_Size</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Standard_Address</p> </td> </tr> </tbody> </table> </dd></dl> <dl class="attribute"> <dt id="OCC.Standard.standard.thisown"> <code class="descname">thisown</code><a class="headerlink" href="#OCC.Standard.standard.thisown" title="Permalink to this definition">¶</a></dt> <dd><p>The membership flag</p> </dd></dl> </dd></dl> <dl class="function"> <dt id="OCC.Standard.standard_Allocate"> <code class="descname">standard_Allocate</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.standard_Allocate" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Allocates memory blocks aSize - bytes to allocate</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aSize</strong> (<em>Standard_Size</em>) – </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">Standard_Address</td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="OCC.Standard.standard_AllocateAligned"> <code class="descname">standard_AllocateAligned</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.standard_AllocateAligned" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Allocates aligned memory blocks. Should be used with CPU instructions which require specific alignment. For example: SSE requires 16 bytes, AVX requires 32 bytes. @param theSize bytes to allocate @param theAlign alignment in bytes</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>theSize</strong> (<em>Standard_Size</em>) – </li> <li><strong>theAlign</strong> (<em>Standard_Size</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Standard_Address</p> </td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="OCC.Standard.standard_Purge"> <code class="descname">standard_Purge</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.standard_Purge" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Deallocates the storage retained on the free list and clears the list. Returns non-zero if some memory has been actually freed.</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="OCC.Standard.standard_Reallocate"> <code class="descname">standard_Reallocate</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.Standard.standard_Reallocate" title="Permalink to this definition">¶</a></dt> <dd><ul class="simple"> <li>Reallocates memory blocks aStorage - previously allocated memory block aNewSize - new size in bytes</li> </ul> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>aStorage</strong> (<em>Standard_Address</em>) – </li> <li><strong>aNewSize</strong> (<em>Standard_Size</em>) – </li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Standard_Address</p> </td> </tr> </tbody> </table> </dd></dl> </div> </div> <div class="articleComments"> </div> </div> <footer> <hr/> <div role="contentinfo"> <p> © Copyright 2017, Thomas Paviot. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'./', VERSION:'0.17.3', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <script type="text/javascript" src="_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>