<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=OpenModelica%2FC3%2FIcon-and-Diagram-Views%2FEnglish</id>
		<title>OpenModelica/C3/Icon-and-Diagram-Views/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=OpenModelica%2FC3%2FIcon-and-Diagram-Views%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Icon-and-Diagram-Views/English&amp;action=history"/>
		<updated>2026-04-17T11:35:39Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Icon-and-Diagram-Views/English&amp;diff=26154&amp;oldid=prev</id>
		<title>Nancyvarkey at 02:03, 30 March 2016</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Icon-and-Diagram-Views/English&amp;diff=26154&amp;oldid=prev"/>
				<updated>2016-03-30T02:03:40Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Icon-and-Diagram-Views/English&amp;amp;diff=26154&amp;amp;oldid=26147&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Icon-and-Diagram-Views/English&amp;diff=26147&amp;oldid=prev</id>
		<title>Kaushik Datta at 10:50, 29 March 2016</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Icon-and-Diagram-Views/English&amp;diff=26147&amp;oldid=prev"/>
				<updated>2016-03-29T10:50:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Icon-and-Diagram-Views/English&amp;amp;diff=26147&amp;amp;oldid=26144&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Kaushik Datta</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Icon-and-Diagram-Views/English&amp;diff=26144&amp;oldid=prev</id>
		<title>Kaushik Datta: Created page with &quot;{| border=1 ||'''Visual Cue''' ||'''Narration'''  |- || Slide:  '''Title Slide''' || Welcome to the spoken tutorial on '''Icon and Diagram Views'''.  |- || Slide:  '''Learning...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Icon-and-Diagram-Views/English&amp;diff=26144&amp;oldid=prev"/>
				<updated>2016-03-29T08:04:54Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=1 ||&amp;#039;&amp;#039;&amp;#039;Visual Cue&amp;#039;&amp;#039;&amp;#039; ||&amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- || Slide:  &amp;#039;&amp;#039;&amp;#039;Title Slide&amp;#039;&amp;#039;&amp;#039; || Welcome to the spoken tutorial on &amp;#039;&amp;#039;&amp;#039;Icon and Diagram Views&amp;#039;&amp;#039;&amp;#039;.  |- || Slide:  &amp;#039;&amp;#039;&amp;#039;Learning...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
||'''Visual Cue'''&lt;br /&gt;
||'''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Icon and Diagram Views'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we are going to learn:&lt;br /&gt;
&lt;br /&gt;
* How to specify '''icon and diagram views''' of a '''class'''.&lt;br /&gt;
* How to insert a '''polygon''' or '''ellipse''' in '''Icon/Diagram View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
* '''OpenModelica 1.9.2'''&lt;br /&gt;
* You may use any of the following operating systems:&lt;br /&gt;
&lt;br /&gt;
'''Linux, Windows, Mac OS X''' or '''FOSSEE OS'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
|| * To understand and practice this tutorial, you need knowledge of class definition in '''Modelica'''. &lt;br /&gt;
&lt;br /&gt;
* You need to know how to specify an annotation.&lt;br /&gt;
&lt;br /&gt;
* Prerequisite tutorials are available on our website. &lt;br /&gt;
&lt;br /&gt;
Please go through them.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Icon and Diagram Views'''&lt;br /&gt;
|| '''Icon and Diagram Views''' enable viewing a model graphically.&lt;br /&gt;
&lt;br /&gt;
'''Annotations''' can be used to specify '''Icon and Diagram Views''' of a model. &lt;br /&gt;
&lt;br /&gt;
'''Icon View''' is specified using '''Icon Annotation''' whereas '''Diagram View''' is specified using '''Diagram Annotation'''.&lt;br /&gt;
&lt;br /&gt;
They enable drag-and-drop functionality for '''component-oriented modeling'''. &lt;br /&gt;
&lt;br /&gt;
We will discuss more about this feature in upcoming tutorials.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Icon/Diagram Annotation'''&lt;br /&gt;
|| Now, let us try to understand the syntax of '''Icon and Diagram Annotations'''. &lt;br /&gt;
&lt;br /&gt;
As we saw in previous tutorials, '''annotations''' can be better understood as records.&lt;br /&gt;
&lt;br /&gt;
Hence, '''Icon and Diagram annotations''' can be considered as records with '''coordinateSystem''' and '''graphics''' as the fields.&lt;br /&gt;
&lt;br /&gt;
We will look at each one of them individually. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''coordinateSystem'''&lt;br /&gt;
|| '''coordinateSystem''' may be considered as a record with the following fields: &lt;br /&gt;
&lt;br /&gt;
* '''extent''', &lt;br /&gt;
*'''initialScale''', &lt;br /&gt;
*'''preserveAspectRatio''' and &lt;br /&gt;
*'''grid'''. &lt;br /&gt;
&lt;br /&gt;
We will understand them through an example.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Syntax of Icon/Diagram Annotation'''&lt;br /&gt;
|| Here is an example demonstrating syntax of '''Icon/Diagram Annotation'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me go to '''OMEdit'''. &lt;br /&gt;
&lt;br /&gt;
We shall understand '''icon and diagram annotations''' through an example named '''bouncingBallWithAnnotations'''. &lt;br /&gt;
&lt;br /&gt;
Please download this file from our website.&lt;br /&gt;
&lt;br /&gt;
This model was used in previous tutorials. &lt;br /&gt;
&lt;br /&gt;
Please watch prerequisite tutorials for more information on this model.&lt;br /&gt;
&lt;br /&gt;
I have already opened '''bouncingBallWithAnnotations''' in '''OMEdit'''. &lt;br /&gt;
&lt;br /&gt;
Double-click on its icon in '''Libraries Browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| The model is now open in '''Icon View'''. &lt;br /&gt;
&lt;br /&gt;
Switch to '''Icon View''' if it opens in '''Diagram or Text View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me shift '''OMEdit''' window to the left for better visibility.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click on white space. Select '''Properties'''.&lt;br /&gt;
|| You can observe a circle on white background in the '''Icon View''' of this model. &lt;br /&gt;
&lt;br /&gt;
I will be referring to the white space in '''Icon View''' as canvas. &lt;br /&gt;
&lt;br /&gt;
Note that the canvas is divided into grids.&lt;br /&gt;
&lt;br /&gt;
We will first learn how to manipulate the properties of canvas. &lt;br /&gt;
&lt;br /&gt;
We shall then learn how to insert a circle and a polygon. &lt;br /&gt;
&lt;br /&gt;
Right click on the canvas and select '''Properties'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''OMEdit - Properties'''&lt;br /&gt;
|| A dialog box opens as shown. &lt;br /&gt;
&lt;br /&gt;
Note that there are categories named '''Extent''' and '''Grid'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| '''Extent''' signifies the extent of canvas.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Hover over '''Left''' and '''Top'''.&lt;br /&gt;
|| The fields named '''Left''' and '''Top''' correspond to coordinates of top left corner. &lt;br /&gt;
&lt;br /&gt;
'''Left''' corresponds to the horizontal coordinate and '''Top''' corresponds to vertical coordinate.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Similarly, '''Bottom''' and '''Right''' correspond to the horizontal and vertical coordinates of the bottom right corner.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| ‘Left’ → -200.00&lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''.&lt;br /&gt;
|| Now, let us change the '''Left''' field to '''-200''' units. &lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* Icon View */&lt;br /&gt;
|| Note that the canvas expanded to the left.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click on white space. Select '''Properties'''.&lt;br /&gt;
|| Right-click on white space again. &lt;br /&gt;
&lt;br /&gt;
Select '''Properties'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| '''Grid''' signifies the size of grid. &lt;br /&gt;
&lt;br /&gt;
Note that the units of '''grid''' and '''extent''' differ by '''Scale Factor'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Note that the horizontal spacing between grids increased.&lt;br /&gt;
&lt;br /&gt;
These properties of '''Icon View '''can also be manipulated using '''Icon annotation''' in '''Text View'''. &lt;br /&gt;
&lt;br /&gt;
Note that any change in '''Icon View''' is accordingly reflected in '''Icon annotation'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Text View'''.&lt;br /&gt;
|| Let us try to understand this. &lt;br /&gt;
&lt;br /&gt;
Go to the top of '''modeling''' area. &lt;br /&gt;
&lt;br /&gt;
Click on '''Text View'''. &lt;br /&gt;
&lt;br /&gt;
Scroll down a little bit.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| /* bouncingBallWithAnnotations */&lt;br /&gt;
&lt;br /&gt;
// Icon(coordinateSystem(extent = {{-200, -100}, {100, 100}}, grid = {4, 2})&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
|| '''coordinateSystem''', as we have seen in slides, is a field in '''Icon''' annotation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // Icon(coordinateSystem(extent = {{-200, -100}, {100, 100}}, grid = {4, 2})&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
|| '''extent''' is a field in '''coordinateSystem'''. &lt;br /&gt;
&lt;br /&gt;
It has two pairs of numbers. &lt;br /&gt;
&lt;br /&gt;
We have already seen how to manipulate the '''extent''' using '''Properties''' Dialog box.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // Icon(coordinateSystem(extent = {{-200, -100}, {100, 100}}, ..&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
|| The first pair of numbers is '''{-200,-100}'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // Icon(coordinateSystem(extent = {{-200, -100}, {100, 100}}, ..&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
|| The first number that is '''-200''' denotes the horizontal coordinate of the top left hand corner of canvas.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // Icon(coordinateSystem(extent = {{-200, -100}, {100, 100}}, ..&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
|| '''-200''' represents the vertical coordinate of the same point.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // Icon(coordinateSystem(extent = {{-200, -100}, {100, 100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {4, 2})&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
|| Similarly, the second pair represents the coordinates of bottom right corner of canvas.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now, let me change '''extent''' in Icon View. &lt;br /&gt;
&lt;br /&gt;
We will then see if it changes correspondingly in '''annotation'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Icon View'''.&lt;br /&gt;
|| Let me switch to Icon View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click on white space. Select '''Properties'''.&lt;br /&gt;
|| Right-click on canvas. &lt;br /&gt;
&lt;br /&gt;
Select '''Properties'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Left → -150.00. Click on '''Ok'''.&lt;br /&gt;
|| Change the '''Left''' field to '''-150.00'''. &lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Text View'''.&lt;br /&gt;
|| Switch to '''Text View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // Icon(coordinateSystem(extent = {{-150, -100}, {100, 100}}, grid = {2, 2})&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
|| Notice that the first pair in '''extent''' changes to '''{-200,100}'''. &lt;br /&gt;
&lt;br /&gt;
Hence, any change in '''Icon annotation''' creates a corresponding change in '''Icon View''' and vice-versa.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // Icon(coordinateSystem(extent = {{-150, -100}, {100, 100}}, grid = {4, 2})&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
|| A discussion of other fields of '''coordinateSystem''' like '''ScaleFactor''' are beyond the scope of this tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me go back to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
Graphical Items&lt;br /&gt;
|| We have discussed earlier that '''Icon''' annotation has '''coordinateSystem''' and '''graphics''' as its elements. &lt;br /&gt;
&lt;br /&gt;
'''graphics record''' may have the following items:&lt;br /&gt;
&lt;br /&gt;
* '''Line'''&lt;br /&gt;
* '''Rectangle'''&lt;br /&gt;
* '''Ellipse'''&lt;br /&gt;
* '''Polygon'''&lt;br /&gt;
* '''Text'''&lt;br /&gt;
* '''Bitmap'''&lt;br /&gt;
&lt;br /&gt;
Now, we will discuss how to insert these figures in '''Icon and Diagram views'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me go back to '''OMEdit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| We shall understand these annotations in three steps. &lt;br /&gt;
&lt;br /&gt;
'''bouncingBallWithAnnotations''' already has a circle inserted in its '''Icon View'''. &lt;br /&gt;
&lt;br /&gt;
The circle is obtained using '''Ellipse''' annotation. &lt;br /&gt;
&lt;br /&gt;
Let us first try to modify its properties.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // graphics = {Ellipse(lineColor = {0, 0, 255}, fillColor = {85, 170, 255}, fillPattern = FillPattern.Solid, extent = {{-100, 100}, {100, -100}}, endAngle = 360)} //&lt;br /&gt;
|| Note that an '''Ellipse''' is inserted and its properties specified. &lt;br /&gt;
&lt;br /&gt;
Let me go to '''Icon View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on ‘''Icon View'''.&lt;br /&gt;
|| Click on '''Icon View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click on '''blue space'''. Select '''Properties'''.&lt;br /&gt;
|| Right-click on the blue space within circle. &lt;br /&gt;
&lt;br /&gt;
Select '''Properties'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Hover over '''OriginX''' and '''OriginY'''.&lt;br /&gt;
|| '''OriginX''' is the horizontal coordinate of center of ellipse. &lt;br /&gt;
&lt;br /&gt;
Similarly, '''OriginY''' is the vertical coordinate of center of ellipse.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Hover over '''Extent1X'''&lt;br /&gt;
|| '''Extent1X''' is the horizontal coordinate of leftmost point on the ellipse.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Hover over '''Extent1Y'''&lt;br /&gt;
|| '''Extent1Y''' is the vertical coordinate of topmost point on the ellipse.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Similarly, '''Extent2X''' and '''Extent2Y''' signify the right-most and bottommost points of the ellipse.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Hover over '''Line Style'''&lt;br /&gt;
|| '''Line Style''' is used to vary the properties of border line&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Color'''. Choose '''Red''' in '''Color Palette'''.&lt;br /&gt;
|| Click on '''Color''' under '''Line Style'''. &lt;br /&gt;
&lt;br /&gt;
This allows you to change the color of border. &lt;br /&gt;
&lt;br /&gt;
Let me choose '''Red'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Pattern'''.&lt;br /&gt;
|| Click on '''Pattern''' under '''Line Style'''. &lt;br /&gt;
&lt;br /&gt;
This allows you to change the pattern of border. &lt;br /&gt;
&lt;br /&gt;
I have chosen a solid line.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Thickness'''.&lt;br /&gt;
|| '''Thickness''' field specifies the thickness of border. &lt;br /&gt;
&lt;br /&gt;
Change it to '''0.5'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Ok'''.&lt;br /&gt;
|| Click on '''Ok'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Notice the change in color of border '''Red''' and the increase in thickness.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click on '''Ellipse'''. Select '''Properties'''&lt;br /&gt;
|| Right click on the circle and select '''Properties'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Color''' '''Fill Style'''&lt;br /&gt;
|| Under '''Fill Style''', click on '''Color'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Choose '''Black''' in '''Color Palette'''.&lt;br /&gt;
|| Choose '''Black''' in '''Color Palette'''.&lt;br /&gt;
&lt;br /&gt;
It appears as the first color.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''FillPattern'''.&lt;br /&gt;
|| Click on Fill Pattern''' drop-down menu. &lt;br /&gt;
&lt;br /&gt;
Choose '''FillPattern.Horizontal'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Ok'''.&lt;br /&gt;
|| Click on '''Ok'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Note that the fill color changed to black. &lt;br /&gt;
&lt;br /&gt;
The pattern changed from solid to horizontal lines.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Text View'''&lt;br /&gt;
|| Let me now switch to '''Text View''' to explain '''Ellipse''' annotation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| // graphics = {Ellipse(lineColor = {0, 0, 255}, fillColor = {85, 170, 255}, fillPattern = FillPattern.Solid, extent = {{-100, 100}, {100, -100}}, endAngle = 360) //&lt;br /&gt;
|| '''lineColor''' takes three numbers which define the color of border.&lt;br /&gt;
&lt;br /&gt;
Each of these three numbers can take values between '''0''' and '''255'''. &lt;br /&gt;
&lt;br /&gt;
They correspond to the '''RGB''' intensity of the color used.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| graphics = {Ellipse(lineColor = {0, 0, 255}, fillColor = {85, 170, 255}, fillPattern = FillPattern.Solid, extent = {{-100, 100}, {100, -100}}, endAngle = 360)&lt;br /&gt;
|| '''fillColor''' specifies the color to be filled in the interior of ellipse.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| graphics = {Ellipse(lineColor = {0, 0, 255}, fillColor = {85, 170, 255}, fillPattern = FillPattern.Horizontal, extent = {{-100, 100}, {100, -100}}, endAngle = 360)&lt;br /&gt;
|| '''fillPattern''' specifies the pattern to be filled in the interior.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| graphics = {Ellipse(lineColor = {0, 0, 255}, fillColor = {85, 170, 255}, fillPattern = FillPattern.Horizontal, extent = {{-100, 100}, {100, -100}}, endAngle = 360)&lt;br /&gt;
|| '''extent''' is identical in context to '''extent''' field in '''coordinateSystem'''.&lt;br /&gt;
&lt;br /&gt;
Note that all these fields can be changed using '''Properties''' dialog box as we’ve already seen.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Icon View'''.&lt;br /&gt;
|| Now, let me construct a new ellipse in the '''Icon View''' using the tool bar. &lt;br /&gt;
&lt;br /&gt;
Switch to '''Icon View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me rearrange the existing ellipse to free up some space.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click on '''ellipse''' and select '''Properties'''.&lt;br /&gt;
|| Right click on the '''ellipse'''. &lt;br /&gt;
&lt;br /&gt;
Choose '''properties'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| ‘Extent2Y’ → 0&lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''.&lt;br /&gt;
|| Change '''Extent2Y''' field to '''0'''. &lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Ellipse''' button in the toolbar&lt;br /&gt;
|| Click on '''Ellipse''' button in the toolbar.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Hold and drag the cursor&lt;br /&gt;
|| Click somewhere in the white space. &lt;br /&gt;
&lt;br /&gt;
Hold the mouse and drag it. &lt;br /&gt;
&lt;br /&gt;
Leave the mouse after creation of ellipse.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Right-click on '''Ellipse'''&lt;br /&gt;
|| Right-click on the ellipse and change its properties as you wish. &lt;br /&gt;
&lt;br /&gt;
Click on '''Ok'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Hover over the following tools:&lt;br /&gt;
&lt;br /&gt;
* '''Line'''&lt;br /&gt;
* '''Polygon'''&lt;br /&gt;
* '''Rectangle'''&lt;br /&gt;
* '''Text'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| Similarly, you may insert a Line, Polygon, Rectangle and Text using the '''Tool Bar'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Diagram View'''&lt;br /&gt;
|| Now, let us try to understand '''Diagram View'''. &lt;br /&gt;
&lt;br /&gt;
Click on '''Diagram View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Note that a line has been inserted here. &lt;br /&gt;
&lt;br /&gt;
The properties of this line are specified in '''Diagram''' annotation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Click on '''Text View'''.&lt;br /&gt;
|| Switch to '''Text View''' to understand '''Diagram''' annotation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Diagram(...)&lt;br /&gt;
|| Diagram annotation is similar to Icon annotation. &lt;br /&gt;
&lt;br /&gt;
Diagram annotation has '''coordinateSystem''' and '''graphics''' records.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Diagram(...,, graphics = {Line(origin = {-10, 0}, points = {{-50, -50}, {50, 50}}, color = {0, 0, 255}, pattern = LinePattern.Dash, thickness = 3)})&lt;br /&gt;
|| The properties of '''Line''' are specified here. &lt;br /&gt;
&lt;br /&gt;
The fields of '''Line''' can be easily understood. &lt;br /&gt;
&lt;br /&gt;
Now, let us understand the difference between '''Icon and Diagram Views'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me shift '''OMEdit''' Window to the right. &lt;br /&gt;
&lt;br /&gt;
Save the model by pressing '''Ctrl + S'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| The figure shown in '''Icon View''' appears in the '''Libraries Browser'''. &lt;br /&gt;
&lt;br /&gt;
This is the difference between '''Icon View''' and '''Diagram View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| '''Diagram View''' is significantly used in '''component-oriented modeling'''. &lt;br /&gt;
&lt;br /&gt;
We’ll learn more about it in upcoming tutorials.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let me go back to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Ellipse&lt;br /&gt;
|| '''Ellipse''' has the following fields as we already discussed.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an assignment, insert a line, polygon, rectangle and text in '''Icon View'''. &lt;br /&gt;
&lt;br /&gt;
Modify their properties and understand their annotations.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''About the Spoken Tutorial project'''&lt;br /&gt;
|| Watch the video available at the following link. &lt;br /&gt;
&lt;br /&gt;
It summarises '''spoken tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial Workshops'''&lt;br /&gt;
|| We conduct workshops using spoken tutorials&lt;br /&gt;
&lt;br /&gt;
Gives certificates please contact us.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Forum to answer questions'''&lt;br /&gt;
|| If you have any questions in this spoken tutorial, please visit the following website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion Project'''&lt;br /&gt;
|| We coordinate coding of solved examples of popular books. &lt;br /&gt;
&lt;br /&gt;
Please visit the website shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Lab Migration Project'''&lt;br /&gt;
|| We help migrate commercial simulator labs to '''OpenModelica'''. &lt;br /&gt;
&lt;br /&gt;
Please contact us.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgements'''&lt;br /&gt;
|| Spoken Tutorial Project is funded by '''NMEICT, MHRD''', Government of India&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Thanks'''&lt;br /&gt;
|| We thank the development team of '''OpenModelica''' for their support. &lt;br /&gt;
&lt;br /&gt;
This is Bhargava signing off! Goodbye!&lt;/div&gt;</summary>
		<author><name>Kaushik Datta</name></author>	</entry>

	</feed>