Exemplo n.º 1
0
            //protected override void RefreshInternal()
            //{
            //	var ldr = new Rylogic.LDraw.LdrBuilder();
            //	ldr.Append("*Box b FF00FF00 {20}");
            //	m_gfx.UpdateModel(ldr.ToString(), View3d.EUpdateObject.All ^ View3d.EUpdateObject.Transform);
            //	m_gfx.O2P = Position;
            //}
            public override DiagramControl.HitTestResult.Hit HitTest(v2 point, View3d.Camera cam)
            {
                if ((PositionXY - point).Length > 20)
                {
                    return(null);
                }

                point -= PositionXY;
                return(new DiagramControl.HitTestResult.Hit(this, point));
            }
Exemplo n.º 2
0
 public HitTestResult(EZone zone, Point client_point, Point chart_point, ModifierKeys modifier_keys, EMouseBtns mouse_btns, IEnumerable <Hit> hits, View3d.Camera cam)
 {
     Zone         = zone;
     ClientPoint  = client_point;
     ChartPoint   = chart_point;
     Hits         = hits.ToList();
     ModifierKeys = modifier_keys;
     MouseBtns    = mouse_btns;
     Camera       = cam;
 }
Exemplo n.º 3
0
 public SavedView(string name, View3d.Camera camera)
 {
     Name         = name;
     C2W          = camera.O2W;
     FocusDist    = camera.FocusDist;
     AlignAxis    = camera.AlignAxis;
     Aspect       = camera.Aspect;
     FovX         = camera.FovX;
     FovY         = camera.FovY;
     Orthographic = camera.Orthographic;
 }
Exemplo n.º 4
0
 public void Apply(View3d.Camera camera)
 {
     camera.FocusDist    = FocusDist;
     camera.AlignAxis    = AlignAxis;
     camera.Aspect       = Aspect;
     camera.FovX         = FovX;
     camera.FovY         = FovY;
     camera.Orthographic = Orthographic;
     camera.O2W          = C2W;
     camera.Commit();
 }