3.4.6. Configuration File Description

The constructor of the multipipe viewer will check if a ScaleViz multipipe configuration file is present. If the viewer cannot find the configuration file, it will behave like a regular viewer. The default name of a multipipe configuration file is “oivmp.cfg”. The viewer looks in the application’s current working directory for the file (i.e., the directory where the application is executed).

It is possible to customize the location and the name of the configuration file. The static method SoXt::setConfigFilename() allows you to specify a new file name and location. This method must be called before the viewer constructor; otherwise it will have no effect. Environment variable OIV_MP_CONFIG can also be used to specify the pathname of the configuration file.

Example: A CAVE configuration

Example 3.8. A CAVE configuration

#Inventor V2.1 ascii

Separator
  {
  Screen
    {
      display :0.0
      name "front"
      lowerLeft 0.0 0.0 0.0
      lowerRight 10.0 0.0 0.0
      upperLeft 0.0 10.0 0.0
    }
  Screen
    {
      display :0.1
      name "LEFT"
      lowerLeft 0.0 0.0 10.0
      lowerRight 0.0 0.0 0.0
      upperLeft 0.0 10.0 10.0

    }
  Screen
    {
      display :0.2
      name "RIGHT"
      lowerLeft 10.0 0.0 0.0
      lowerRight 10.0 0.0 10.0
      upperLeft 10.0 10.0 0.0
    }
  Screen
    {
      display :0.3
      name "BOTTOM"
      lowerLeft 0.0 0.0 10.0
      lowerRight 10.0 0.0 10.0
      upperLeft 0.0 0.0 0.0
    }

  Tracker
    {
      Server "4126:4127"
      defaultCameraPosition 5.0 5.0 5.0
      defaultObjectPosition 5.0 5.0 0.0
      defaultObjectBoxMaxDim 10.0
    }
  }