Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/30/09 10:11:25 (16 years ago)
Author:
mstoeger
Message:

moved the canvas and the basic types of shapes to their own namespace. #498

Location:
trunk/sources/HeuristicLab.Visualization/3.2/Drawing
Files:
1 added
7 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/3.2/Drawing/Canvas.cs

    r1884 r1964  
    44using System.Drawing.Drawing2D;
    55
    6 namespace HeuristicLab.Visualization {
     6namespace HeuristicLab.Visualization.Drawing {
    77  public class Canvas : IShape {
    88    private readonly WorldShape worldShape;
  • trunk/sources/HeuristicLab.Visualization/3.2/Drawing/CanvasUI.Designer.cs

    r1884 r1964  
    1 namespace HeuristicLab.Visualization
    2 {
    3     partial class CanvasUI
     1namespace HeuristicLab.Visualization.Drawing {
     2  partial class CanvasUI
     3  {
     4    /// <summary>
     5    /// Required designer variable.
     6    /// </summary>
     7    private System.ComponentModel.IContainer components = null;
     8
     9    /// <summary>
     10    /// Clean up any resources being used.
     11    /// </summary>
     12    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
     13    protected override void Dispose(bool disposing)
    414    {
    5         /// <summary>
    6         /// Required designer variable.
    7         /// </summary>
    8         private System.ComponentModel.IContainer components = null;
     15      if (disposing && (components != null))
     16      {
     17        components.Dispose();
     18      }
     19      base.Dispose(disposing);
     20    }
    921
    10         /// <summary>
    11         /// Clean up any resources being used.
    12         /// </summary>
    13         /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    14         protected override void Dispose(bool disposing)
    15         {
    16             if (disposing && (components != null))
    17             {
    18                 components.Dispose();
    19             }
    20             base.Dispose(disposing);
    21         }
     22    #region Component Designer generated code
    2223
    23         #region Component Designer generated code
     24    /// <summary>
     25    /// Required method for Designer support - do not modify
     26    /// the contents of this method with the code editor.
     27    /// </summary>
     28    private void InitializeComponent()
     29    {
     30      this.SuspendLayout();
     31      //
     32      // CanvasUI
     33      //
     34      this.ResumeLayout(false);
    2435
    25         /// <summary>
    26         /// Required method for Designer support - do not modify
    27         /// the contents of this method with the code editor.
    28         /// </summary>
    29         private void InitializeComponent()
    30         {
    31           this.SuspendLayout();
    32           //
    33           // CanvasUI
    34           //
    35           this.ResumeLayout(false);
     36    }
    3637
    37         }
    38 
    39         #endregion
    40     }
     38    #endregion
     39  }
    4140}
  • trunk/sources/HeuristicLab.Visualization/3.2/Drawing/CanvasUI.cs

    r1884 r1964  
    44using System.Windows.Forms;
    55
    6 namespace HeuristicLab.Visualization {
     6namespace HeuristicLab.Visualization.Drawing {
    77  public partial class CanvasUI : Control {
    88    private readonly Canvas canvas = new Canvas();
     
    3131        base.OnPaint(pe);
    3232      } catch (Exception e) {
    33        Trace.WriteLine(e);
     33        Trace.WriteLine(e);
    3434      }
    3535    }
  • trunk/sources/HeuristicLab.Visualization/3.2/Drawing/CompositeShape.cs

    r1884 r1964  
    33using System.Drawing;
    44
    5 namespace HeuristicLab.Visualization {
     5namespace HeuristicLab.Visualization.Drawing {
    66  public class CompositeShape : IShape {
    77    private IShape parent;
     
    8585      foreach (var shape in shapes) {
    8686        boundingBox = new RectangleD(Math.Min(boundingBox.X1, shape.BoundingBox.X1),
    87                                     Math.Min(boundingBox.Y1, shape.BoundingBox.Y1),
    88                                     Math.Max(boundingBox.X2, shape.BoundingBox.X2),
    89                                     Math.Max(boundingBox.Y2, shape.BoundingBox.Y2));
     87                                     Math.Min(boundingBox.Y1, shape.BoundingBox.Y1),
     88                                     Math.Max(boundingBox.X2, shape.BoundingBox.X2),
     89                                     Math.Max(boundingBox.Y2, shape.BoundingBox.Y2));
    9090      }
    9191    }
  • trunk/sources/HeuristicLab.Visualization/3.2/Drawing/IShape.cs

    r1884 r1964  
    11using System.Drawing;
    22
    3 namespace HeuristicLab.Visualization {
     3namespace HeuristicLab.Visualization.Drawing {
    44  /// <summary>
    55  /// This is the base interface that has to be implemented by all shapes.
  • trunk/sources/HeuristicLab.Visualization/3.2/Drawing/Transform.cs

    r1884 r1964  
    11using System.Drawing;
    22
    3 namespace HeuristicLab.Visualization {
     3namespace HeuristicLab.Visualization.Drawing {
    44  /// <summary>
    55  /// GDI (or screen) coordinate system
  • trunk/sources/HeuristicLab.Visualization/3.2/Drawing/WorldShape.cs

    r1884 r1964  
    33using System.Drawing.Drawing2D;
    44
    5 namespace HeuristicLab.Visualization {
     5namespace HeuristicLab.Visualization.Drawing {
    66  /// <summary>
    77  /// World shapes are composite shapes that have their own coordinate system
Note: See TracChangeset for help on using the changeset viewer.