| 1 | package TestRedeclareIcon
|
|---|
| 2 |
|
|---|
| 3 | model M0
|
|---|
| 4 | equation
|
|---|
| 5 |
|
|---|
| 6 | end M0;
|
|---|
| 7 | model M1
|
|---|
| 8 | equation
|
|---|
| 9 |
|
|---|
| 10 | annotation(
|
|---|
| 11 | Icon(graphics = {Text(origin = {-2, -3}, extent = {{-98, 103}, {102, -97}}, textString = "M1")}));
|
|---|
| 12 | end M1;
|
|---|
| 13 |
|
|---|
| 14 | model M2
|
|---|
| 15 | extends M0;
|
|---|
| 16 | equation
|
|---|
| 17 |
|
|---|
| 18 | annotation(
|
|---|
| 19 | Icon(graphics = {Text(origin = {4, -4}, extent = {{-104, 104}, {96, -96}}, textString = "M2")}));end M2;
|
|---|
| 20 |
|
|---|
| 21 | model Test1
|
|---|
| 22 | M1 m annotation(
|
|---|
| 23 | Placement(visible = true, transformation(origin = {2, -2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|---|
| 24 | equation
|
|---|
| 25 |
|
|---|
| 26 | end Test1;
|
|---|
| 27 |
|
|---|
| 28 | model Test2
|
|---|
| 29 | extends Test1(redeclare M2 m);
|
|---|
| 30 | end Test2;
|
|---|
| 31 | end TestRedeclareIcon;
|
|---|