private float[] pressMapCenterCoord = new float[2]; // マウスダウンしたときのworld座標のmapCenter座標 public Form1() { InitializeComponent(); this.BackColor = Color.Black; this.MouseWheel += new MouseEventHandler(Form1_MouseWheel); dataStore = new DataStore(); visualize = VisualizeFactory.createVisualize(dataStore); visualize.screenWidth = this.Width; visualize.screenHeight = this.Height; }
public static Visualize createVisualize(DataStore _dataStore) { Visualize visualize = null; if (Visualize.VISUALIZE_TYPE == VisualizeType.V2D) { visualize = new Visualize2D(_dataStore); } else if (Visualize.VISUALIZE_TYPE == VisualizeType.V3D) { visualize = new Visualize3D(_dataStore); } else { throw new Exception("Visualize Type error."); } return(visualize); }