189 lines
8.7 KiB
HTML
189 lines
8.7 KiB
HTML
|
|
|||
|
|
|||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|||
|
|
|||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|||
|
|
|||
|
<title>GraphicsObject — pyqtgraph v1.8 documentation</title>
|
|||
|
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
|
|||
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
|||
|
<script type="text/javascript">
|
|||
|
var DOCUMENTATION_OPTIONS = {
|
|||
|
URL_ROOT: '../',
|
|||
|
VERSION: '1.8',
|
|||
|
COLLAPSE_INDEX: false,
|
|||
|
FILE_SUFFIX: '.html',
|
|||
|
HAS_SOURCE: true
|
|||
|
};
|
|||
|
</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>
|
|||
|
<link rel="top" title="pyqtgraph v1.8 documentation" href="../index.html" />
|
|||
|
<link rel="up" title="Pyqtgraph’s Graphics Items" href="index.html" />
|
|||
|
<link rel="next" title="GraphicsWidget" href="graphicswidget.html" />
|
|||
|
<link rel="prev" title="ButtonItem" href="buttonitem.html" />
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<div class="related">
|
|||
|
<h3>Navigation</h3>
|
|||
|
<ul>
|
|||
|
<li class="right" style="margin-right: 10px">
|
|||
|
<a href="../genindex.html" title="General Index"
|
|||
|
accesskey="I">index</a></li>
|
|||
|
<li class="right" >
|
|||
|
<a href="../py-modindex.html" title="Python Module Index"
|
|||
|
>modules</a> |</li>
|
|||
|
<li class="right" >
|
|||
|
<a href="graphicswidget.html" title="GraphicsWidget"
|
|||
|
accesskey="N">next</a> |</li>
|
|||
|
<li class="right" >
|
|||
|
<a href="buttonitem.html" title="ButtonItem"
|
|||
|
accesskey="P">previous</a> |</li>
|
|||
|
<li><a href="../index.html">pyqtgraph v1.8 documentation</a> »</li>
|
|||
|
<li><a href="../apireference.html" >API Reference</a> »</li>
|
|||
|
<li><a href="index.html" accesskey="U">Pyqtgraph’s Graphics Items</a> »</li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="document">
|
|||
|
<div class="documentwrapper">
|
|||
|
<div class="bodywrapper">
|
|||
|
<div class="body">
|
|||
|
|
|||
|
<div class="section" id="graphicsobject">
|
|||
|
<h1>GraphicsObject<a class="headerlink" href="#graphicsobject" title="Permalink to this headline">¶</a></h1>
|
|||
|
<dl class="class">
|
|||
|
<dt id="pyqtgraph.GraphicsObject">
|
|||
|
<em class="property">class </em><tt class="descclassname">pyqtgraph.</tt><tt class="descname">GraphicsObject</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd><p>Extends QGraphicsObject with a few important functions.
|
|||
|
(Most of these assume that the object is in a scene with a single view)</p>
|
|||
|
<p>This class also generates a cache of the Qt-internal addresses of each item
|
|||
|
so that GraphicsScene.items() can return the correct objects (this is a PyQt bug)</p>
|
|||
|
<dl class="method">
|
|||
|
<dt id="pyqtgraph.GraphicsObject.__init__">
|
|||
|
<tt class="descname">__init__</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject.__init__" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd></dd></dl>
|
|||
|
|
|||
|
<dl class="method">
|
|||
|
<dt id="pyqtgraph.GraphicsObject.deviceTransform">
|
|||
|
<tt class="descname">deviceTransform</tt><big>(</big><em>viewportTransform=None</em><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject.deviceTransform" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd><p>Return the transform that converts item coordinates to device coordinates (usually pixels).
|
|||
|
Extends deviceTransform to automatically determine the viewportTransform.</p>
|
|||
|
</dd></dl>
|
|||
|
|
|||
|
<dl class="method">
|
|||
|
<dt id="pyqtgraph.GraphicsObject.getBoundingParents">
|
|||
|
<tt class="descname">getBoundingParents</tt><big>(</big><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject.getBoundingParents" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd><p>Return a list of parents to this item that have child clipping enabled.</p>
|
|||
|
</dd></dl>
|
|||
|
|
|||
|
<dl class="method">
|
|||
|
<dt id="pyqtgraph.GraphicsObject.getViewBox">
|
|||
|
<tt class="descname">getViewBox</tt><big>(</big><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject.getViewBox" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd><p>Return the first ViewBox or GraphicsView which bounds this item’s visible space.
|
|||
|
If this item is not contained within a ViewBox, then the GraphicsView is returned.
|
|||
|
If the item is contained inside nested ViewBoxes, then the inner-most ViewBox is returned.
|
|||
|
The result is cached; clear the cache with forgetViewBox()</p>
|
|||
|
</dd></dl>
|
|||
|
|
|||
|
<dl class="method">
|
|||
|
<dt id="pyqtgraph.GraphicsObject.getViewWidget">
|
|||
|
<tt class="descname">getViewWidget</tt><big>(</big><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject.getViewWidget" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd><p>Return the view widget for this item. If the scene has multiple views, only the first view is returned.
|
|||
|
The return value is cached; clear the cached value with forgetViewWidget()</p>
|
|||
|
</dd></dl>
|
|||
|
|
|||
|
<dl class="method">
|
|||
|
<dt id="pyqtgraph.GraphicsObject.pixelLength">
|
|||
|
<tt class="descname">pixelLength</tt><big>(</big><em>direction</em><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject.pixelLength" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd><p>Return the length of one pixel in the direction indicated (in local coordinates)</p>
|
|||
|
</dd></dl>
|
|||
|
|
|||
|
<dl class="method">
|
|||
|
<dt id="pyqtgraph.GraphicsObject.pixelVectors">
|
|||
|
<tt class="descname">pixelVectors</tt><big>(</big><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject.pixelVectors" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd><p>Return vectors in local coordinates representing the width and height of a view pixel.</p>
|
|||
|
</dd></dl>
|
|||
|
|
|||
|
<dl class="method">
|
|||
|
<dt id="pyqtgraph.GraphicsObject.viewRect">
|
|||
|
<tt class="descname">viewRect</tt><big>(</big><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject.viewRect" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd><p>Return the bounds (in item coordinates) of this item’s ViewBox or GraphicsWidget</p>
|
|||
|
</dd></dl>
|
|||
|
|
|||
|
<dl class="method">
|
|||
|
<dt id="pyqtgraph.GraphicsObject.viewTransform">
|
|||
|
<tt class="descname">viewTransform</tt><big>(</big><big>)</big><a class="headerlink" href="#pyqtgraph.GraphicsObject.viewTransform" title="Permalink to this definition">¶</a></dt>
|
|||
|
<dd><p>Return the transform that maps from local coordinates to the item’s ViewBox coordinates
|
|||
|
If there is no ViewBox, return the scene transform.
|
|||
|
Returns None if the item does not have a view.</p>
|
|||
|
</dd></dl>
|
|||
|
|
|||
|
</dd></dl>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="sphinxsidebar">
|
|||
|
<div class="sphinxsidebarwrapper">
|
|||
|
<h4>Previous topic</h4>
|
|||
|
<p class="topless"><a href="buttonitem.html"
|
|||
|
title="previous chapter">ButtonItem</a></p>
|
|||
|
<h4>Next topic</h4>
|
|||
|
<p class="topless"><a href="graphicswidget.html"
|
|||
|
title="next chapter">GraphicsWidget</a></p>
|
|||
|
<h3>This Page</h3>
|
|||
|
<ul class="this-page-menu">
|
|||
|
<li><a href="../_sources/graphicsItems/graphicsobject.txt"
|
|||
|
rel="nofollow">Show Source</a></li>
|
|||
|
</ul>
|
|||
|
<div id="searchbox" style="display: none">
|
|||
|
<h3>Quick search</h3>
|
|||
|
<form class="search" action="../search.html" method="get">
|
|||
|
<input type="text" name="q" size="18" />
|
|||
|
<input type="submit" value="Go" />
|
|||
|
<input type="hidden" name="check_keywords" value="yes" />
|
|||
|
<input type="hidden" name="area" value="default" />
|
|||
|
</form>
|
|||
|
<p class="searchtip" style="font-size: 90%">
|
|||
|
Enter search terms or a module, class or function name.
|
|||
|
</p>
|
|||
|
</div>
|
|||
|
<script type="text/javascript">$('#searchbox').show(0);</script>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="clearer"></div>
|
|||
|
</div>
|
|||
|
<div class="related">
|
|||
|
<h3>Navigation</h3>
|
|||
|
<ul>
|
|||
|
<li class="right" style="margin-right: 10px">
|
|||
|
<a href="../genindex.html" title="General Index"
|
|||
|
>index</a></li>
|
|||
|
<li class="right" >
|
|||
|
<a href="../py-modindex.html" title="Python Module Index"
|
|||
|
>modules</a> |</li>
|
|||
|
<li class="right" >
|
|||
|
<a href="graphicswidget.html" title="GraphicsWidget"
|
|||
|
>next</a> |</li>
|
|||
|
<li class="right" >
|
|||
|
<a href="buttonitem.html" title="ButtonItem"
|
|||
|
>previous</a> |</li>
|
|||
|
<li><a href="../index.html">pyqtgraph v1.8 documentation</a> »</li>
|
|||
|
<li><a href="../apireference.html" >API Reference</a> »</li>
|
|||
|
<li><a href="index.html" >Pyqtgraph’s Graphics Items</a> »</li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<div class="footer">
|
|||
|
© Copyright 2011, Luke Campagnola.
|
|||
|
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.1.
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|