public RenderingEffect(string name, Device device, HashTableSettings settings,
                        ushort minLod, ushort maxLod, ushort lod)
 {
     this.name     = name;
     this.device   = device;
     this.settings = settings;
     this.lodR     = new LevelOfDetailRange(minLod, maxLod);
     this.oReqs    = new OutputRequirements[lodR.Max - lodR.Min + 1];
     this.lod      = lod;
 }
 public MoleculeSchemeSettings(Type renderingEffectType, LevelOfDetailRange bondLodRange,
                               LevelOfDetailRange atomLodRange)
 {
     this.renderingEffectType = renderingEffectType;
     this.bondLodRange = bondLodRange;
     this.atomLodRange = atomLodRange;
     if (atomLodRange != null)
         this.atomLOD = atomLodRange.Min;
     if (bondLodRange != null)
         this.bondLOD = bondLodRange.Min;
 }
        public void SetupValues(LevelOfDetailRange range, ushort value)
        {
            if (range == null)
            {
                this.Enabled = false;
                this.trackBar2.Minimum = value;
                this.trackBar2.Maximum = value;
                this.trackBar2.Value = value;
                return;
            }

            this.Enabled = true;
            this.trackBar2.Minimum = range.Min;
            this.trackBar2.Maximum = range.Max;
            this.trackBar2.Value = value;
        }
 public RenderingEffect(string name, Device device, HashTableSettings settings,
                        ushort minLod, ushort maxLod, ushort lod)
 {
     this.name = name;
     this.device = device;
     this.settings = settings;
     this.lodR = new LevelOfDetailRange(minLod, maxLod);
     this.oReqs = new OutputRequirements[lodR.Max - lodR.Min + 1];
     this.lod = lod;
 }