InitialObjectDescriptor {
 objectDescriptorID 1
 audioProfileLevelIndication 255
 visualProfileLevelIndication 254
 sceneProfileLevelIndication 1
 graphicsProfileLevelIndication 1
 ODProfileLevelIndication 1
 esDescr [
  ES_Descriptor {
   ES_ID 1
   decConfigDescr DecoderConfigDescriptor {
    streamType 3
    decSpecificInfo BIFSConfig {
     isCommandStream true
     pixelMetric true
     pixelWidth 600
     pixelHeight 650
    }
   }
  }
 ]
}

OrderedGroup {
 children [
  Background2D {
   backColor 1 1 1
  }
  WorldInfo {
   info ["This shows Layout node" "performing different horizontal justification" "going right to left with line wrap" "in direction bottom to top and 1.1 line spacing" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:07 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
   title "Layout Test"
  }
  Transform2D {
   translation -200 260
   children [
    DEF BOUNDS Shape {
     appearance Appearance {
      material Material2D {
       emissiveColor 0 0 0
      }
     }
     geometry Rectangle {
      size 140 120
     }
    }
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance DEF APPTEXT Appearance {
        material Material2D {
         emissiveColor 0 0 0
         filled TRUE
        }
       }
       geometry Text {
        string ["Alignment" "BEGIN BEGIN"]
        fontStyle DEF FS FontStyle {
         justify ["MIDDLE"]
         size 16
        }
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["BEGIN" "BEGIN"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      DEF S1 Shape {
       appearance Appearance {
        material Material2D {
         emissiveColor 1 0 0
         filled TRUE
        }
       }
       geometry Rectangle {
        size 50 50
       }
      }
      DEF S2 Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Sample Text"]
        fontStyle USE FS
       }
      }
      DEF S3 Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Text#2"]
        fontStyle USE FS
       }
      }
      DEF S4 Shape {
       appearance Appearance {
        material Material2D {
         emissiveColor 0 1 0
         filled TRUE
        }
       }
       geometry Circle {
        radius 25
       }
      }
     ]
    }
   ]
  }
  Transform2D {
   translation -200 100
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "BEGIN FIRST"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["BEGIN" "FIRST"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation -200 -60
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "BEGIN MIDDLE"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["BEGIN" "MIDDLE"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation -200 -220
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "BEGIN END"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["BEGIN" "END"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation 0 260
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "MIDDLE BEGIN"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["MIDDLE" "BEGIN"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation 0 100
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "MIDDLE FIRST"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["MIDDLE" "FIRST"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation 0 -60
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "MIDDLE MIDDLE"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["MIDDLE" "MIDDLE"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation 0 -220
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "MIDDLE END"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["MIDDLE" "END"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation 200 260
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "END BEGIN"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["END" "BEGIN"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation 200 100
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "END FIRST"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["END" "FIRST"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation 200 -60
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "END MIDDLE"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["END" "MIDDLE"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
  Transform2D {
   translation 200 -220
   children [
    USE BOUNDS
    Transform2D {
     translation 0 -80
     children [
      Shape {
       appearance USE APPTEXT
       geometry Text {
        string ["Alignment" "END END"]
        fontStyle USE FS
       }
      }
     ]
    }
    Layout {
     wrap TRUE
     size 140 120
     justify ["END" "END"]
     leftToRight FALSE
     topToBottom FALSE
     spacing 1.1
     children [
      USE S1
      USE S2
      USE S3
      USE S4
     ]
    }
   ]
  }
 ]
}


