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