| 1 | package Icons "Icon definitions" |
|---|
| 2 | |
|---|
| 3 | annotation(preferedView="info", |
|---|
| 4 | Window( |
|---|
| 5 | x=0.08, |
|---|
| 6 | y=0.08, |
|---|
| 7 | width=0.28, |
|---|
| 8 | height=0.51, |
|---|
| 9 | library=1, |
|---|
| 10 | autolayout=1), |
|---|
| 11 | Icon( |
|---|
| 12 | Rectangle(extent=[-100, -100; 80, 50], style(fillColor=30, fillPattern=1)), |
|---|
| 13 | Polygon(points=[-100, 50; -80, 70; 100, 70; 80, 50; -100, 50], style( |
|---|
| 14 | fillColor=30, fillPattern=1)), |
|---|
| 15 | Polygon(points=[100, 70; 100, -80; 80, -100; 80, 50; 100, 70], style( |
|---|
| 16 | fillColor=30, fillPattern=1)), |
|---|
| 17 | Text( |
|---|
| 18 | extent=[-120, 135; 120, 70], |
|---|
| 19 | string="%name", |
|---|
| 20 | style(color=1)), |
|---|
| 21 | Text( |
|---|
| 22 | extent=[-90, 40; 70, 10], |
|---|
| 23 | string="Library", |
|---|
| 24 | style( |
|---|
| 25 | color=9, |
|---|
| 26 | fillColor=0, |
|---|
| 27 | fillPattern=1)), |
|---|
| 28 | Rectangle(extent=[-100, -100; 80, 50], style(fillColor=30, fillPattern=1)), |
|---|
| 29 | Polygon(points=[-100, 50; -80, 70; 100, 70; 80, 50; -100, 50], style( |
|---|
| 30 | fillColor=30, fillPattern=1)), |
|---|
| 31 | Polygon(points=[100, 70; 100, -80; 80, -100; 80, 50; 100, 70], style( |
|---|
| 32 | fillColor=30, fillPattern=1)), |
|---|
| 33 | Text( |
|---|
| 34 | extent=[-90, 40; 70, 10], |
|---|
| 35 | string="Library", |
|---|
| 36 | style( |
|---|
| 37 | color=9, |
|---|
| 38 | fillColor=0, |
|---|
| 39 | fillPattern=1)), |
|---|
| 40 | Polygon(points=[-64, -20; -50, -4; 50, -4; 36, -20; -64, -20; -64, -20], |
|---|
| 41 | style( |
|---|
| 42 | color=0, |
|---|
| 43 | fillColor=8, |
|---|
| 44 | fillPattern=1)), |
|---|
| 45 | Rectangle(extent=[-64, -20; 36, -84], style( |
|---|
| 46 | color=0, |
|---|
| 47 | fillColor=8, |
|---|
| 48 | fillPattern=1)), |
|---|
| 49 | Text( |
|---|
| 50 | extent=[-60, -24; 32, -38], |
|---|
| 51 | string="Library", |
|---|
| 52 | style( |
|---|
| 53 | color=10, |
|---|
| 54 | fillColor=10, |
|---|
| 55 | fillPattern=1)), |
|---|
| 56 | Polygon(points=[50, -4; 50, -70; 36, -84; 36, -20; 50, -4], style( |
|---|
| 57 | color=0, |
|---|
| 58 | fillColor=8, |
|---|
| 59 | fillPattern=1))), Documentation(info="<html> |
|---|
| 60 | <p> |
|---|
| 61 | This package contains definitions for the graphical layout of |
|---|
| 62 | components which may be used in different libraries. |
|---|
| 63 | The icons can be utilized by inheriting them in the desired class |
|---|
| 64 | using \"extends\". |
|---|
| 65 | </p> |
|---|
| 66 | <dl> |
|---|
| 67 | <dt><b>Main Author:</b> |
|---|
| 68 | <dd><a href=\"http://www.robotic.dlr.de/Martin.Otter/\">Martin Otter</a><br> |
|---|
| 69 | Deutsches Zentrum fuer Luft und Raumfahrt e.V. (DLR)<br> |
|---|
| 70 | Oberpfaffenhofen<br> |
|---|
| 71 | Postfach 1116<br> |
|---|
| 72 | D-82230 Wessling<br> |
|---|
| 73 | email: <A HREF=\"mailto:Martin.Otter@dlr.de\">Martin.Otter@dlr.de</A><br> |
|---|
| 74 | </dl> |
|---|
| 75 | |
|---|
| 76 | <p> |
|---|
| 77 | Copyright © 1998-2006, Modelica Association and DLR. |
|---|
| 78 | </p> |
|---|
| 79 | <p> |
|---|
| 80 | <i>This Modelica package is <b>free</b> software; it can be redistributed and/or modified |
|---|
| 81 | under the terms of the <b>Modelica license</b>, see the license conditions |
|---|
| 82 | and the accompanying <b>disclaimer</b> |
|---|
| 83 | <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> |
|---|
| 84 | </p><br> |
|---|
| 85 | </HTML> |
|---|
| 86 | ", revisions="<html> |
|---|
| 87 | <ul> |
|---|
| 88 | <li><i>October 21, 2002</i> |
|---|
| 89 | by <a href=\"http://www.robotic.dlr.de/Martin.Otter/\">Martin Otter</a> |
|---|
| 90 | and <a href=\"http://www.robotic.dlr.de/Christian.Schweiger/\">Christian Schweiger</a>:<br> |
|---|
| 91 | Added new icons <b>Function</b>, <b>Enumerations</b> and <b>Record</b>.</li> |
|---|
| 92 | <li><i>June 6, 2000</i> |
|---|
| 93 | by <a href=\"http://www.robotic.dlr.de/Martin.Otter/\">Martin Otter</a>:<br> |
|---|
| 94 | Replaced <b>model</b> keyword by <b>package</b> if the main |
|---|
| 95 | usage is for inheriting from a package.<br> |
|---|
| 96 | New icons <b>GearIcon</b> and <b>MotorIcon</b>.</li> |
|---|
| 97 | <li><i>Sept. 18, 1999</i> |
|---|
| 98 | by <a href=\"http://www.robotic.dlr.de/Martin.Otter/\">Martin Otter</a>:<br> |
|---|
| 99 | Renaming package Icon to Icons. |
|---|
| 100 | Model Advanced removed (icon not accepted on the Modelica meeting). |
|---|
| 101 | New model Library2, which is the Library icon with enough place |
|---|
| 102 | to add library specific elements in the icon. Icon also used in diagram |
|---|
| 103 | level for models Info, TranslationalSensor, RotationalSensor.</li> |
|---|
| 104 | <li><i>July 15, 1999</i> |
|---|
| 105 | by <a href=\"http://www.robotic.dlr.de/Martin.Otter/\">Martin Otter</a>:<br> |
|---|
| 106 | Model Caution renamed to Advanced, model Sensor renamed to |
|---|
| 107 | TranslationalSensor, new model RotationalSensor.</li> |
|---|
| 108 | <li><i>June 30, 1999</i> |
|---|
| 109 | by <a href=\"http://www.robotic.dlr.de/Martin.Otter/\">Martin Otter</a>:<br> |
|---|
| 110 | Realized a first version.</li> |
|---|
| 111 | </ul> |
|---|
| 112 | <br> |
|---|
| 113 | </html>")); |
|---|
| 114 | partial model Info "Icon for an information class" |
|---|
| 115 | annotation ( |
|---|
| 116 | Coordsys( |
|---|
| 117 | extent=[-100, -100; 100, 100], |
|---|
| 118 | grid=[1, 1], |
|---|
| 119 | component=[20, 20]), |
|---|
| 120 | Icon( |
|---|
| 121 | Rectangle(extent=[-100, 80; 80, -90], style(color=3)), |
|---|
| 122 | Polygon(points=[-100, 80; -90, 90; 90, 90; 80, 80; -100, 80], style( |
|---|
| 123 | fillColor=3)), |
|---|
| 124 | Polygon(points=[80, -90; 90, -80; 90, 90; 80, 80; 80, -90], style( |
|---|
| 125 | fillColor=3)), |
|---|
| 126 | Text(extent=[-80, 70; 60, -70], string="Info")), |
|---|
| 127 | Diagram( |
|---|
| 128 | Rectangle(extent=[-100, 80; 80, -90], style(color=3)), |
|---|
| 129 | Polygon(points=[-100, 80; -90, 90; 90, 90; 80, 80; -100, 80], style( |
|---|
| 130 | fillColor=3)), |
|---|
| 131 | Polygon(points=[80, -90; 90, -80; 90, 90; 80, 80; 80, -90], style( |
|---|
| 132 | fillColor=3)), |
|---|
| 133 | Text(extent=[-80, 70; 60, -70], string="Info"))); |
|---|
| 134 | equation |
|---|
| 135 | |
|---|
| 136 | end Info; |
|---|
| 137 | |
|---|
| 138 | partial package Library "Icon for library" |
|---|
| 139 | annotation (Coordsys( |
|---|
| 140 | extent=[-100, -100; 100, 100], |
|---|
| 141 | grid=[1, 1], |
|---|
| 142 | component=[20, 20]), Icon( |
|---|
| 143 | Rectangle(extent=[-100, -100; 80, 50], style(fillColor=30, |
|---|
| 144 | fillPattern= |
|---|
| 145 | 1)), |
|---|
| 146 | Polygon(points=[-100, 50; -80, 70; 100, 70; 80, 50; -100, 50], style( |
|---|
| 147 | fillColor=30, fillPattern=1)), |
|---|
| 148 | Polygon(points=[100, 70; 100, -80; 80, -100; 80, 50; 100, 70], style( |
|---|
| 149 | fillColor=30, fillPattern=1)), |
|---|
| 150 | Text( |
|---|
| 151 | extent=[-85, 35; 65, -85], |
|---|
| 152 | string="Library", |
|---|
| 153 | style(color=3)), |
|---|
| 154 | Text( |
|---|
| 155 | extent=[-120, 122; 120, 73], |
|---|
| 156 | string="%name", |
|---|
| 157 | style(color=1)))); |
|---|
| 158 | end Library; |
|---|
| 159 | |
|---|
| 160 | partial package Library2 |
|---|
| 161 | "Icon for library where additional icon elements shall be added" |
|---|
| 162 | annotation (Coordsys( |
|---|
| 163 | extent=[-100, -100; 100, 100], |
|---|
| 164 | grid=[1, 1], |
|---|
| 165 | component=[20, 20]), Icon( |
|---|
| 166 | Rectangle(extent=[-100, -100; 80, 50], style(fillColor=30, |
|---|
| 167 | fillPattern= |
|---|
| 168 | 1)), |
|---|
| 169 | Polygon(points=[-100, 50; -80, 70; 100, 70; 80, 50; -100, 50], style( |
|---|
| 170 | fillColor=30, fillPattern=1)), |
|---|
| 171 | Polygon(points=[100, 70; 100, -80; 80, -100; 80, 50; 100, 70], style( |
|---|
| 172 | fillColor=30, fillPattern=1)), |
|---|
| 173 | Text( |
|---|
| 174 | extent=[-120, 125; 120, 70], |
|---|
| 175 | string="%name", |
|---|
| 176 | style(color=1)), |
|---|
| 177 | Text( |
|---|
| 178 | extent=[-90, 40; 70, 10], |
|---|
| 179 | string="Library", |
|---|
| 180 | style( |
|---|
| 181 | color=9, |
|---|
| 182 | fillColor=0, |
|---|
| 183 | fillPattern=1)))); |
|---|
| 184 | end Library2; |
|---|
| 185 | |
|---|
| 186 | partial model Example "Icon for an example model" |
|---|
| 187 | annotation (Coordsys( |
|---|
| 188 | extent=[-100, -100; 100, 100], |
|---|
| 189 | grid=[1, 1], |
|---|
| 190 | component=[20, 20]), Icon( |
|---|
| 191 | Rectangle(extent=[-100, -100; 80, 50], style(fillColor=7)), |
|---|
| 192 | Polygon(points=[-100, 50; -80, 70; 100, 70; 80, 50; -100, 50], style( |
|---|
| 193 | fillColor=7)), |
|---|
| 194 | Polygon(points=[100, 70; 100, -80; 80, -100; 80, 50; 100, 70], style( |
|---|
| 195 | fillColor=7)), |
|---|
| 196 | Text( |
|---|
| 197 | extent=[-96, 3; 77, -49], |
|---|
| 198 | string="Example", |
|---|
| 199 | style(color=3)), |
|---|
| 200 | Text( |
|---|
| 201 | extent=[-120, 132; 120, 73], |
|---|
| 202 | string="%name", |
|---|
| 203 | style(color=1)))); |
|---|
| 204 | equation |
|---|
| 205 | |
|---|
| 206 | end Example; |
|---|
| 207 | |
|---|
| 208 | partial function Function "Icon for a function" |
|---|
| 209 | annotation (Icon( |
|---|
| 210 | Text(extent=[-140,162; 136,102], string="%name"), |
|---|
| 211 | Ellipse(extent=[-100,100; 100,-100], style(color=45, fillColor=7)), |
|---|
| 212 | Text( |
|---|
| 213 | extent=[-100,100; 100,-100], |
|---|
| 214 | style(color=45), |
|---|
| 215 | string="f"))); |
|---|
| 216 | end Function; |
|---|
| 217 | |
|---|
| 218 | partial record Record "Icon for a record" |
|---|
| 219 | annotation (Icon( |
|---|
| 220 | Rectangle(extent=[-100, 50; 100, -100], style(fillColor=51, |
|---|
| 221 | fillPattern= |
|---|
| 222 | 1)), |
|---|
| 223 | Text(extent=[-127, 115; 127, 55], string="%name"), |
|---|
| 224 | Line(points=[-100, -50; 100, -50], style(color=0)), |
|---|
| 225 | Line(points=[-100, 0; 100, 0], style(color=0)), |
|---|
| 226 | Line(points=[0, 50; 0, -100], style(color=0)))); |
|---|
| 227 | end Record; |
|---|
| 228 | |
|---|
| 229 | partial class Enumeration "Icon for an enumeration (emulated by a package)" |
|---|
| 230 | |
|---|
| 231 | annotation (Icon( |
|---|
| 232 | Text(extent=[-138,164; 138,104], string="%name"), |
|---|
| 233 | Ellipse(extent=[-100,100; 100,-100], style(color=85, fillColor=7)), |
|---|
| 234 | Text( |
|---|
| 235 | extent=[-100,100; 100,-100], |
|---|
| 236 | style(color=85, fillColor=88), |
|---|
| 237 | string="e"))); |
|---|
| 238 | end Enumeration; |
|---|
| 239 | |
|---|
| 240 | type TypeReal "Icon for a Real type" |
|---|
| 241 | extends Real; |
|---|
| 242 | annotation(Icon(Rectangle(extent=[-100,100; 100,-100], style( |
|---|
| 243 | color=0, |
|---|
| 244 | rgbcolor={0,0,0}, |
|---|
| 245 | fillColor=8, |
|---|
| 246 | rgbfillColor={181,181,181})), Text( |
|---|
| 247 | extent=[-94,94; 94,-94], |
|---|
| 248 | style( |
|---|
| 249 | color=0, |
|---|
| 250 | rgbcolor={0,0,0}, |
|---|
| 251 | fillColor=8, |
|---|
| 252 | rgbfillColor={181,181,181}), |
|---|
| 253 | string="R"))); |
|---|
| 254 | end TypeReal; |
|---|
| 255 | |
|---|
| 256 | type TypeInteger "Icon for an Integer type" |
|---|
| 257 | extends Integer; |
|---|
| 258 | annotation(Icon(Rectangle(extent=[-100,100; 100,-100], style( |
|---|
| 259 | color=0, |
|---|
| 260 | rgbcolor={0,0,0}, |
|---|
| 261 | fillColor=8, |
|---|
| 262 | rgbfillColor={181,181,181})), Text( |
|---|
| 263 | extent=[-94,94; 94,-94], |
|---|
| 264 | style( |
|---|
| 265 | color=0, |
|---|
| 266 | rgbcolor={0,0,0}, |
|---|
| 267 | fillColor=8, |
|---|
| 268 | rgbfillColor={181,181,181}), |
|---|
| 269 | string="I"))); |
|---|
| 270 | end TypeInteger; |
|---|
| 271 | |
|---|
| 272 | type TypeBoolean "Icon for a Boolean type" |
|---|
| 273 | extends Boolean; |
|---|
| 274 | annotation(Icon(Rectangle(extent=[-100,100; 100,-100], style( |
|---|
| 275 | color=0, |
|---|
| 276 | rgbcolor={0,0,0}, |
|---|
| 277 | fillColor=8, |
|---|
| 278 | rgbfillColor={181,181,181})), Text( |
|---|
| 279 | extent=[-94,94; 94,-94], |
|---|
| 280 | style( |
|---|
| 281 | color=0, |
|---|
| 282 | rgbcolor={0,0,0}, |
|---|
| 283 | fillColor=8, |
|---|
| 284 | rgbfillColor={181,181,181}), |
|---|
| 285 | string="B"))); |
|---|
| 286 | end TypeBoolean; |
|---|
| 287 | |
|---|
| 288 | type TypeString "Icon for a String type" |
|---|
| 289 | extends String; |
|---|
| 290 | annotation(Icon(Rectangle(extent=[-100,100; 100,-100], style( |
|---|
| 291 | color=0, |
|---|
| 292 | rgbcolor={0,0,0}, |
|---|
| 293 | fillColor=8, |
|---|
| 294 | rgbfillColor={181,181,181})), Text( |
|---|
| 295 | extent=[-94,94; 94,-94], |
|---|
| 296 | style( |
|---|
| 297 | color=0, |
|---|
| 298 | rgbcolor={0,0,0}, |
|---|
| 299 | fillColor=8, |
|---|
| 300 | rgbfillColor={181,181,181}), |
|---|
| 301 | string="S"))); |
|---|
| 302 | end TypeString; |
|---|
| 303 | |
|---|
| 304 | partial model TranslationalSensor |
|---|
| 305 | "Icon representing translational measurement device" |
|---|
| 306 | annotation ( |
|---|
| 307 | Coordsys( |
|---|
| 308 | extent=[-100, -100; 100, 100], |
|---|
| 309 | grid=[1, 1], |
|---|
| 310 | component=[20, 20]), |
|---|
| 311 | Icon( |
|---|
| 312 | Rectangle(extent=[-70, -60; 70, 20], style(color=0, fillColor=7)), |
|---|
| 313 | Polygon(points=[0, -40; -10, -16; 10, -16; 0, -40], style( |
|---|
| 314 | color=0, |
|---|
| 315 | fillColor=0, |
|---|
| 316 | fillPattern=1)), |
|---|
| 317 | Line(points=[0, 0; 0, -16], style(color=0)), |
|---|
| 318 | Line(points=[-70, 0; 0, 0], style(color=0)), |
|---|
| 319 | Line(points=[-50, -40; -50, -60], style(color=0)), |
|---|
| 320 | Line(points=[-30, -40; -30, -60], style(color=0)), |
|---|
| 321 | Line(points=[-10, -40; -10, -60], style(color=0)), |
|---|
| 322 | Line(points=[10, -40; 10, -60], style(color=0)), |
|---|
| 323 | Line(points=[30, -40; 30, -60], style(color=0)), |
|---|
| 324 | Line(points=[50, -40; 50, -60], style(color=0))), |
|---|
| 325 | Diagram( |
|---|
| 326 | Rectangle(extent=[-70, -60; 70, 20], style(color=0, fillColor=7)), |
|---|
| 327 | Polygon(points=[0, -40; -10, -16; 10, -16; 0, -40], style( |
|---|
| 328 | color=0, |
|---|
| 329 | fillColor=0, |
|---|
| 330 | fillPattern=1)), |
|---|
| 331 | Line(points=[0, 0; 0, -16], style(color=0)), |
|---|
| 332 | Line(points=[-70, 0; 0, 0], style(color=0)), |
|---|
| 333 | Line(points=[-50, -40; -50, -60], style(color=0)), |
|---|
| 334 | Line(points=[-30, -40; -30, -60], style(color=0)), |
|---|
| 335 | Line(points=[-10, -40; -10, -60], style(color=0)), |
|---|
| 336 | Line(points=[10, -40; 10, -60], style(color=0)), |
|---|
| 337 | Line(points=[30, -40; 30, -60], style(color=0)), |
|---|
| 338 | Line(points=[50, -40; 50, -60], style(color=0)))); |
|---|
| 339 | equation |
|---|
| 340 | |
|---|
| 341 | end TranslationalSensor; |
|---|
| 342 | |
|---|
| 343 | partial model RotationalSensor |
|---|
| 344 | "Icon representing rotational measurement device" |
|---|
| 345 | annotation ( |
|---|
| 346 | Coordsys( |
|---|
| 347 | extent=[-100, -100; 100, 100], |
|---|
| 348 | grid=[1, 1], |
|---|
| 349 | component=[20, 20]), |
|---|
| 350 | Icon( |
|---|
| 351 | Ellipse(extent=[-70, 70; 70, -70], style(color=0, fillColor=7)), |
|---|
| 352 | Line(points=[0, 70; 0, 40], style(color=0)), |
|---|
| 353 | Line(points=[22.9, 32.8; 40.2, 57.3], style(color=0)), |
|---|
| 354 | Line(points=[-22.9, 32.8; -40.2, 57.3], style(color=0)), |
|---|
| 355 | Line(points=[37.6, 13.7; 65.8, 23.9], style(color=0)), |
|---|
| 356 | Line(points=[-37.6, 13.7; -65.8, 23.9], style(color=0)), |
|---|
| 357 | Line(points=[0, 0; 9.02, 28.6], style(color=0)), |
|---|
| 358 | Polygon(points=[-0.48, 31.6; 18, 26; 18, 57.2; -0.48, 31.6], style( |
|---|
| 359 | color=0, |
|---|
| 360 | fillColor=0, |
|---|
| 361 | fillPattern=1)), |
|---|
| 362 | Ellipse(extent=[-5, 5; 5, -5], style( |
|---|
| 363 | color=0, |
|---|
| 364 | gradient=0, |
|---|
| 365 | fillColor=0, |
|---|
| 366 | fillPattern=1))), |
|---|
| 367 | Diagram( |
|---|
| 368 | Ellipse(extent=[-70, 70; 70, -70], style(color=0, fillColor=7)), |
|---|
| 369 | Line(points=[0, 70; 0, 40], style(color=0)), |
|---|
| 370 | Line(points=[22.9, 32.8; 40.2, 57.3], style(color=0)), |
|---|
| 371 | Line(points=[-22.9, 32.8; -40.2, 57.3], style(color=0)), |
|---|
| 372 | Line(points=[37.6, 13.7; 65.8, 23.9], style(color=0)), |
|---|
| 373 | Line(points=[-37.6, 13.7; -65.8, 23.9], style(color=0)), |
|---|
| 374 | Line(points=[0, 0; 9.02, 28.6], style(color=0)), |
|---|
| 375 | Polygon(points=[-0.48, 31.6; 18, 26; 18, 57.2; -0.48, 31.6], style( |
|---|
| 376 | color=0, |
|---|
| 377 | fillColor=0, |
|---|
| 378 | fillPattern=1)), |
|---|
| 379 | Ellipse(extent=[-5, 5; 5, -5], style( |
|---|
| 380 | color=0, |
|---|
| 381 | gradient=0, |
|---|
| 382 | fillColor=0, |
|---|
| 383 | fillPattern=1)))); |
|---|
| 384 | equation |
|---|
| 385 | |
|---|
| 386 | end RotationalSensor; |
|---|
| 387 | |
|---|
| 388 | partial model GearIcon "Icon for gearbox" |
|---|
| 389 | annotation (Coordsys( |
|---|
| 390 | extent=[-100, -100; 100, 100], |
|---|
| 391 | grid=[2, 2], |
|---|
| 392 | component=[20, 20]), Icon( |
|---|
| 393 | Rectangle(extent=[-90, 10; -60, -10], style( |
|---|
| 394 | gradient=2, |
|---|
| 395 | fillColor=8, |
|---|
| 396 | fillPattern=1)), |
|---|
| 397 | Polygon(points=[-60, 10; -60, 20; -40, 40; -40, -40; -60, -20; -60, 10], |
|---|
| 398 | style( |
|---|
| 399 | color=10, |
|---|
| 400 | gradient=2, |
|---|
| 401 | fillColor=10, |
|---|
| 402 | fillPattern=1)), |
|---|
| 403 | Rectangle(extent=[-40, 60; 40, -60], style( |
|---|
| 404 | color=3, |
|---|
| 405 | pattern=1, |
|---|
| 406 | thickness=1, |
|---|
| 407 | gradient=2, |
|---|
| 408 | arrow=0, |
|---|
| 409 | fillColor=8, |
|---|
| 410 | fillPattern=1)), |
|---|
| 411 | Polygon(points=[60, 20; 40, 40; 40, -40; 60, -20; 60, 20], style( |
|---|
| 412 | color=10, |
|---|
| 413 | fillColor=10, |
|---|
| 414 | fillPattern=1)), |
|---|
| 415 | Rectangle(extent=[60, 10; 90, -10], style( |
|---|
| 416 | gradient=2, |
|---|
| 417 | fillColor=8, |
|---|
| 418 | fillPattern=1)), |
|---|
| 419 | Polygon(points=[-60, -90; -50, -90; -20, -30; 20, -30; 48, -90; 60, -90; |
|---|
| 420 | 60, -100; -60, -100; -60, -90], style( |
|---|
| 421 | color=0, |
|---|
| 422 | fillColor=0, |
|---|
| 423 | fillPattern=1)))); |
|---|
| 424 | equation |
|---|
| 425 | |
|---|
| 426 | end GearIcon; |
|---|
| 427 | |
|---|
| 428 | partial model MotorIcon "Icon for electrical motor" |
|---|
| 429 | annotation (Coordsys( |
|---|
| 430 | extent=[-100, -100; 100, 100], |
|---|
| 431 | grid=[1, 1], |
|---|
| 432 | component=[20, 20]), Icon( |
|---|
| 433 | Rectangle(extent=[-100, 50; 30, -50], style( |
|---|
| 434 | color=1, |
|---|
| 435 | gradient=2, |
|---|
| 436 | fillColor=1, |
|---|
| 437 | fillPattern=1)), |
|---|
| 438 | Polygon(points=[-100, -90; -90, -90; -60, -20; -10, -20; 20, -90; 30, - |
|---|
| 439 | 90; 30, -100; -100, -100; -100, -90], style( |
|---|
| 440 | color=0, |
|---|
| 441 | gradient=0, |
|---|
| 442 | fillColor=0, |
|---|
| 443 | fillPattern=1)), |
|---|
| 444 | Rectangle(extent=[30, 10; 90, -10], style( |
|---|
| 445 | gradient=2, |
|---|
| 446 | fillColor=8, |
|---|
| 447 | fillPattern=1)))); |
|---|
| 448 | equation |
|---|
| 449 | |
|---|
| 450 | end MotorIcon; |
|---|
| 451 | |
|---|
| 452 | connector SignalBus "Icon for signal bus" |
|---|
| 453 | |
|---|
| 454 | annotation ( |
|---|
| 455 | Icon( |
|---|
| 456 | Rectangle(extent=[-20,2; 20,-2], style(rgbcolor={255,204,51}, thickness=2)), |
|---|
| 457 | Polygon(points=[-80,50; 80,50; 100,30; 80,-40; 60,-50; -60,-50; -80,-40; |
|---|
| 458 | -100,30; -80,50], style( |
|---|
| 459 | color=0, |
|---|
| 460 | rgbcolor={0,0,0}, |
|---|
| 461 | fillColor=6, |
|---|
| 462 | rgbfillColor={255,204,51})), |
|---|
| 463 | Ellipse(extent=[-65, 25; -55, 15], style( |
|---|
| 464 | color=0, |
|---|
| 465 | rgbcolor={0,0,0}, |
|---|
| 466 | fillColor=0, |
|---|
| 467 | rgbfillColor={0,0,0})), |
|---|
| 468 | Ellipse(extent=[-5, 25; 5, 15], style( |
|---|
| 469 | color=0, |
|---|
| 470 | rgbcolor={0,0,0}, |
|---|
| 471 | fillColor=0, |
|---|
| 472 | rgbfillColor={0,0,0})), |
|---|
| 473 | Ellipse(extent=[55, 25; 65, 15],style( |
|---|
| 474 | color=0, |
|---|
| 475 | rgbcolor={0,0,0}, |
|---|
| 476 | fillColor=0, |
|---|
| 477 | rgbfillColor={0,0,0})), |
|---|
| 478 | Ellipse(extent=[-35, -15; -25, -25], style( |
|---|
| 479 | color=0, |
|---|
| 480 | rgbcolor={0,0,0}, |
|---|
| 481 | |
|---|