public override void OnLoad(string name, LookingGlassBase lgbase)
 {
     base.OnLoad(name, lgbase);
     m_apiName = "LLLP";
     ModuleParams.AddDefaultParameter(ModuleName + ".Comm.Name", "Comm", "Name of comm module to connect to");
     ModuleParams.AddDefaultParameter(ModuleName + ".APIName", m_apiName, "Name of api for this comm control");
 }
Exemple #2
0
 public override void OnLoad(string modName, LookingGlassBase lgbase)
 {
     base.OnLoad(modName, lgbase);
     ModuleParams.AddDefaultParameter(m_moduleName + ".Port", "9144",
                                      "Local port used for rest interfaces");
     ModuleParams.AddDefaultParameter(m_moduleName + ".BaseURL", "http://127.0.0.1",
                                      "Base URL for rest interfaces");
     ModuleParams.AddDefaultParameter(m_moduleName + ".CSSLocalURL", "/std/LookingGlass.css",
                                      "CSS file for rest display");
     ModuleParams.AddDefaultParameter(m_moduleName + ".UIContentDir",
                                      Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "./LookingGlassUI"),
                                      "Directory for static HTML content");
     ModuleParams.AddDefaultParameter(m_moduleName + ".Skin", "Default",
                                      "If specified, the subdirectory under StaticContentDir to take files from");
 }
Exemple #3
0
        public override void OnLoad(string name, LookingGlassBase lgbase)
        {
            base.OnLoad(name, lgbase);
            ModuleParams.AddDefaultParameter(m_moduleName + ".Renderer.Name", "Renderer", "");
            // todo: make this variable so there can be multiple viewers

            ModuleParams.AddDefaultParameter(m_moduleName + ".Camera.Speed", "5", "Units per second to move camera");
            ModuleParams.AddDefaultParameter(m_moduleName + ".Camera.RotationSpeed", "0.100", "Degrees to rotate camera");
            ModuleParams.AddDefaultParameter(m_moduleName + ".Camera.ServerFar", "300.0", "Far distance sent to server");

            ModuleParams.AddDefaultParameter(m_moduleName + ".Camera.BehindAgent", "4.0", "Distance camera is behind agent");
            ModuleParams.AddDefaultParameter(m_moduleName + ".Camera.AboveAgent", "2.0", "Distance camera is above agent (combined with behind)");

            // m_EntitySlot = EntityBase.AddAdditionSubsystem("VIEWER");        // used by anyone?
        }