void eventSource3D_MouseLeave(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e) { Viewport3D1.Cursor = null; MovableBoxVisual3D.Material = _unSelectedMaterial; ArrowLineVisual3D.LineColor = Colors.Blue; }
void eventSource3D_MouseEnter(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e) { Viewport3D1.Cursor = Cursors.Hand; MovableBoxVisual3D.Material = _selectedMaterial; ArrowLineVisual3D.LineColor = Colors.Red; }
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); } }
void OnWindGeneratorMouseEnter(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e) { this.Cursor = Cursors.ScrollAll; }
void OnWindGeneratorMouseLeave(object sender, Ab3d.Common.EventManager3D.Mouse3DEventArgs e) { this.Cursor = null; }