Beispiel #1
0
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragBegin(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotGravity)
     {
         _hotSpotGravity.StartDistance = this.Gravity;
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 public override void OnHotSpotEvaluatePosition(CSharpFramework.View.HotSpotBase hotSpot)
 {
     if (hotSpot == _hotSpotConeAngleX)
     {
         if (!_hotSpotConeAngleX.IsDragging)
         {
             _hotSpotConeAngleX.StartAngle = CameraAngleX;
         }
     }
     if (hotSpot == _hotSpotConeAngleY)
     {
         if (!_hotSpotConeAngleY.IsDragging)
         {
             _hotSpotConeAngleY.StartAngle = CameraAngleY;
         }
     }
     if (hotSpot == _hotSpotNearClip)
     {
         _hotSpotNearClip.Axis = this.XAxis;
         if (!_hotSpotNearClip.IsDragging)
         {
             _hotSpotNearClip.StartDistance = NearClipDistance;
         }
     }
     if (hotSpot == _hotSpotFarClip)
     {
         _hotSpotFarClip.Axis = this.XAxis;
         if (!_hotSpotFarClip.IsDragging)
         {
             _hotSpotFarClip.StartDistance = FarClipDistance;
         }
     }
 }
Beispiel #3
0
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 /// <param name="fDeltaX"></param>
 /// <param name="fDeltaY"></param>
 public override void OnHotSpotDrag(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view, float fDeltaX, float fDeltaY)
 {
     if (hotSpot == _hotSpotGravity)
     {
         Gravity = _hotSpotGravity.CurrentDistance;
     }
 }
Beispiel #4
0
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragBegin(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotVolume)
     {
         _hotSpotVolume.StartDistance = this.Volume;
     }
     if (hotSpot == _hotSpotFadeMin)
     {
         _hotSpotFadeMin.StartDistance = this.MinDistance;
     }
     if (hotSpot == _hotSpotFadeMax)
     {
         _hotSpotFadeMax.StartDistance = this.MaxDistance;
     }
     if (hotSpot == _hotSpotOuterCone)
     {
         _hotSpotOuterCone.StartAngle = ConeOutside;
     }
     if (hotSpot == _hotSpotInnerCone)
     {
         _hotSpotInnerCone.StartAngle = ConeInside;
     }
     if (hotSpot == _hotSpotPlaySound) // button pressed
     {
         TogglePlaySound();
     }
 }
Beispiel #5
0
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragBegin(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotStartEvent) // button pressed
     {
         ToggleStartEvent();
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 /// <param name="fDeltaX"></param>
 /// <param name="fDeltaY"></param>
 public override void OnHotSpotDrag(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view, float fDeltaX, float fDeltaY)
 {
     if (hotSpot == _hotSpotReverbMin)
     {
         MinDistance = _hotSpotReverbMin.CurrentDistance;
     }
     if (hotSpot == _hotSpotReverbMax)
     {
         MaxDistance = _hotSpotReverbMax.CurrentDistance;
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 /// <param name="fDeltaX"></param>
 /// <param name="fDeltaY"></param>
 public override void OnHotSpotDrag(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view, float fDeltaX, float fDeltaY)
 {
     if (hotSpot == _hotSpotSizeX)
     {
         SizeX = _hotSpotSizeX.CurrentDistance;
     }
     if (hotSpot == _hotSpotSizeY)
     {
         SizeY = _hotSpotSizeY.CurrentDistance;
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragBegin(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotReverbMin)
     {
         _hotSpotReverbMin.StartDistance = this.MinDistance;
     }
     if (hotSpot == _hotSpotReverbMax)
     {
         _hotSpotReverbMax.StartDistance = this.MaxDistance;
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragBegin(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotSizeX)
     {
         _hotSpotSizeX.StartDistance = this.SizeX;
     }
     if (hotSpot == _hotSpotSizeY)
     {
         _hotSpotSizeY.StartDistance = this.SizeY;
     }
 }
Beispiel #10
0
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragEnd(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotVolume)
     {
         if (_hotSpotVolume.HasChanged)
         {
             float fNewVal = _hotSpotVolume.CurrentDistance;
             Volume = _hotSpotVolume.StartDistance; // set old value for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "Volume", fNewVal));
         }
     }
     if (hotSpot == _hotSpotFadeMin)
     {
         if (_hotSpotFadeMin.HasChanged)
         {
             float fNewVal = _hotSpotFadeMin.CurrentDistance;
             MinDistance = _hotSpotFadeMin.StartDistance; // set old value for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "MinDistance", fNewVal));
         }
     }
     if (hotSpot == _hotSpotFadeMax)
     {
         if (_hotSpotFadeMax.HasChanged)
         {
             float fNewVal = _hotSpotFadeMax.CurrentDistance;
             MaxDistance = _hotSpotFadeMax.StartDistance; // set old value for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "MaxDistance", fNewVal));
         }
     }
     if (hotSpot == _hotSpotOuterCone)
     {
         if (_hotSpotOuterCone.HasChanged)
         {
             float fNewAngle = _hotSpotOuterCone.CurrentAngle;
             ConeOutside = _hotSpotOuterCone.StartAngle; // set old angle for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "ConeOutside", fNewAngle));
         }
     }
     if (hotSpot == _hotSpotInnerCone)
     {
         if (_hotSpotInnerCone.HasChanged)
         {
             float fNewAngle = _hotSpotInnerCone.CurrentAngle;
             ConeInside = _hotSpotInnerCone.StartAngle; // set old angle for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "ConeInside", fNewAngle));
         }
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragEnd(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotConeAngleX)
     {
         if (_hotSpotConeAngleX.HasChanged)
         {
             float fNewAngle = _hotSpotConeAngleX.CurrentAngle;
             ConeAngleX = _hotSpotConeAngleX.StartAngle; // set old angle for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "ConeAngleX", fNewAngle));
         }
     }
     if (hotSpot == _hotSpotConeAngleY)
     {
         if (_hotSpotConeAngleY.HasChanged)
         {
             float fNewAngle = _hotSpotConeAngleY.CurrentAngle;
             ConeAngleY = _hotSpotConeAngleY.StartAngle; // set old angle for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "ConeAngleY", fNewAngle));
         }
     }
     if (hotSpot == _hotSpotLength)
     {
         if (_hotSpotLength.HasChanged)
         {
             float fNewDist = _hotSpotLength.CurrentDistance;
             Length = _hotSpotLength.StartDistance; // set old angle for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "Length", fNewDist));
         }
     }
     if (hotSpot == _hotSpotFadeOutDist1)
     {
         if (_hotSpotFadeOutDist1.HasChanged)
         {
             float fNewDist = _hotSpotFadeOutDist1.CurrentDistance - _hotSpotLength.CurrentDistance;
             FadeOutDistance = _hotSpotFadeOutDist1.StartDistance - _hotSpotLength.CurrentDistance;;
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "FadeOutDistance", fNewDist));
         }
     }
     if (hotSpot == _hotSpotFadeOutDist2)
     {
         if (_hotSpotFadeOutDist2.HasChanged)
         {
             float fNewDist = _hotSpotLength.CurrentDistance - _hotSpotFadeOutDist2.CurrentDistance;
             FadeOutDistance = _hotSpotLength.CurrentDistance - _hotSpotFadeOutDist2.StartDistance;
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "FadeOutDistance", fNewDist));
         }
     }
 }
Beispiel #12
0
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragEnd(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotGravity)
     {
         if (_hotSpotGravity.HasChanged)
         {
             float fNewVal = _hotSpotGravity.CurrentDistance;
             Gravity = _hotSpotGravity.StartDistance; // set old value for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "Gravity", fNewVal));
         }
     }
     if (hotSpot == _hotSpotLightGridOfs)
     {
         Vector3F vNewPos = _hotSpotLightGridOfs.CurrentPosition;
         LightGridSampleOfs = _hotSpotLightGridOfs.StartPosition;                                                   // set old value for the action
         EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "LightGridSampleOfs", vNewPos)); // send an action which sets the property from old value to new one
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragBegin(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotConeAngleX)
     {
         _hotSpotConeAngleX.StartAngle = this.CameraAngleX;
     }
     if (hotSpot == _hotSpotConeAngleY)
     {
         _hotSpotConeAngleY.StartAngle = this.CameraAngleY;
     }
     if (hotSpot == _hotSpotNearClip)
     {
         _hotSpotNearClip.StartDistance = this.NearClipDistance;
     }
     if (hotSpot == _hotSpotFarClip)
     {
         _hotSpotFarClip.StartDistance = this.FarClipDistance;
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 /// <param name="fDeltaX"></param>
 /// <param name="fDeltaY"></param>
 public override void OnHotSpotDrag(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view, float fDeltaX, float fDeltaY)
 {
     if (hotSpot == _hotSpotConeAngleX)
     {
         CameraAngleX = _hotSpotConeAngleX.CurrentAngle; // update for the view
     }
     if (hotSpot == _hotSpotConeAngleY)
     {
         CameraAngleY = _hotSpotConeAngleY.CurrentAngle;
     }
     if (hotSpot == _hotSpotNearClip)
     {
         NearClipDistance = _hotSpotNearClip.CurrentDistance;
     }
     if (hotSpot == _hotSpotFarClip)
     {
         FarClipDistance = _hotSpotFarClip.CurrentDistance;
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 public override void OnHotSpotEvaluatePosition(CSharpFramework.View.HotSpotBase hotSpot)
 {
     if (hotSpot == _hotSpotSizeX)
     {
         _hotSpotSizeX.Axis = this.XAxis;
         if (!_hotSpotSizeX.IsDragging)
         {
             _hotSpotSizeX.StartDistance = SizeX;
         }
     }
     if (hotSpot == _hotSpotSizeY)
     {
         _hotSpotSizeY.Axis = this.YAxis;
         if (!_hotSpotSizeY.IsDragging)
         {
             _hotSpotSizeY.StartDistance = SizeY;
         }
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 public override void OnHotSpotEvaluatePosition(CSharpFramework.View.HotSpotBase hotSpot)
 {
     if (hotSpot == _hotSpotReverbMin)
     {
         _hotSpotReverbMin.Axis = this.XAxis;
         if (!_hotSpotReverbMin.IsDragging)
         {
             _hotSpotReverbMin.StartDistance = MinDistance;
         }
     }
     if (hotSpot == _hotSpotReverbMax)
     {
         _hotSpotReverbMax.Axis = this.XAxis;
         if (!_hotSpotReverbMax.IsDragging)
         {
             _hotSpotReverbMax.StartDistance = MaxDistance;
         }
     }
 }
Beispiel #17
0
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 public override void OnHotSpotEvaluatePosition(CSharpFramework.View.HotSpotBase hotSpot)
 {
     if (hotSpot == _hotSpotVolume)
     {
         _hotSpotVolume.Axis = this.ZAxis;
         if (!_hotSpotVolume.IsDragging)
         {
             _hotSpotVolume.StartDistance = Volume;
         }
     }
     if (hotSpot == _hotSpotFadeMin)
     {
         _hotSpotFadeMin.Axis = this.XAxis;
         if (!_hotSpotFadeMin.IsDragging)
         {
             _hotSpotFadeMin.StartDistance = MinDistance;
         }
     }
     if (hotSpot == _hotSpotFadeMax)
     {
         _hotSpotFadeMax.Axis = this.XAxis;
         if (!_hotSpotFadeMax.IsDragging)
         {
             _hotSpotFadeMax.StartDistance = MaxDistance;
         }
     }
     if (hotSpot == _hotSpotOuterCone)
     {
         if (!_hotSpotOuterCone.IsDragging)
         {
             _hotSpotOuterCone.StartAngle = ConeOutside;
         }
     }
     if (hotSpot == _hotSpotInnerCone)
     {
         if (!_hotSpotInnerCone.IsDragging)
         {
             _hotSpotInnerCone.StartAngle = ConeInside;
         }
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 public override void OnHotSpotEvaluatePosition(CSharpFramework.View.HotSpotBase hotSpot)
 {
     if (hotSpot == _hotSpotConeAngleX)
     {
         if (!_hotSpotConeAngleX.IsDragging)
         {
             _hotSpotConeAngleX.StartAngle = ConeAngleX;
         }
     }
     if (hotSpot == _hotSpotConeAngleY)
     {
         if (!_hotSpotConeAngleY.IsDragging)
         {
             _hotSpotConeAngleY.StartAngle = ConeAngleY;
         }
     }
     if (hotSpot == _hotSpotLength)
     {
         _hotSpotLength.Axis = this.XAxis;
         if (!_hotSpotLength.IsDragging)
         {
             _hotSpotLength.StartDistance = Length;
         }
     }
     if (hotSpot == _hotSpotFadeOutDist1)
     {
         _hotSpotFadeOutDist1.Axis = this.XAxis;
         if (!_hotSpotFadeOutDist1.IsDragging)
         {
             _hotSpotFadeOutDist1.StartDistance = FadeOutDistance + Length;
         }
     }
     if (hotSpot == _hotSpotFadeOutDist2)
     {
         _hotSpotFadeOutDist2.Axis = this.XAxis;
         if (!_hotSpotFadeOutDist2.IsDragging)
         {
             _hotSpotFadeOutDist2.StartDistance = Length - FadeOutDistance;
         }
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragEnd(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotSizeX)
     {
         if (_hotSpotSizeX.HasChanged)
         {
             float fNewVal = _hotSpotSizeX.CurrentDistance;
             SizeX = _hotSpotSizeX.StartDistance; // set old value for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "SizeX", fNewVal));
         }
     }
     if (hotSpot == _hotSpotSizeY)
     {
         if (_hotSpotSizeY.HasChanged)
         {
             float fNewVal = _hotSpotSizeY.CurrentDistance;
             SizeY = _hotSpotSizeY.StartDistance; // set old value for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "SizeY", fNewVal));
         }
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragEnd(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotReverbMin)
     {
         if (_hotSpotReverbMin.HasChanged)
         {
             float fNewVal = _hotSpotReverbMin.CurrentDistance;
             MinDistance = _hotSpotReverbMin.StartDistance; // set old value for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "MinDistance", fNewVal));
         }
     }
     if (hotSpot == _hotSpotReverbMax)
     {
         if (_hotSpotReverbMax.HasChanged)
         {
             float fNewVal = _hotSpotReverbMax.CurrentDistance;
             MaxDistance = _hotSpotReverbMax.StartDistance; // set old value for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "MaxDistance", fNewVal));
         }
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragEnd(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotConeAngleX)
     {
         if (_hotSpotConeAngleX.HasChanged)
         {
             float fNewAngle = _hotSpotConeAngleX.CurrentAngle;
             CameraAngleX = _hotSpotConeAngleX.StartAngle; // set old angle for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "CameraAngleX", fNewAngle));
         }
     }
     if (hotSpot == _hotSpotConeAngleY)
     {
         if (_hotSpotConeAngleY.HasChanged)
         {
             float fNewAngle = _hotSpotConeAngleY.CurrentAngle;
             CameraAngleY = _hotSpotConeAngleY.StartAngle; // set old angle for the action
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "CameraAngleY", fNewAngle));
         }
     }
     if (hotSpot == _hotSpotNearClip)
     {
         if (_hotSpotNearClip.HasChanged)
         {
             float fNewDist = _hotSpotNearClip.CurrentDistance;
             this.NearClipDistance = _hotSpotNearClip.StartDistance;
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "NearClipDistance", fNewDist));
         }
     }
     if (hotSpot == _hotSpotFarClip)
     {
         if (_hotSpotFarClip.HasChanged)
         {
             float fNewDist = _hotSpotFarClip.CurrentDistance;
             this.FarClipDistance = _hotSpotFarClip.CurrentDistance;
             EditorManager.Actions.Add(SetPropertyAction.CreateSetPropertyAction(this, "FarClipDistance", fNewDist));
         }
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 public override void OnHotSpotDragBegin(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view)
 {
     if (hotSpot == _hotSpotConeAngleX)
     {
         _hotSpotConeAngleX.StartAngle = this.ConeAngleX;
     }
     if (hotSpot == _hotSpotConeAngleY)
     {
         _hotSpotConeAngleY.StartAngle = this.ConeAngleY;
     }
     if (hotSpot == _hotSpotLength)
     {
         _hotSpotLength.StartDistance = this.Length;
     }
     if (hotSpot == _hotSpotFadeOutDist1)
     {
         _hotSpotFadeOutDist1.StartDistance = this.Length + this.FadeOutDistance;
     }
     if (hotSpot == _hotSpotFadeOutDist2)
     {
         _hotSpotFadeOutDist2.StartDistance = this.Length - this.FadeOutDistance;
     }
 }
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 /// <param name="fDeltaX"></param>
 /// <param name="fDeltaY"></param>
 public override void OnHotSpotDrag(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view, float fDeltaX, float fDeltaY)
 {
     if (hotSpot == _hotSpotConeAngleX)
     {
         ConeAngleX = _hotSpotConeAngleX.CurrentAngle; // update for the view
     }
     if (hotSpot == _hotSpotConeAngleY)
     {
         ConeAngleY = _hotSpotConeAngleY.CurrentAngle;
     }
     if (hotSpot == _hotSpotLength)
     {
         Length = _hotSpotLength.CurrentDistance;
     }
     if (hotSpot == _hotSpotFadeOutDist1)
     {
         FadeOutDistance = _hotSpotFadeOutDist1.CurrentDistance - _hotSpotLength.CurrentDistance;
     }
     if (hotSpot == _hotSpotFadeOutDist2)
     {
         FadeOutDistance = _hotSpotLength.CurrentDistance - _hotSpotFadeOutDist2.CurrentDistance;
     }
 }
Beispiel #24
0
 /// <summary>
 /// Overridden function
 /// </summary>
 /// <param name="hotSpot"></param>
 /// <param name="view"></param>
 /// <param name="fDeltaX"></param>
 /// <param name="fDeltaY"></param>
 public override void OnHotSpotDrag(CSharpFramework.View.HotSpotBase hotSpot, VisionViewBase view, float fDeltaX, float fDeltaY)
 {
     if (hotSpot == _hotSpotVolume)
     {
         Volume = _hotSpotVolume.CurrentDistance;
     }
     if (hotSpot == _hotSpotFadeMin)
     {
         MinDistance = _hotSpotFadeMin.CurrentDistance;
     }
     if (hotSpot == _hotSpotFadeMax)
     {
         MaxDistance = _hotSpotFadeMax.CurrentDistance;
     }
     if (hotSpot == _hotSpotOuterCone)
     {
         ConeOutside = _hotSpotOuterCone.CurrentAngle;
     }
     if (hotSpot == _hotSpotInnerCone)
     {
         ConeInside = _hotSpotInnerCone.CurrentAngle;
     }
 }
Beispiel #25
0
        /// <summary>
        /// Overridden function
        /// </summary>
        /// <param name="hotSpot"></param>
        public override void OnHotSpotEvaluatePosition(CSharpFramework.View.HotSpotBase hotSpot)
        {
            if (hotSpot == _hotSpotGravity)
            {
                _hotSpotGravity.Axis = -Vector3F.ZAxis;
                if (!_hotSpotGravity.IsDragging)
                {
                    _hotSpotGravity.StartDistance = Gravity;
                }
            }
            if (hotSpot == _hotSpotLightGridOfs)
            {
                _hotSpotLightGridOfs.Visible = this.ShowLightgridWidget;

                if (_hotSpotLightGridOfs.IsDragging) // update while dragging
                {
                    LightGridSampleOfs = _hotSpotLightGridOfs.CurrentPosition;
                }
                else
                {
                    _hotSpotLightGridOfs.StartPosition = LightGridSampleOfs;
                }
            }
        }