Salome HOME
Update Help for Supervisor module.
[modules/superv.git] / doc / salome / gui / SUPERV / files / adding_nodes.htm
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">\r
2 \r
3 <html>\r
4 \r
5 <head>\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
10 <!--\r
11 if (navigator.appName !="Netscape")\r
12 {   document.write("<link rel='stylesheet' href='../default.css'>");}\r
13 //-->\r
14 </script>\r
15 <style type="text/css">\r
16 <!--\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
32 -->\r
33 </style><script type="text/javascript" language="JavaScript">\r
34 <!--\r
35 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
36 {\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
43 }\r
44 //-->\r
45 </script>\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
47 <!--\r
48 function reDo() {\r
49   if (innerWidth != origWidth || innerHeight != origHeight)\r
50      location.reload();\r
51 }\r
52 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
53         origWidth = innerWidth;\r
54         origHeight = innerHeight;\r
55         onresize = reDo;\r
56 }\r
57 onerror = null; \r
58 //-->\r
59 </script>\r
60 <style type="text/css">\r
61 <!--\r
62 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
63 -->\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
69 </head>\r
70 <body><script type="text/javascript" language="javascript1.2">\r
71 <!--\r
72 if (window.gbWhTopic)\r
73 {\r
74         if (window.addTocInfo)\r
75         {\r
76         addTocInfo("SUPERVISION module\nEditing graphs\nNodes in the graph\nAdding nodes");\r
77 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
78 \r
79         }\r
80         if (window.writeBtnStyle)\r
81                 writeBtnStyle();\r
82 \r
83         if (window.writeIntopicBar)\r
84                 writeIntopicBar(1);\r
85 \r
86         if (window.setRelStartPage)\r
87         {\r
88         setRelStartPage("../supervision.htm");\r
89 \r
90                 autoSync(1);\r
91                 sendSyncInfo();\r
92                 sendAveInfoOut();\r
93         }\r
94 }\r
95 else\r
96         if (window.gbIE4)\r
97                 document.location.reload();\r
98 //-->\r
99 </script>\r
100 <h1 class="whs1">Adding nodes</h1>\r
101 \r
102 <p class=TODO>To add a node into a graph in modification or edition: </p>\r
103 \r
104 <p class="whs2">&nbsp;</p>\r
105 \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 &nbsp;<span style="font-weight: bold;"><B>Add \r
108  Node</B></span>&nbsp;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
111 \r
112 <p class="whs2">&nbsp;</p>\r
113 \r
114 <p align="center" class="whs5">&nbsp;</p>\r
115 \r
116 <p class="whs3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../pics/addnodefactory.png" x-maintain-ratio="TRUE" width="456px" height="345px" border="0" class="img_whs6"></p>\r
117 \r
118 <p class="whs3">&nbsp;</p>\r
119 \r
120 <p class="whs7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../pics/addnodeinline.png" x-maintain-ratio="TRUE" width="456px" height="345px" border="0" class="img_whs6"></p>\r
121 \r
122 <p class="whs7">&nbsp;</p>\r
123 \r
124 <p class="whs7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../pics/addnodemacro.png" x-maintain-ratio="TRUE" width="456px" height="345px" border="0" class="img_whs6"></p>\r
125 \r
126 <p align="center" class="whs8">&nbsp;</p>\r
127 \r
128 <p>&nbsp;</p>\r
129 \r
130 <p class="whs2">&nbsp;</p>\r
131 \r
132 <p class="whs2">This dialog box allows to add one or several \r
133  nodes to your graph. </p>\r
134 \r
135 <p class="whs2">&nbsp;</p>\r
136 \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
140 \r
141 <p class="whs2">&nbsp;</p>\r
142 \r
143 <p class="whs11"><a name=FACTORY></a>FACTORY NODES. </p>\r
144 \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
147 \r
148 <p class="whs2">&nbsp;</p>\r
149 \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
153 \r
154 <p class="whs12">. </p>\r
155 \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
158  </p>\r
159 \r
160 <p class="whs12">&nbsp;</p>\r
161 \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
165 \r
166 <p class="whs12">&nbsp;</p>\r
167 \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>&nbsp;&nbsp;</p>\r
174 \r
175 <p align="center" class="whs13">&nbsp;</p>\r
176 \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
180 \r
181 <p class="whs14">&nbsp;</p>\r
182 \r
183 <p class="whs14">&nbsp;</p>\r
184 \r
185 <p class="whs11">INLINE NODES. </p>\r
186 \r
187 <p class="whs15">Inline \r
188  nodes tab window consists of the following fields:</p>\r
189 \r
190 <p class="whs15">&nbsp;</p>\r
191 \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
195 \r
196 <p class="whs12">&nbsp;</p>\r
197 \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>&nbsp;</p>\r
203 \r
204 <p class="whs12">&nbsp;</p>\r
205 \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. &nbsp;</span>&nbsp;&nbsp;</p>\r
212 \r
213 <p class="whs15">&nbsp;</p>\r
214 \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. &nbsp;&nbsp;</p>\r
218 \r
219 <p class="whs15">&nbsp;</p>\r
220 \r
221 <p class="whs15">&nbsp;</p>\r
222 \r
223 <p class="whs15">&nbsp;</p>\r
224 \r
225 <p class="whs15">\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
227 \r
228 \r
229  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>\r
230 \r
231 <p class="whs15">&nbsp;</p>\r
232 \r
233 <p class="whs15">&nbsp;</p>\r
234 \r
235 <p class="whs15">&nbsp;</p>\r
236 \r
237 <p class="whs15">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>\r
238 \r
239 <p class="whs15">&nbsp;</p>\r
240 \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
245 <!--\r
246 if (window.writeIntopicBar)\r
247         writeIntopicBar(0);\r
248 //-->\r
249 </script>\r
250 </body>\r
251 </html>\r