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