]> SALOME platform Git repositories - modules/superv.git/blob - doc/salome/gui/SUPERV/files/adding_nodes.htm
Salome HOME
SMH: 3.0.0 preparation = merged version (POLYWORK + RTVDEBUG01) + adopation for new GUI
[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; width:453px; height:381px; }\r
23 p.whs7 { text-align:JUSTIFY; margin-left:40px; text-indent:-4px; font-size:12pt; }\r
24 img_whs8 { border:none; width:458px; height:388px; }\r
25 img_whs9 { border:none; width:462px; height:390px; }\r
26 p.whs10 { font-size:12pt; margin-left:40px; text-indent:-4px; text-align:CENTER; }\r
27 p.whs11 { text-align:JUSTIFY; font-family:'Times New Roman'  , serif; font-size:12pt; background-image:url('../texture_horiz_ltbluebubbles.jpg'); }\r
28 img_whs12 { border:none; width:35px; height:37px; float:none; border-style:none; }\r
29 p.whs13 { text-align:JUSTIFY; font-family:'Times New Roman' , serif; font-size:12pt; font-weight:bold; }\r
30 p.whs14 { font-family:'Times New Roman' , serif; font-size:12pt; margin-left:40px; }\r
31 p.whs15 { text-align:CENTER; font-family:'Times New Roman' , serif; font-size:12pt; margin-left:40px; }\r
32 p.whs16 { font-family:'Times New Roman' , serif; font-size:12pt; margin-left:0px; }\r
33 p.whs17 { font-family:'Times New Roman' , serif; font-size:12pt; }\r
34 -->\r
35 </style><script type="text/javascript" language="JavaScript">\r
36 <!--\r
37 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
38 {\r
39   var strNSS = "<style type='text/css'>";\r
40   strNSS += "p.whs7 {text-indent:1pt; }";\r
41   strNSS += "p.whs10 {text-indent:1pt; }";\r
42   strNSS += "p.whs16 {margin-left:1pt; }";\r
43   strNSS +="</style>";\r
44   document.write(strNSS);\r
45 }\r
46 //-->\r
47 </script>\r
48 <script type="text/javascript" language="JavaScript" title="BSSC Special Effects" src="../ehlpdhtm.js"></script><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
49 <!--\r
50 function reDo() {\r
51   if (innerWidth != origWidth || innerHeight != origHeight)\r
52      location.reload();\r
53 }\r
54 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
55         origWidth = innerWidth;\r
56         origHeight = innerHeight;\r
57         onresize = reDo;\r
58 }\r
59 onerror = null; \r
60 //-->\r
61 </script>\r
62 <style type="text/css">\r
63 <!--\r
64 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
65 -->\r
66 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>\r
67 <script type="text/javascript" language="javascript" src="../whver.js"></script>\r
68 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>\r
69 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>\r
70 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>\r
71 </head>\r
72 <body><script type="text/javascript" language="javascript1.2">\r
73 <!--\r
74 if (window.gbWhTopic)\r
75 {\r
76         if (window.addTocInfo)\r
77         {\r
78         addTocInfo("SUPERVISION module\nEditing graphs\nNodes in the graph\nAdding nodes");\r
79 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
80 \r
81         }\r
82         if (window.writeBtnStyle)\r
83                 writeBtnStyle();\r
84 \r
85         if (window.writeIntopicBar)\r
86                 writeIntopicBar(1);\r
87 \r
88         if (window.setRelStartPage)\r
89         {\r
90         setRelStartPage("../supervision.htm");\r
91 \r
92                 autoSync(1);\r
93                 sendSyncInfo();\r
94                 sendAveInfoOut();\r
95         }\r
96 }\r
97 else\r
98         if (window.gbIE4)\r
99                 document.location.reload();\r
100 //-->\r
101 </script>\r
102 <h1 class="whs1">Adding nodes</h1>\r
103 \r
104 <p class=TODO>To add a node into a graph in modification or edition: </p>\r
105 \r
106 <p class="whs2">&nbsp;</p>\r
107 \r
108 <p class="whs3">Right-click on the background of the main \r
109  window of this graph and in the pop-up menu choose &nbsp;<span style="font-weight: bold;"><B>Add \r
110  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
111  toolbar. The following dialog box with two tabs will appear (the same \r
112  dialog box opens when trying to create a new graph):</p>\r
113 \r
114 <p class="whs2">&nbsp;</p>\r
115 \r
116 <p align="center" class="whs5">&nbsp;</p>\r
117 \r
118 <p class="whs3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../image52.jpg" width="453px" height="381px" border="0" class="img_whs6"></p>\r
119 \r
120 <p class="whs7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../image58.gif" width="458px" height="388px" border="0" class="img_whs8"></p>\r
121 \r
122 <p class="whs7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../image59.gif" width="462px" height="390px" border="0" class="img_whs9"></p>\r
123 \r
124 <p align="center" class="whs10">&nbsp;</p>\r
125 \r
126 <p>&nbsp;</p>\r
127 \r
128 <p class="whs2">&nbsp;</p>\r
129 \r
130 <p class="whs2">This dialog box allows to add one or several \r
131  nodes to your graph. </p>\r
132 \r
133 <p class="whs2">&nbsp;</p>\r
134 \r
135 <p class="whs11"><img src="../tip1.gif" x-maintain-ratio="TRUE" width="35px" height="37px" border="0" class="img_whs12"> This dialog box works as independent window. So you can move \r
136  it aside and simultaneously edit your graph in SUPERVISOR viewer and add \r
137  new nodes into your graph.</p>\r
138 \r
139 <p class="whs2">&nbsp;</p>\r
140 \r
141 <p class="whs13"><a name=FACTORY></a>FACTORY NODES. </p>\r
142 \r
143 <p class="whs2">Factory nodes tab window consists of one \r
144  column having the form of a tree with three open levels: </p>\r
145 \r
146 <p class="whs2">&nbsp;</p>\r
147 \r
148 <p class="whs14">- <span style="font-weight: bold;"><B>The \r
149  first level</B></span> corresponds to the list of components which are currently \r
150  integrated into SALOME platform</p>\r
151 \r
152 <p class="whs14">. </p>\r
153 \r
154 <p class="whs14">- <span style="font-weight: bold;"><B>The \r
155  second level</B></span> corresponds to the interfaces of one of the components. \r
156  </p>\r
157 \r
158 <p class="whs14">&nbsp;</p>\r
159 \r
160 <p class="whs14">- <span style="font-weight: bold;"><B>The \r
161  third level</B></span> represents a list of services (methods) provide by \r
162  the component interface. </p>\r
163 \r
164 <p class="whs14">&nbsp;</p>\r
165 \r
166 <p class="whs14">- <span style="font-weight: bold;"><B>The \r
167  fourth level</B></span> contains the signature of a service - a list of parameters. \r
168  Opposite each parameter there are two indications: <span style="font-weight: bold;"><B>Port \r
169  type </B></span><span>(data type of the parameter) and </span><span style="font-weight: bold;"><B>Port \r
170  way </B></span><span>(type of the parameter - input or output).</span><span \r
171  style="font-weight: bold;"> <B></B></span>&nbsp;&nbsp;</p>\r
172 \r
173 <p align="center" class="whs15">&nbsp;</p>\r
174 \r
175 <p class="whs16">To add a factory node into your graph choose \r
176  one of the factory services and click <span style="font-weight: bold;"><B>Add \r
177  Factory Node.</B></span></p>\r
178 \r
179 <p class="whs16">&nbsp;</p>\r
180 \r
181 <p class="whs16">&nbsp;</p>\r
182 \r
183 <p class="whs13">INLINE NODES. </p>\r
184 \r
185 <p class="whs17">Inline \r
186  nodes tab window consists of the following fields:</p>\r
187 \r
188 <p class="whs17">&nbsp;</p>\r
189 \r
190 <p class="whs14">- <span style="font-weight: bold;"><B>Node \r
191  type </B></span>choose box: here you can select the type of your future node \r
192  (Computation, Switch, Loop, Goto)</p>\r
193 \r
194 <p class="whs14">&nbsp;</p>\r
195 \r
196 <p class="whs14">- <span style="font-weight: bold;"><B>Main \r
197  field</B></span>: here you can manually define a Python method which will \r
198  be executed on your node. This window functions like a standard document \r
199  - right-click on it gives access to <span style="font-weight: bold;"><B>Undo/Redo/Cut/Copy/Paste/SelectAll/Clear \r
200  </B></span><span>options.</span><span style="font-weight: bold;"> <B></B></span>&nbsp;</p>\r
201 \r
202 <p class="whs14">&nbsp;</p>\r
203 \r
204 <p class="whs14">- <span style="font-weight: bold;"><B>Load \r
205  from file: </B></span><span>this button allows to load a definite Python method \r
206  from an existing *.py file. If your *.py file contains several defined \r
207  methods, </span><span style="font-weight: bold;"><B>Next function </B></span><span>button \r
208  allows to list all methods of the upper level from this *.py file and \r
209  select the necessary function. &nbsp;</span>&nbsp;&nbsp;</p>\r
210 \r
211 <p class="whs17">&nbsp;</p>\r
212 \r
213 <p class="whs17">To add \r
214  an inline node into your graph click <span style="font-weight: bold;"><B>Add \r
215  Node </B></span>button. &nbsp;&nbsp;</p>\r
216 \r
217 <p class="whs17">&nbsp;</p>\r
218 \r
219 <p class="whs17">&nbsp;</p>\r
220 \r
221 <p class="whs17">&nbsp;</p>\r
222 \r
223 <p class="whs17">\r
224 <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
225 \r
226 \r
227  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>\r
228 \r
229 <p class="whs17">&nbsp;</p>\r
230 \r
231 <p class="whs17">&nbsp;</p>\r
232 \r
233 <p class="whs17">&nbsp;</p>\r
234 \r
235 <p class="whs17">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>\r
236 \r
237 <p class="whs17">&nbsp;</p>\r
238 \r
239 <script type="text/javascript" language="JavaScript" title="WebHelpRelatedTopics"><!--\r
240 if (parseInt(navigator.appVersion) >= 3 && typeof (WritePopupMenuLayer) == "function")\r
241   WritePopupMenuLayer();\r
242 //--></script><script type="text/javascript" language="javascript1.2">\r
243 <!--\r
244 if (window.writeIntopicBar)\r
245         writeIntopicBar(0);\r
246 //-->\r
247 </script>\r
248 </body>\r
249 </html>\r