Esempio n. 1
0
        public CADBrower(System.Windows.Forms.TreeView _treeView, AnyCAD.Presentation.RenderWindow3d _renderView)
        {
            treeView   = _treeView;
            renderView = _renderView;
            faceStyle  = new FaceStyle();

            System.Windows.Forms.TreeNode node = treeView.Nodes.Add("AnyCAD.net");
            nodeStack.Push(node);
        }
Esempio n. 2
0
        public CADBrower(System.Windows.Forms.TreeView _treeView, AnyCAD.Presentation.RenderWindow3d _renderView)
        {
            treeView = _treeView;
            renderView = _renderView;
            faceStyle = new FaceStyle();

            System.Windows.Forms.TreeNode node = treeView.Nodes.Add("AnyCAD.net");
            nodeStack.Push(node);

            fileSys = new StreamWriter("d:/xxx.txt");
        }
Esempio n. 3
0
        public MainForm()
        {
            InitializeComponent();

            var container = this.splitContainer1.Panel2;//new 一个容器

            renderView = new RenderWindow3d();

            //界面固定代码,写上就完了
            this.renderView.Dock     = DockStyle.Fill;
            this.renderView.TabIndex = 1;
            this.splitContainer1.Panel2.Controls.Add(this.renderView);
            //用鼠标单击控件时发生。
            this.renderView.MouseClick += new System.Windows.Forms.MouseEventHandler(this.OnRenderWindow_MouseClick);
        }
Esempio n. 4
0
        public CADBrower(System.Windows.Forms.TreeView _treeView, AnyCAD.Presentation.RenderWindow3d _renderView)
        {
            treeView   = _treeView;
            renderView = _renderView;
            faceStyle  = new FaceStyle();
            holeStyle  = new LineStyle();
            holeStyle.SetLineWidth(3);
            holeStyle.SetColor(0, 256, 0);

            System.Windows.Forms.TreeNode node = treeView.Nodes.Add("AnyCAD.net");
            nodeStack.Push(node);

            revolutionStyle = new FaceStyle();
            revolutionStyle.SetColor(255, 0, 0);
        }
Esempio n. 5
0
        public MainForm()
        {
            InitializeComponent();

            this.renderView          = new AnyCAD.Presentation.RenderWindow3d();
            this.renderView.Location = new System.Drawing.Point(0, 0);
            this.renderView.Size     = this.Size;
            this.renderView.TabIndex = 1;
            this.splitContainer1.Panel2.Controls.Add(this.renderView);

            this.renderView.MouseClick += new System.Windows.Forms.MouseEventHandler(this.OnRenderWindow_MouseClick);

            GlobalInstance.EventListener.OnChangeCursorEvent  += OnChangeCursor;
            GlobalInstance.EventListener.OnSelectElementEvent += OnSelectElement;
            GlobalInstance.EventListener.OnSelectElementEvent += OnSelectionChanged;

            System.Timers.Timer t = new System.Timers.Timer(100);        //实例化Timer类,设置时间间隔
            t.Elapsed  += new System.Timers.ElapsedEventHandler(Update); //到达时间的时候执行事件
            t.AutoReset = true;                                          //设置是执行一次(false)还是一直执行(true)
            t.Enabled   = true;                                          //是否执行System.Timers.Timer.Elapsed事件
            path        = System.IO.Directory.GetCurrentDirectory();

            //webBrowser1.Navigate("http://120.27.231.59:809/Configure.html");
        }
Esempio n. 6
0
 public CadView(AnyCAD.Presentation.RenderWindow3d _renderView)
 {
     renderView = _renderView;
     faceStyle  = new FaceStyle();
     //nodeStack.Push(node);
 }