예제 #1
0
        public StandardTool(VMTool mainTool) : base(mainTool)
        {
            var sc = new StandardControl();

            sc.Merge += Merge;
            sc.Split += Split;
            Control   = sc;
        }
예제 #2
0
        public EditFaceTool(VMTool mainTool) : base(mainTool)
        {
            var ef = new EditFaceControl();

            ef.Poke  += Poke;
            ef.Bevel += Bevel;
            Control   = ef;
        }
예제 #3
0
파일: ScaleTool.cs 프로젝트: xbloke/sledge
        public ScaleTool(VMTool mainTool) : base(mainTool)
        {
            var sc = new ScaleControl();

            Control          = sc;
            sc.ValueChanged += ValueChanged;
            sc.ValueReset   += ValueReset;
            sc.ResetOrigin  += ResetOrigin;
            _origin          = new VMPoint {
                Coordinate = Coordinate.Zero, Vertices = new List <Vertex>()
            };
        }
예제 #4
0
 protected VMSubTool(VMTool mainTool)
 {
     MainTool = mainTool;
 }