Example #1
0
        void eventSource3D_MouseLeave(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e)
        {
            Viewport3D1.Cursor = null;

            MovableBoxVisual3D.Material = _unSelectedMaterial;
            ArrowLineVisual3D.LineColor = Colors.Blue;
        }
Example #2
0
        void eventSource3D_MouseEnter(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e)
        {
            Viewport3D1.Cursor = Cursors.Hand;

            MovableBoxVisual3D.Material = _selectedMaterial;
            ArrowLineVisual3D.LineColor = Colors.Red;
        }
Example #3
0
        void OnWindGeneratorEndMouseDrag(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e)
        {
            this.Cursor = null;

            // Check if the moved wind generator is also camera centered
            var movedWindGenerator    = e.HitEventSource3D.CustomData as WindGenerator;
            var centeredWindGenerator = GetCenteredWindGenerator();

            if (centeredWindGenerator != null && centeredWindGenerator == movedWindGenerator)
            {
                // Update camera's TargetPosition to reflect the moved wind generator position
                Camera1.TargetPosition = new Point3D(movedWindGenerator.Position.X, movedWindGenerator.Position.Y + movedWindGenerator.Height / 2, movedWindGenerator.Position.Z);
            }
        }
Example #4
0
 void OnWindGeneratorMouseEnter(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e)
 {
     this.Cursor = Cursors.ScrollAll;
 }
Example #5
0
 void OnWindGeneratorMouseLeave(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e)
 {
     this.Cursor = null;
 }