#VRML V2.0 utf8

EXTERNPROTO ZGroup [
	eventIn MFNode addChildren
	eventIn MFNode removeChildren
	exposedField MFNode children
	field SFVec3f bboxSize
	field SFVec3f bboxCenter
	exposedField SFBool write
	exposedField SFBool check
	exposedField SFBool writePixelBuffer
]
[	"urn:inet:parallelgraphics.com:cortona:ZGroup"
	"urn:ParaGraph:ZGroup" "http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl#ZGroup" ]



Viewpoint {
	position 0 0 17
}

DEF	TR Transform {
	children [

		Transform {
			translation 0 0 5
			children [
				Shape {
					appearance Appearance {material	Material {diffuseColor 0.2 0.8 0.2}}
					geometry Box {size 4.8 4.8 0.1 }
				}
				Transform {
					translation	0 1.8 0.1
					children
					 
					Shape { 
						appearance Appearance {material Material	{diffuseColor 1 0 1}}
						geometry
						Text {
							string "1"
                        	fontStyle FontStyle	{
								family [ "Verdana", "Arial", "Helvetica" ]
								size 0.7}

						}}
				}			  

			]
		}


		Transform {
			translation	-3 3 0
    		children [ ZGroup { children [
					Shape {
						appearance Appearance {material	Material {diffuseColor 0.8 0.2 0.2}}
						geometry Box {size 4 4 2}
					} 
				]
					check TRUE
					write TRUE
				}
		    	Transform {
					translation	0 1.2 1.1
					children
					Shape { 
						appearance Appearance {material Material	{diffuseColor 1 1 0}}
						geometry
						Text {
							string "2"
                        	fontStyle FontStyle	{
								family [ "Verdana", "Arial", "Helvetica" ]
								}

						}}
				}			  
			]}
		Transform {
			translation	3 3 0
    		children [ ZGroup { 
				children
					Shape {
						appearance Appearance {material	Material {diffuseColor 0.8 0.2 0.2}}
						geometry Box {size 4 4 2}
					} 

					check FALSE
					write TRUE
				}
				Transform {
					translation	0 1.2 1.1
					children
					Shape { 
						appearance Appearance {material Material	{diffuseColor 1 1 0}}
						geometry
						Text {
							string "3"
							    fontStyle FontStyle	{
								family [ "Verdana", "Arial", "Helvetica" ]
								}

						}}
				}			  
		
			]}

		Transform {
			translation	-3 -3 0
    		children [ ZGroup { 
					children
					Shape {
						appearance Appearance {material	Material {diffuseColor 0.8 0.2 0.2}}
						geometry Box {size 4 4 2}
					} 
					check TRUE
					write FALSE
				}
				Transform {
					translation	0 -1.8 1.1
					children
					Shape { 
						appearance Appearance {material Material	{diffuseColor 1 1 0}}
						geometry
						Text {
							string "4"
							fontStyle FontStyle	{
								family [ "Verdana", "Arial", "Helvetica" ]
								}
						}}
				}			  
	
			]}

		Transform {
			translation	3 -3 0
    		children [ZGroup { 
					children
					Shape {
						appearance Appearance {material	Material {diffuseColor 0.8 0.2 0.2}}
						geometry Box {size 4 4 2}
					} 
					check FALSE
					write FALSE
				}
				Transform {
					translation	0 -1.8 1.1
					children
					Shape { 
						appearance Appearance {material Material	{diffuseColor 1 1 0}}
						geometry
						Text {
							string "5"
							fontStyle FontStyle	{
								family [ "Verdana", "Arial", "Helvetica" ]
								}
						}}
				}			  

		
			]}




		Transform {
			translation 0 0 -45
			children [
				Shape {
					appearance Appearance {material	Material {diffuseColor 0.2 0.2 0.8}}
					geometry Box {size 32 32 0.1 }
				}
				Transform {
					translation	0 13 0.1
					children
					Shape { 
						appearance Appearance {material Material	{diffuseColor 1 1 0}}
						geometry
						Text {
							string "6"
							fontStyle FontStyle	{
								family [ "Verdana", "Arial", "Helvetica" ]
								size 3.5
								}
						}}
				}			  

			]
		}

		Transform {
			translation 0 0 6
			children [
				Shape {
					appearance Appearance {material	Material {diffuseColor 0.2 0.2 0.8}}
					geometry Box {size 3 3 0.1 }
				}
				Transform {
					translation	0 1 0.1
					children
					Shape { 
						appearance Appearance {material Material	{diffuseColor 1 1 0}}
						geometry
						Text {
							string "7"
                    		fontStyle FontStyle	{
								family [ "Verdana", "Arial", "Helvetica" ]
								size 0.65}

						}}
				}			  

			]
		}



		Transform {
			translation -4 5.5 0
			children [Shape { 
					appearance Appearance {material Material	{diffuseColor 1 1 1}}
					geometry
					Text {
						string "TRUE"
					}}
			]
		}

		Transform {
			translation 2 5.5 0
			children [Shape { 
					appearance Appearance {material Material	{diffuseColor 1 1 1}}
					geometry
					Text {
						string "FALSE"
					}			}
			]
		}
		Transform {
			translation -9 3 0
			children [ Shape { 
					appearance Appearance {material Material	{diffuseColor 1 1 1}}
					geometry
					Text {
						string "TRUE"
					}			}
			]
		}
		Transform {
			translation -9 -3 0
			children [
				Shape { 
					appearance Appearance {material Material	{diffuseColor 1 1 1}}
					geometry
					Text {
						string "FALSE"
					}			}
			]
		}

		Transform {
			translation -9 -1 0
			rotation	0 0 1 1.57
			children [
				Shape { 
					appearance Appearance {material Material	{diffuseColor 1 1 1}}
					geometry
					Text {
						string "write"
                        fontStyle FontStyle	{
								size 1.2}

					}}
	
			]
		}

		Transform {
			translation -1 6 0
			children [
				Shape { 
					appearance Appearance {material Material	{diffuseColor 1 1 1}}
					geometry
					Text {
						string "check"
                        fontStyle FontStyle	{
								size 1.2}
					}}

	
			]

		}
		Transform {
			translation -6 -6.5 0
			children [
				Shape { 
					appearance Appearance {material Material	{diffuseColor 1 1 1}}
					geometry
					Text {
						string "N - position in the scene graph"
					}}
    		]}
	]
}


DEF	TS TimeSensor {cycleInterval 20
	enabled	TRUE
	loop TRUE

}

DEF	OI OrientationInterpolator{
	key	[0 0.15 0.35 0.5 0.65 0.85 1]
	keyValue [0 1 0 -1.3, 0 1 0 0, 0 1 0 0, 0 1 0 1.3,
		0 1 0 0, 0 1 0 0, 0 1 0 -1.3] 
}

ROUTE TS.fraction_changed TO OI.set_fraction
ROUTE OI.value_changed TO TR.rotation
