Indice Generale Struttura Gerarchica


"Viaggio nel Sistema Solare"

GIO_SAT.WRL
Il file GIO_SAT.WRL definisce la struttura gerarchica dei satelliti, anche se le strutture vere e proprie sono memorizzate all'interno dei files IO.WRL, EUROPA.WRL, GANIMEDE.WRL, CALLISTO.WRL ai quali si rimanda. Tali strutture vengono importate al livello attuale tramite i nodi Inline. I moti di rivoluzione attorno a Giove vengono simulati per mezzo dei nodi OrientationInterpolator ai quali vengono forniti tramite le dichiarazioni di ROUTE degli eventi generati dai nodi TimeSensor preventivamente programmati, come ad esempio i set_rotation.

#VRML V2.0 utf8

#File GIO_SAT.WRL

DEF Io Transform { 
  children [
    Inline {
      url "io.wrl"
    }
  ]
} 

DEF Europa Transform { 
  children [
    Inline {
      url "europa.wrl"
    }
  ]
} 

DEF Ganimede Transform { 
  children [
    Inline {
      url "ganimede.wrl"
    }
  ]
} 

DEF Callisto Transform { 
  children [
    Inline {
      url "callisto.wrl"
    }
  ]
} 

DEF IoTime TimeSensor {
  cycleInterval 5
  loop TRUE
  stopTime -1
}

DEF EuropaTime TimeSensor {
  cycleInterval 10
  loop TRUE
  stopTime -1
}

DEF GanimedeTime TimeSensor {
  cycleInterval 15
  loop TRUE
  stopTime -1
}

DEF CallistoTime TimeSensor {
  cycleInterval 20
  loop TRUE
  stopTime -1
}

DEF IoRotation OrientationInterpolator {
  key [0, 0.25, 0.5, 0.75, 1]
  keyValue [
    0.05 -0.99 0.0 0.0,
    0.05 -0.99 0.0 1.57,
    0.05 -0.99 0.0 3.14,
    0.05 -0.99 0.0 4.71,
    0.05 -0.99 0.0 6.28
  ]
}

DEF EuropaRotation OrientationInterpolator {
  key [0, 0.25, 0.5, 0.75, 1]
  keyValue [
    0.05 -0.99 0.0 0.0,
    0.05 -0.99 0.0 1.57,
    0.05 -0.99 0.0 3.14,
    0.05 -0.99 0.0 4.71,
    0.05 -0.99 0.0 6.28
  ]
}

DEF GanimedeRotation OrientationInterpolator {
  key [0, 0.25, 0.5, 0.75, 1]
  keyValue [
    0.05 -0.99 0.0 0.0,
    0.05 -0.99 0.0 1.57,
    0.05 -0.99 0.0 3.14,
    0.05 -0.99 0.0 4.71,
    0.05 -0.99 0.0 6.28
  ]
}

DEF CallistoRotation OrientationInterpolator {
  key [0, 0.25, 0.5, 0.75, 1]
  keyValue [
    0.05 -0.99 0.0 0.0,
    0.05 -0.99 0.0 1.57,
    0.05 -0.99 0.0 3.14,
    0.05 -0.99 0.0 4.71,
    0.05 -0.99 0.0 6.28
  ]
}

ROUTE IoTime.fraction_changed        TO IoRotation.set_fraction
ROUTE IoRotation.value_changed       TO Io.set_rotation
ROUTE EuropaTime.fraction_changed    TO EuropaRotation.set_fraction
ROUTE EuropaRotation.value_changed   TO Europa.set_rotation
ROUTE GanimedeTime.fraction_changed  TO GanimedeRotation.set_fraction
ROUTE GanimedeRotation.value_changed TO Ganimede.set_rotation
ROUTE CallistoTime.fraction_changed  TO CallistoRotation.set_fraction
ROUTE CallistoRotation.value_changed TO Callisto.set_rotation