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

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

            MovableBoxVisual3D.Material = _selectedMaterial;
            ArrowLineVisual3D.LineColor = Colors.Red;
        }
示例#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);
            }
        }
示例#4
0
 void OnWindGeneratorMouseEnter(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e)
 {
     this.Cursor = Cursors.ScrollAll;
 }
示例#5
0
 void OnWindGeneratorMouseLeave(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e)
 {
     this.Cursor = null;
 }