| Line |   | 
|---|
| 1 | <!--
 | 
|---|
| 2 |    The orientation field of an SoCamera defines
 | 
|---|
| 3 |   a rotation from the default position, that is to say
 | 
|---|
| 4 |   a camera looking toward -z axis with up along y axis.
 | 
|---|
| 5 | -->
 | 
|---|
| 6 | 
 | 
|---|
| 7 | 
 | 
|---|
| 8 | <widget class="CascadeButton">
 | 
|---|
| 9 |   <label>Camera</label>
 | 
|---|
| 10 |   <widget class="Menu">
 | 
|---|
| 11 |     <widget class="MenuItem">
 | 
|---|
| 12 |       <label>Front (+z)</label>
 | 
|---|
| 13 |       <activate exec="DLD">OnX region_setNode type SoCamera height 5000 position 0 0 5000 orientation 0 1 0 0</activate>
 | 
|---|
| 14 |     </widget>
 | 
|---|
| 15 |     <widget class="MenuItem">
 | 
|---|
| 16 |       <label>Back (-z)</label>
 | 
|---|
| 17 |       <activate exec="DLD">OnX region_setNode type SoCamera height 5000 position 0 0 -5000 orientation 0 1 0 3.14</activate>
 | 
|---|
| 18 |     </widget>
 | 
|---|
| 19 |     <widget class="MenuItem">
 | 
|---|
| 20 |       <label>Side +z at left</label>
 | 
|---|
| 21 |       <activate exec="DLD">OnX region_setNode type SoCamera height 5000 position 5000 0 0 orientation 0 1 0 1.57</activate>
 | 
|---|
| 22 |     </widget>
 | 
|---|
| 23 |     <widget class="MenuItem">
 | 
|---|
| 24 |       <label>Side +z at right</label>
 | 
|---|
| 25 |       <activate exec="DLD">OnX region_setNode type SoCamera height 5000  position -5000 0 0 orientation 0 1 0 -1.57</activate>
 | 
|---|
| 26 |     </widget>
 | 
|---|
| 27 |     <widget class="MenuItem">
 | 
|---|
| 28 |       <label>Top</label>
 | 
|---|
| 29 |       <activate exec="DLD">OnX region_setNode type SoCamera height 5000 position 0 5000 0 orientation 1 0 0 -1.57</activate>
 | 
|---|
| 30 |     </widget>
 | 
|---|
| 31 |     <reference file="$ONXROOT/scripts/OnX/Camera.onx"/>
 | 
|---|
| 32 |   </widget>
 | 
|---|
| 33 | </widget>
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.