public Window1() { InitializeComponent(); // selection rect m_selectRect.SetRect(new Point(-0.5, -0.5), new Point(-0.5, -0.5)); WPFChart3D.Model3D model3d = new WPFChart3D.Model3D(); ArrayList meshs = m_selectRect.GetMeshes(); totalMatrixInitial = this.m_transformMatrix.m_totalMatrix; }
public MainWindow() { InitializeComponent(); // selection rect _mSelectRect.SetRect(new Point(-0.5, -0.5), new Point(-0.5, -0.5)); var model3D = new Model3D(); var meshs = _mSelectRect.GetMeshes(); MnRectModelIndex = model3D.UpdateModel(meshs, null, MnRectModelIndex, mainViewport); // display surface chart TestScatterPlot(1000); TransformChart(); }
public SurfacePlotWindow(double xMin, double xMax, double yMin, double yMax, Func <double, double, double> f) { InitializeComponent(); // selection rect m_selectRect.SetRect(new Point(-0.5, -0.5), new Point(-0.5, -0.5)); WPFChart3D.Model3D model3d = new WPFChart3D.Model3D(); ArrayList meshs = m_selectRect.GetMeshes(); m_nRectModelIndex = model3d.UpdateModel(meshs, null, m_nRectModelIndex, this.mainViewport); // display surface chart TestSurfacePlot(100, (float)xMin, (float)xMax, (float)yMin, (float)yMax, f); TransformChart(); }
public Window1() { InitializeComponent(); // selection rect m_selectRect.SetRect(new Point(-0.5, -0.5), new Point(-0.5, -0.5)); WPFChart3D.Model3D model3d = new WPFChart3D.Model3D(); ArrayList meshs = m_selectRect.GetMeshes(); m_nRectModelIndex = model3d.UpdateModel(meshs, null, m_nRectModelIndex, this.mainViewport); // display the 3d chart data no. gridNo.Text = String.Format("{0:d}", m_nSurfaceChartGridNo); dataNo.Text = String.Format("{0:d}", m_nScatterPlotDataNo); // display surface chart TestScatterPlot(1000); TransformChart(); }