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 400
     pixelHeight 300
    }
   }
  }
 ]
}

OrderedGroup {
 children [
  Background2D {
   backColor 1 1 1
  }
  WorldInfo {
   info ["This shows Form node" "with horizontal and vertical center alignment" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:07 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
   title "Form Test"
  }
  Transform2D {
   translation -100 0
   children [
    Shape {
     appearance Appearance {
      material Material2D {
       emissiveColor 0 0 0
      }
     }
     geometry Rectangle {
      size 100 200
     }
    }
    Transform2D {
     translation 0 -120
     children [
      Shape {
       appearance DEF APP Appearance {
        material Material2D {
         emissiveColor 0 0 0
         filled TRUE
        }
       }
       geometry Text {
        string ["Constraints: AT AB AH "]
        fontStyle DEF FS FontStyle {
         justify ["MIDDLE"]
         size 16
        }
       }
      }
     ]
    }
    Form {
     size 100 200
     groups [1 -1 2 -1]
     constraints ["AT" "AB" "AH"]
     groupsIndex [0 1 -1 0 2 -1 1 2 -1]
     children [
      DEF S1 Shape {
       appearance Appearance {
        material Material2D {
         emissiveColor 1 0 0
         filled TRUE
        }
       }
       geometry Rectangle {
        size 50 30
       }
      }
      DEF S2 Transform2D {
       children [
        Transform2D {
         children [
          Shape {
           appearance Appearance {
            material Material2D {
             emissiveColor 0 1 0
             filled TRUE
            }
           }
           geometry Rectangle {
            size 60 20
           }
          }
         ]
        }
        Transform2D {
         translation -20 -20
         children [
          Shape {
           appearance Appearance {
            material Material2D {
             emissiveColor 0 0 1
             filled TRUE
            }
           }
           geometry Circle {
            radius 20
           }
          }
         ]
        }
       ]
      }
     ]
    }
   ]
  }
  Transform2D {
   translation 75 0
   children [
    Shape {
     appearance Appearance {
      material Material2D {
       emissiveColor 0 0 0
      }
     }
     geometry Rectangle {
      size 200 100
     }
    }
    Transform2D {
     translation 0 -70
     children [
      Shape {
       appearance USE APP
       geometry Text {
        string ["Constraints: AL AR AV"]
        fontStyle USE FS
       }
      }
     ]
    }
    Form {
     size 200 100
     groups [1 -1 2 -1]
     constraints ["AL" "AR" "AV"]
     groupsIndex [0 1 -1 0 2 -1 1 2 -1]
     children [
      USE S1
      USE S2
     ]
    }
   ]
  }
 ]
}


