1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
\r
6 <title>Adding nodes</title>
\r
7 <meta http-equiv="content-type" content="text/html; charset=windows-1252">
\r
8 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
\r
9 <link rel="stylesheet" href="../default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">
\r
11 if (navigator.appName !="Netscape")
\r
12 { document.write("<link rel='stylesheet' href='../default.css'>");}
\r
15 <style type="text/css">
\r
17 h1.whs1 { font-family:'Times New Roman' , serif; }
\r
18 p.whs2 { text-align:JUSTIFY; font-family:'Times New Roman' , serif; font-size:12pt; }
\r
19 p.whs3 { text-align:JUSTIFY; font-family:'Times New Roman' , serif; font-size:12pt; margin-left:40px; }
\r
20 img_whs4 { border:none; width:29px; height:30px; border-style:none; }
\r
21 p.whs5 { text-align:CENTER; font-family:'Times New Roman' , serif; font-size:12pt; }
\r
22 img_whs6 { border:none; border-style:none; width:456px; height:345px; float:none; }
\r
23 p.whs7 { text-align:JUSTIFY; margin-left:40px; text-indent:-4px; font-size:12pt; }
\r
24 p.whs8 { font-size:12pt; margin-left:40px; text-indent:-4px; text-align:CENTER; }
\r
25 p.whs9 { text-align:JUSTIFY; font-family:'Times New Roman' , serif; font-size:12pt; background-image:url('../texture_horiz_ltbluebubbles.jpg'); }
\r
26 img_whs10 { border:none; width:35px; height:37px; float:none; border-style:none; }
\r
27 p.whs11 { text-align:JUSTIFY; font-family:'Times New Roman' , serif; font-size:12pt; font-weight:bold; }
\r
28 p.whs12 { font-family:'Times New Roman' , serif; font-size:12pt; margin-left:40px; }
\r
29 p.whs13 { text-align:CENTER; font-family:'Times New Roman' , serif; font-size:12pt; margin-left:40px; }
\r
30 p.whs14 { font-family:'Times New Roman' , serif; font-size:12pt; margin-left:0px; }
\r
31 p.whs15 { font-family:'Times New Roman' , serif; font-size:12pt; }
\r
33 </style><script type="text/javascript" language="JavaScript">
\r
35 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
\r
37 var strNSS = "<style type='text/css'>";
\r
38 strNSS += "p.whs7 {text-indent:1pt; }";
\r
39 strNSS += "p.whs8 {text-indent:1pt; }";
\r
40 strNSS += "p.whs14 {margin-left:1pt; }";
\r
41 strNSS +="</style>";
\r
42 document.write(strNSS);
\r
46 <script type="text/javascript" language="JavaScript" title="BSSC Special Effects" src="../ehlpdhtm.js"></script><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
\r
49 if (innerWidth != origWidth || innerHeight != origHeight)
\r
52 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
\r
53 origWidth = innerWidth;
\r
54 origHeight = innerHeight;
\r
60 <style type="text/css">
\r
62 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
\r
64 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>
\r
65 <script type="text/javascript" language="javascript" src="../whver.js"></script>
\r
66 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>
\r
67 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>
\r
68 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>
\r
70 <body><script type="text/javascript" language="javascript1.2">
\r
72 if (window.gbWhTopic)
\r
74 if (window.addTocInfo)
\r
76 addTocInfo("SUPERVISION module\nEditing graphs\nNodes in the graph\nAdding nodes");
\r
77 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");
\r
80 if (window.writeBtnStyle)
\r
83 if (window.writeIntopicBar)
\r
86 if (window.setRelStartPage)
\r
88 setRelStartPage("../supervision.htm");
\r
97 document.location.reload();
\r
100 <h1 class="whs1">Adding nodes</h1>
\r
102 <p class=TODO>To add a node into a graph in modification or edition: </p>
\r
104 <p class="whs2"> </p>
\r
106 <p class="whs3">Right-click on the background of the main
\r
107 window of this graph and in the pop-up menu choose <span style="font-weight: bold;"><B>Add
\r
108 Node</B></span> option or click <img src="../image3.gif" width="29px" height="30px" border="0" class="img_whs4"> icon in the SUPERVISOR
\r
109 toolbar. The following dialog box with two tabs will appear (the same
\r
110 dialog box opens when trying to create a new graph):</p>
\r
112 <p class="whs2"> </p>
\r
114 <p align="center" class="whs5"> </p>
\r
116 <p class="whs3"> <img src="../pics/addnodefactory.png" x-maintain-ratio="TRUE" width="456px" height="345px" border="0" class="img_whs6"></p>
\r
118 <p class="whs3"> </p>
\r
120 <p class="whs7"> <img src="../pics/addnodeinline.png" x-maintain-ratio="TRUE" width="456px" height="345px" border="0" class="img_whs6"></p>
\r
122 <p class="whs7"> </p>
\r
124 <p class="whs7"> <img src="../pics/addnodemacro.png" x-maintain-ratio="TRUE" width="456px" height="345px" border="0" class="img_whs6"></p>
\r
126 <p align="center" class="whs8"> </p>
\r
130 <p class="whs2"> </p>
\r
132 <p class="whs2">This dialog box allows to add one or several
\r
133 nodes to your graph. </p>
\r
135 <p class="whs2"> </p>
\r
137 <p class="whs9"><img src="../tip1.gif" x-maintain-ratio="TRUE" width="35px" height="37px" border="0" class="img_whs10"> This dialog box works as independent window. So you can move
\r
138 it aside and simultaneously edit your graph in SUPERVISOR viewer and add
\r
139 new nodes into your graph.</p>
\r
141 <p class="whs2"> </p>
\r
143 <p class="whs11"><a name=FACTORY></a>FACTORY NODES. </p>
\r
145 <p class="whs2">Factory nodes tab window consists of one
\r
146 column having the form of a tree with three open levels: </p>
\r
148 <p class="whs2"> </p>
\r
150 <p class="whs12">- <span style="font-weight: bold;"><B>The
\r
151 first level</B></span> corresponds to the list of components which are currently
\r
152 integrated into SALOME platform</p>
\r
154 <p class="whs12">. </p>
\r
156 <p class="whs12">- <span style="font-weight: bold;"><B>The
\r
157 second level</B></span> corresponds to the interfaces of one of the components.
\r
160 <p class="whs12"> </p>
\r
162 <p class="whs12">- <span style="font-weight: bold;"><B>The
\r
163 third level</B></span> represents a list of services (methods) provide by
\r
164 the component interface. </p>
\r
166 <p class="whs12"> </p>
\r
168 <p class="whs12">- <span style="font-weight: bold;"><B>The
\r
169 fourth level</B></span> contains the signature of a service - a list of parameters.
\r
170 Opposite each parameter there are two indications: <span style="font-weight: bold;"><B>Port
\r
171 type </B></span><span>(data type of the parameter) and </span><span style="font-weight: bold;"><B>Port
\r
172 way </B></span><span>(type of the parameter - input or output).</span><span
\r
173 style="font-weight: bold;"> <B></B></span> </p>
\r
175 <p align="center" class="whs13"> </p>
\r
177 <p class="whs14">To add a factory node into your graph choose
\r
178 one of the factory services and click <span style="font-weight: bold;"><B>Add
\r
179 Factory Node.</B></span></p>
\r
181 <p class="whs14"> </p>
\r
183 <p class="whs14"> </p>
\r
185 <p class="whs11">INLINE NODES. </p>
\r
187 <p class="whs15">Inline
\r
188 nodes tab window consists of the following fields:</p>
\r
190 <p class="whs15"> </p>
\r
192 <p class="whs12">- <span style="font-weight: bold;"><B>Node
\r
193 type </B></span>choose box: here you can select the type of your future node
\r
194 (Computation, Switch, Loop, Goto)</p>
\r
196 <p class="whs12"> </p>
\r
198 <p class="whs12">- <span style="font-weight: bold;"><B>Main
\r
199 field</B></span>: here you can manually define a Python method which will
\r
200 be executed on your node. This window functions like a standard document
\r
201 - right-click on it gives access to <span style="font-weight: bold;"><B>Undo/Redo/Cut/Copy/Paste/SelectAll/Clear
\r
202 </B></span><span>options.</span><span style="font-weight: bold;"> <B></B></span> </p>
\r
204 <p class="whs12"> </p>
\r
206 <p class="whs12">- <span style="font-weight: bold;"><B>Load
\r
207 from file: </B></span><span>this button allows to load a definite Python method
\r
208 from an existing *.py file. If your *.py file contains several defined
\r
209 methods, </span><span style="font-weight: bold;"><B>Next function </B></span><span>button
\r
210 allows to list all methods of the upper level from this *.py file and
\r
211 select the necessary function. </span> </p>
\r
213 <p class="whs15"> </p>
\r
215 <p class="whs15">To add
\r
216 an inline node into your graph click <span style="font-weight: bold;"><B>Add
\r
217 Node </B></span>button. </p>
\r
219 <p class="whs15"> </p>
\r
221 <p class="whs15"> </p>
\r
223 <p class="whs15"> </p>
\r
226 <a href="javascript:void(0);" onClick="var e; if (parseInt(navigator.appVersion)>=4){e=event;} if (parseInt(navigator.appVersion) >=2 && typeof(PickupDialog_Invoke) == 'function') PickupDialog_Invoke(e,'','About nodes','about_nodes.htm','Computation nodes','computation_nodes.htm','GOTO nodes','goto_nodes.htm','Loop nodes','loop_nodes.htm','Switch nodes','switch_nodes.htm');return false;" title="Related Topics"><img src="../ss_btn_related_topics.gif" border=0 height=17 width=82 alt="Related Topics"></a>
\r
229 </p>
\r
231 <p class="whs15"> </p>
\r
233 <p class="whs15"> </p>
\r
235 <p class="whs15"> </p>
\r
237 <p class="whs15"> </p>
\r
239 <p class="whs15"> </p>
\r
241 <script type="text/javascript" language="JavaScript" title="WebHelpRelatedTopics"><!--
\r
242 if (parseInt(navigator.appVersion) >= 3 && typeof (WritePopupMenuLayer) == "function")
\r
243 WritePopupMenuLayer();
\r
244 //--></script><script type="text/javascript" language="javascript1.2">
\r
246 if (window.writeIntopicBar)
\r
247 writeIntopicBar(0);
\r