| 1 |
#Inventor V2.1 ascii |
| 2 |
|
| 3 |
# Check rendering with SoSwitch. |
| 4 |
# |
| 5 |
# 19990423 mortene |
| 6 |
|
| 7 |
Separator { |
| 8 |
# (ROW 0) check out with different whichChild settings. |
| 9 |
Separator { |
| 10 |
BaseColor { rgb 1 0 1 } |
| 11 |
Switch { |
| 12 |
Cube { } |
| 13 |
Sphere { } |
| 14 |
} |
| 15 |
|
| 16 |
BaseColor { rgb 1 0 0 } |
| 17 |
Translation { translation +8 0 0 } |
| 18 |
Switch { |
| 19 |
whichChild 0 |
| 20 |
Cube { } |
| 21 |
Sphere { } |
| 22 |
} |
| 23 |
|
| 24 |
BaseColor { rgb 0 1 0 } |
| 25 |
Translation { translation +8 0 0 } |
| 26 |
Switch { |
| 27 |
whichChild 1 |
| 28 |
Cube { } |
| 29 |
Sphere { } |
| 30 |
} |
| 31 |
|
| 32 |
BaseColor { rgb 1 0 1 } |
| 33 |
Translation { translation +8 0 0 } |
| 34 |
Switch { |
| 35 |
whichChild -1 # SO_SWITCH_NONE |
| 36 |
Cube { } |
| 37 |
Sphere { } |
| 38 |
} |
| 39 |
|
| 40 |
BaseColor { rgb 0 0 1 } |
| 41 |
Translation { translation +8 0 0 } |
| 42 |
Switch { |
| 43 |
whichChild -3 # SO_SWITCH_ALL |
| 44 |
Cube { } |
| 45 |
Translation { translation +4 0 0 } |
| 46 |
Sphere { } |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
# (ROW 1) check whichChild == SO_SWITCH_INHERIT |
| 51 |
Translation { translation 0 +8 0 } |
| 52 |
Separator { |
| 53 |
BaseColor { rgb 1 0 1 } |
| 54 |
Switch { |
| 55 |
whichChild 1 |
| 56 |
Cube { } |
| 57 |
Switch { |
| 58 |
whichChild -2 # SO_SWITCH_INHERIT |
| 59 |
Cube { } |
| 60 |
Sphere { } |
| 61 |
} |
| 62 |
Sphere { } |
| 63 |
} |
| 64 |
} |
| 65 |
|
| 66 |
# (ROW 2) check state when whichChild == SO_SWITCH_ALL |
| 67 |
Translation { translation 0 +8 0 } |
| 68 |
Separator { |
| 69 |
Switch { |
| 70 |
whichChild -3 # SO_SWITCH_ALL |
| 71 |
BaseColor { rgb 1 0 0 } |
| 72 |
Cube { } |
| 73 |
} |
| 74 |
} |
| 75 |
} |