110 lines
6.1 KiB
HTML
110 lines
6.1 KiB
HTML
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN'>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>Hurricane Documentation</title>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="SoC.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<h1 id="pagetop" class="header">Hurricane Design Viewer</h1>
|
|
<!--
|
|
<center class="header">
|
|
<table class="header">
|
|
<tr>
|
|
<td><a href="customSummary.html">Summary</a></td>
|
|
<td><a href="namespaces.html">Namespaces</a></td>
|
|
<td><a href="customHierarchy.html">Class Hierarchy</a></td>
|
|
<td><a href="annotated.html">Classes</a></td>
|
|
<td><a href="functions.html">Member Index</a></td>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
-->
|
|
<br>
|
|
<body onload="javascript:toggleLevel(1)">
|
|
<!-- Generated by Doxygen 1.8.13 -->
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
initMenu('',false,false,'search.php','Search');
|
|
});
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Classes</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">Graphics</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Access to Graphical Resources.
|
|
<a href="#details">More...</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
|
Classes</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classHurricane_1_1Graphics.html">Hurricane::Graphics</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Manage basic graphical configuration (<b>API</b>) <a href="classHurricane_1_1Graphics.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>Access to Graphical Resources. </p>
|
|
<h1><a class="anchor" id="secGraphicsStructure"></a>
|
|
General Structure of the Graphics Object</h1>
|
|
<p>First, the <a class="el" href="classHurricane_1_1Graphics.html" title="Manage basic graphical configuration (API) ">Graphics</a> object is a singleton that has to be accessed through the static getGraphics methods.</p>
|
|
<p>The <a class="el" href="classHurricane_1_1Graphics.html" title="Manage basic graphical configuration (API) ">Graphics</a> object contains a set of DisplayStyles of which one is active at a time and so used to do all drawings. Each <a class="el" href="classHurricane_1_1DisplayStyle.html" title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a> is identified though a name and can be selected with the setStyle() method.</p>
|
|
<p>The <a class="el" href="classHurricane_1_1DisplayStyle.html" title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a> itself is a set of DrawingStyle. Each DrawingStyle is named and provides a QColor, a QPen and a QBrush. QColor, QPen & QBrush are build from the <code></code>(red,green,blue) , <code>BorderWidth</code> and <code>pattern</code> .</p>
|
|
<p>Direct access to the DrawingStyle: once a <a class="el" href="classHurricane_1_1DisplayStyle.html" title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a> has been selected, the <a class="el" href="classHurricane_1_1Graphics.html" title="Manage basic graphical configuration (API) ">Graphics</a> accessors getColor(), getPen() or getBrush() gives you access to the DrawingStyles.</p>
|
|
<p>Minimal <a class="el" href="classHurricane_1_1DisplayStyle.html" title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a>: any <a class="el" href="classHurricane_1_1DisplayStyle.html" title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a> contains at least the following DrawingStyles : </p><ul>
|
|
<li>
|
|
<b>Fallback</b> : the default DrawingStyle. </li>
|
|
<li>
|
|
<b>Background</b> </li>
|
|
<li>
|
|
<b>Foreground</b> </li>
|
|
<li>
|
|
<b><a class="elRef" doxygen="/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/" href="../hurricane/classHurricane_1_1Rubber.html">Rubber</a></b> </li>
|
|
<li>
|
|
<b>Phantom</b> </li>
|
|
<li>
|
|
<b>Boundaries</b> </li>
|
|
<li>
|
|
<b>Marker</b> </li>
|
|
<li>
|
|
<b>SelectionDraw</b> </li>
|
|
<li>
|
|
<b>SelectionFill</b> </li>
|
|
<li>
|
|
<b>Grid</b> </li>
|
|
<li>
|
|
<b>Spot</b> </li>
|
|
<li>
|
|
<b>Ghost</b> </li>
|
|
<li>
|
|
<b>Text</b> </li>
|
|
<li>
|
|
<b>Undef</b> </li>
|
|
</ul>
|
|
<p>Configuration parsers should create a DrawingStyle for each <a class="elRef" doxygen="/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/" href="../hurricane/classHurricane_1_1BasicLayer.html">BasicLayer</a>, with the name of the <a class="elRef" doxygen="/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/" href="../hurricane/classHurricane_1_1BasicLayer.html">BasicLayer</a> as the key. So the following code should be valid : </p><div class="fragment"><div class="line">QBrush layerBrush = <a class="code" href="classHurricane_1_1Graphics.html#ad67a43df460d5c5d5179a81d2a72c9a9">Graphics::getBrush</a> ( layer->getName() );</div></div><!-- fragment --><p> If no DrawingStyle of that name is defined, the <b>Fallback</b> will be used. </p>
|
|
</div><!-- contents -->
|
|
<br>
|
|
<hr>
|
|
<table class="footer1">
|
|
<tr>
|
|
<td class="LFooter"><small>Generated by doxygen 1.8.13 on Mon May 14 2018</small></td>
|
|
<td class="RFooter"><a href='#pagetop'><small>Return to top of page</small></a></td>
|
|
</tr>
|
|
</table>
|
|
<table class="footer2">
|
|
<tr>
|
|
<td class="LFooter">Hurricane Design Viewer</td>
|
|
<td class="RFooter"><small>Copyright © 2008-2016 UPMC All rights reserved</small></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|