Exemplo n.º 1
0
 public ObjectAddCommand(ObjectLayer source, List <ObjectInstance> objects, ObjectSelectionManager selectionManager)
     : this(source, selectionManager)
 {
     foreach (ObjectInstance inst in objects)
     {
         _objects.Add(inst);
     }
 }
Exemplo n.º 2
0
        public ObjectSelectTool(ILayerContext layerContext, ObjectLayer layer, Size gridSize, ObjectSelectionManager selectionManager)
            : base(layerContext, layer, gridSize)
        {
            _annots           = layerContext.Annotations;
            _viewport         = layerContext.Geometry;
            _selectionManager = selectionManager;
            _layerContext     = layerContext;

            InitializeCommandManager();

            _state = new SelectionStandbyToolState(this);
        }
Exemplo n.º 3
0
        public ObjectSelectTool(ILayerContext layerContext, ObjectLayer layer, Size gridSize, ObjectSelectionManager selectionManager)
            : base(layerContext, layer, gridSize)
        {
            _annots = layerContext.Annotations;
            _viewport = layerContext.Geometry;
            _selectionManager = selectionManager;
            _layerContext = layerContext;

            InitializeCommandManager();

            _state = new SelectionStandbyToolState(this);
        }
Exemplo n.º 4
0
        public ObjectLayerPresenter(ILayerContext layerContext, ObjectLayer layer)
            : base(layerContext, layer)
        {
            _layer = layer;

            _selectionManager = new ObjectSelectionManager()
            {
                Layer       = layer,
                History     = layerContext.History,
                Annotations = layerContext.Annotations,
            };

            _selectionManager.SelectionChanged += SelectionChanged;

            InitializeCommandManager();
            SetCurrentTool(NewSelectTool());
        }
Exemplo n.º 5
0
 public ObjectMoveCommand(ObjectSelectionManager selectionManager)
     : base(selectionManager)
 {
     _objects = new List<ObjectRecord>();
 }
Exemplo n.º 6
0
 public ObjectLayerCommand(ObjectSelectionManager selectionManager)
 {
     _selectionManager = selectionManager;
 }
Exemplo n.º 7
0
 public ObjectAddCommand(ObjectLayer source, List<ObjectInstance> objects, ObjectSelectionManager selectionManager)
     : this(source, selectionManager)
 {
     foreach (ObjectInstance inst in objects)
         _objects.Add(inst);
 }
Exemplo n.º 8
0
 public ObjectAddCommand(ObjectLayer source, ObjectInstance inst, ObjectSelectionManager selectionManager)
     : this(source, selectionManager)
 {
     _objects.Add(inst);
 }
Exemplo n.º 9
0
 public ObjectAddCommand(ObjectLayer source, ObjectSelectionManager selectionManager)
     : base(selectionManager)
 {
     _objectSource = source;
     _objects = new List<ObjectInstance>();
 }
Exemplo n.º 10
0
 public ObjectLayerCommand(ObjectSelectionManager selectionManager)
 {
     _selectionManager = selectionManager;
 }
Exemplo n.º 11
0
 public ObjectMoveCommand(ObjectSelectionManager selectionManager)
     : base(selectionManager)
 {
     _objects = new List <ObjectRecord>();
 }
Exemplo n.º 12
0
 public ObjectRemoveCommand(ObjectLayer source, ObjectSelectionManager selectionManager)
     : base(selectionManager)
 {
     _objectSource = source;
     _objects      = new List <ObjectInstance>();
 }
Exemplo n.º 13
0
 public ObjectAddCommand(ObjectLayer source, ObjectInstance inst, ObjectSelectionManager selectionManager)
     : this(source, selectionManager)
 {
     _objects.Add(inst);
 }