Example #1
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="id"></param>
        /// <param name="cameraPos"></param>
        /// <param name="tableSize"></param>
        public LaserInfo(int id, Vector3d cameraPos, SizeF tableSize)
        {
            Id = id;
            Vector3d loc      = new Vector3d();
            Settings settings = Settings.Get <Settings>();

            loc.X        = settings.Read(Settings.LASER(Id), Settings.X, 9.5f);
            loc.Y        = settings.Read(Settings.LASER(Id), Settings.Y, 27.0f);
            loc.Z        = settings.Read(Settings.LASER(Id), Settings.Z, 7.0f);
            DefaultColor = settings.Read(Settings.LASER(Id), Settings.DEFAULTCOLOR, LaserInfo.GetDefaultColor(Id));


            Location = loc;

            Mapper = new LocationMapper(Location, cameraPos, tableSize);

            Correction = new LaserCorrection();
            Correction.LoadFromSettings(Id);
        }
Example #2
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="id"></param>
        /// <param name="cameraPos"></param>
        /// <param name="tableSize"></param>
        public LaserInfo(int id, Vector3d cameraPos, SizeF tableSize)
        {
            Id = id;
            Vector3d loc = new Vector3d();
            Settings settings = Settings.Get<Settings>();
            loc.X = settings.Read(Settings.LASER(Id), Settings.X, 9.5f);
            loc.Y = settings.Read(Settings.LASER(Id), Settings.Y, 27.0f);
            loc.Z = settings.Read(Settings.LASER(Id), Settings.Z, 7.0f);
            DefaultColor = settings.Read(Settings.LASER(Id), Settings.DEFAULTCOLOR, LaserInfo.GetDefaultColor(Id));


            Location = loc;

            Mapper = new LocationMapper(Location, cameraPos, tableSize);

            Correction = new LaserCorrection();
            Correction.LoadFromSettings(Id);

        }