示例#1
0
    public AddAuxiliaryOperation(GeoController geoController, StateController stateController, Geometry geometry, GeometryBehaviour geometryBehaviour, GeoUI geoUI, Tool tool)
    {
        CanRotateCamera  = true;
        CanActiveElement = true;

        this.geoController     = geoController;
        this.stateController   = stateController;
        this.geometry          = geometry;
        this.geometryBehaviour = geometryBehaviour;
        this.inputPanel        = geoUI.inputPanel;
        this.tool = tool;

        Type type = Type.GetType(tool.Name + "AuxiliaryTool");

        if (type != null)
        {
            auxiliaryTool = (AuxiliaryTool)Activator.CreateInstance(type);
        }
    }