Example #1
0
 public ObjectAddCommand(ObjectLayer source, List <ObjectInstance> objects, ObjectSelectionManager selectionManager)
     : this(source, selectionManager)
 {
     foreach (ObjectInstance inst in objects)
     {
         _objects.Add(inst);
     }
 }
Example #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);
        }
Example #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);
        }
Example #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());
        }
Example #5
0
 public ObjectMoveCommand(ObjectSelectionManager selectionManager)
     : base(selectionManager)
 {
     _objects = new List<ObjectRecord>();
 }
Example #6
0
 public ObjectLayerCommand(ObjectSelectionManager selectionManager)
 {
     _selectionManager = selectionManager;
 }
Example #7
0
 public ObjectAddCommand(ObjectLayer source, List<ObjectInstance> objects, ObjectSelectionManager selectionManager)
     : this(source, selectionManager)
 {
     foreach (ObjectInstance inst in objects)
         _objects.Add(inst);
 }
Example #8
0
 public ObjectAddCommand(ObjectLayer source, ObjectInstance inst, ObjectSelectionManager selectionManager)
     : this(source, selectionManager)
 {
     _objects.Add(inst);
 }
Example #9
0
 public ObjectAddCommand(ObjectLayer source, ObjectSelectionManager selectionManager)
     : base(selectionManager)
 {
     _objectSource = source;
     _objects = new List<ObjectInstance>();
 }
Example #10
0
 public ObjectLayerCommand(ObjectSelectionManager selectionManager)
 {
     _selectionManager = selectionManager;
 }
Example #11
0
 public ObjectMoveCommand(ObjectSelectionManager selectionManager)
     : base(selectionManager)
 {
     _objects = new List <ObjectRecord>();
 }
Example #12
0
 public ObjectRemoveCommand(ObjectLayer source, ObjectSelectionManager selectionManager)
     : base(selectionManager)
 {
     _objectSource = source;
     _objects      = new List <ObjectInstance>();
 }
Example #13
0
 public ObjectAddCommand(ObjectLayer source, ObjectInstance inst, ObjectSelectionManager selectionManager)
     : this(source, selectionManager)
 {
     _objects.Add(inst);
 }