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 450
     pixelHeight 450
    }
   }
  }
 ]
}

OrderedGroup {
 children [
  Background2D {
   backColor 1 1 1
  }
  WorldInfo {
   info ["This shows Text with and without length fields" "All texts use the same font and size" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:10 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
   title "Text length Test"
  }
  Transform2D {
   translation -75 0
   children [
    Shape {
     geometry IndexedLineSet2D {
      coord Coordinate2D {
       point [0 200 0 -120]
      }
     }
    }
   ]
  }
  Transform2D {
   translation 75 0
   children [
    Shape {
     geometry IndexedLineSet2D {
      coord Coordinate2D {
       point [0 200 0 -120]
      }
     }
    }
   ]
  }
  Transform2D {
   translation 0 150
   children [
    Shape {
     geometry IndexedLineSet2D {
      coord Coordinate2D {
       point [200 0 -200 0]
      }
     }
    }
   ]
  }
  Transform2D {
   translation -150 180
   children [
    Shape {
     appearance DEF TEXTAPP Appearance {
      material Material2D {
       emissiveColor 0 0 0
       filled TRUE
      }
     }
     geometry Text {
      string ["No length"]
      fontStyle DEF FS FontStyle {
       justify ["MIDDLE"]
       size 24
      }
     }
    }
   ]
  }
  Transform2D {
   translation 0 180
   children [
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Length on " "longest line"]
      fontStyle USE FS
     }
    }
   ]
  }
  Transform2D {
   translation 150 180
   children [
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Length on" "all lines"]
      fontStyle USE FS
     }
    }
   ]
  }
  Transform2D {
   translation -150 100
   children [
    DEF SQUARE Shape {
     appearance DEF APP Appearance {
      material Material2D {
       emissiveColor 1 1 0
       filled TRUE
      }
     }
     geometry Rectangle {
      size 100 80
     }
    }
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Text" "to test length"]
      fontStyle USE FS
     }
    }
   ]
  }
  Transform2D {
   translation 0 100
   children [
    USE SQUARE
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Text" "to test length"]
      length [-1 100]
      fontStyle USE FS
     }
    }
   ]
  }
  Transform2D {
   translation 150 100
   children [
    USE SQUARE
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Text" "to test length"]
      length [100 100]
      fontStyle USE FS
     }
    }
   ]
  }
  Transform2D {
   translation -150 -50
   children [
    DEF VSQUARE Shape {
     appearance USE APP
     geometry Rectangle {
      size 80 100
     }
    }
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Length" "Test"]
      fontStyle DEF FS2 FontStyle {
       horizontal FALSE
       justify ["MIDDLE" "MIDDLE"]
       size 24
      }
     }
    }
   ]
  }
  Transform2D {
   translation 0 -50
   children [
    USE VSQUARE
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Length" "Test"]
      length [100 -1]
      fontStyle USE FS2
     }
    }
   ]
  }
  Transform2D {
   translation 150 -50
   children [
    USE VSQUARE
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Length" "Test"]
      length [100 100]
      fontStyle USE FS2
     }
    }
   ]
  }
  Transform2D {
   scale 0.8 0.8
   translation 0 -160
   children [
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Horizontal Rectangles are 100x80 pixels" "Vertical Rectangles are 80x100 pixels" "Length is set to longest dimension of the rectangle"]
      fontStyle USE FS
     }
    }
   ]
  }
 ]
}


