//----------------------------------------------------------------------------------
//! STUAutoRegistration module definitions.
/*!
// \file    STUAutoRegistration.def
// \author  Bijumon Gangadharan
// \date    2009-12-10
*/
//----------------------------------------------------------------------------------


//----------------------------------------------------------------------------------
// MLModule AutoRegistration
//----------------------------------------------------------------------------------
MLModule AutoRegistration {
  DLL            = "STUAutoRegistration"

  genre          = ""
  author         = "Bijumon Gangadharan"
  status         = "work-in-progress"
  comment        = "automatic volume registration"
  keywords       = "registration auto"
  seeAlso        = ""
  documentation  = "$(LOCAL)/html/AutoRegistration.html"
  exampleNetwork = "$(LOCAL)/networks/AutoRegistrationExample.mlab"
  Window  {
  Category Main{
    Box{
      layout = Vertical
      expandX = YES
      expandY = NO
      TabView AutoRegistration{
        expandX = YES
        expandY = NO
        Category Input{
          expandX = YES
          Box{
            layout = Vertical
            Field Exploration{
              alignX = LEFT
              expandX = NO
              title = Exploration
            }

            Field Accuracy{
              alignX = LEFT
              expandX = NO
              title = Accuracy
            }

            Field Sampling{
              alignX = LEFT
              expandX = NO
              title = Sampling
            }

            Field MetricType{
              alignX = LEFT
              expandX = YES
              title = "Metric Type"
            }

            Field OptimizerType{
              alignX = LEFT
              expandX = YES
              title = "Optimizer Type"
            }

            Field BackTrackerType{
              alignX = LEFT
              expandX = YES
              title = "BackTracker Type"
            }

            Field PowellStepFactor{
              alignX = LEFT
              expandX = YES
              title = "Powell Step Factor"
            }
          }
        }

        
        Category Result{

          expandX = YES

          Box Parameters {

            Field "translation"{
              expandX = YES
              title = "Translation"
            }

            Field "scale"{
              expandX = YES
              title = "Scaling"
            }

            Field "center" {
              expandX = YES
              title = "Center"
            }

            Field "rotationXvec4"{
              expandX = YES
              title = "RotationX"
            }

            Field "rotationYvec4"{
              expandX = YES
              title = "RotationY"
            }

            Field "rotationZvec4"{
              expandX = YES
              title = "RotationZ"
            }

          }

          Box Matrix{
            layout = Vertical

          //  TextView Matrix { 
            //        title = "Matrix:" 
              //      h = 100 
                //  }
            Field Matrix{
                title = Matrix:"
            }
          }
        }
      }

      Box "Start/Stop"{
        layout = Vertical
        Box  {
          layout = Horizontal

          Button start {
            title = "Start"
            expandX = NO
          }

          Button finish {
            title = "Finish"
            expandX = NO
          }

          ProgressBar progress{
          }

          Button stop {
            title = "Stop"
            expandX = NO
          }

          Button continue {
            title = "Continue"
            expandX = NO
          }
        }
        
      }
    }
  }
  }
} // MLModule AutoRegistration

