public void Draw(IDrawer drawer)
        {
            foreach (var position in this.positions)
            {
                drawer.DrawPoint(position.X, position.Y, this.symbol);
            }

            var last = this.positions.Last;

            drawer.DrawPoint(last.Value.X, last.Value.Y, ' ');
        }
        public void Draw(IDrawer drawer)
        {
            foreach (var position in this.positions)
            {
                drawer.DrawPoint(position.X, position.Y, this.symbol);
            }

            var last = this.positions.Last;
            
             
            drawer.DrawPoint(last. Value .X, last . Value . Y ,  ' ' ) ;



        }
        /// Called for each fixture found in the query AABB.
        /// @return false to terminate the query.
        public bool QueryCallback(Fixture fixture)
        {
            if (Count == MaxCount)
            {
                return(false);
            }

            var body  = fixture.Body;
            var shape = fixture.Shape;

            var overlap = CollisionUtils.TestOverlap(
                shape,
                0,
                Circle,
                0,
                body.GetTransform(),
                Transform,
                fixture.Body.World.GJkProfile);

            if (overlap)
            {
                var color  = Box2DSharp.Common.Color.FromArgb(0.95f, 0.95f, 0.6f);
                var center = body.GetWorldCenter();
                _drawer.DrawPoint(center, 5.0f, color);
                ++Count;
            }

            return(true);
        }
        private void DrawPoint(IGUIState guiState, Control control, int index)
        {
            var position = GetPoint(index).position;

            if (guiState.hotControl == control.actionID && control.hotLayoutData.index == index || IsSelected(index))
            {
                m_Drawer.DrawPointSelected(position);
            }
            else if (guiState.hotControl == 0 && guiState.nearestControl == control.ID && control.layoutData.index == index)
            {
                m_Drawer.DrawPointHovered(position);
            }
            else
            {
                m_Drawer.DrawPoint(position);
            }
        }
Exemple #5
0
 public void Draw(IDrawer drawer)
 {
     drawer.DrawPoint(Coordinates);
 }
Exemple #6
0
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Format.Color, (int)Format.Width);
     drawer.DrawPoint(Coordinates);
 }
Exemple #7
0
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(format.Color, format.Width);
     drawer.DrawPoint(point);
 }
Exemple #8
0
 void IDrawer.DrawPoint(Vector3 position)
 {
     m_Drawer.DrawPoint(position);
 }
Exemple #9
0
 public void Draw(IDrawer drawer)
 {
     drawer.SelectPen(Color.Black, 1);
     drawer.DrawPoint(Coordinates);
 }
Exemple #10
0
 public void Draw(IDrawer drawer)
 {
     drawer.DrawPoint(new PointF(X, Y));
 }