public Render(string inputFile) { InitializeComponent(); InitializeResources(); var parser = new Parser(inputFile); InitializeParser(parser); Shown += (sender, args) => parser.Start(); renderPanel.Paint += (sender, args) => RenderPicture(args.Graphics); }
public Render(string inputFile) { InitializeComponent(); _mainFigures = new List<Figure<Point2D, Matrix2D>[]>(); _matrices = new Matrix2D[4]; for (var i = 0; i < _matrices.Length; ++i) _matrices[i] = new Matrix2D().IdentMatrix<Matrix2D>(); _transform = new ReduceTransform(); var parser = new Parser(inputFile); InitializeParser(parser); Shown += (sender, args) => parser.Start(); renderPanel.Paint += (sender, args) => RenderPicture(args.Graphics); }
public Render(string inputFile) { InitializeComponent(); _mainFigures = new List<Figure<Point3D, Matrix3D>>(); _projectionMatrix = new Matrix3D().IdentMatrix<Matrix3D>().Chain( new Matrix3D().MovementMatrix(0, 0, 800), new Matrix3D().ProjectionMatrix()); _transformMatrix = new Matrix3D().IdentMatrix<Matrix3D>(); _mouseXMatrix = new Matrix3D(); _mouseYMatrix = new Matrix3D(); var parser = new Parser(inputFile); InitializeParser(parser); Shown += (sender, args) => parser.Start(); renderPanel.Paint += (sender, args) => RenderPicture(args.Graphics); InitializeMouse(); }