Пример #1
0
        public void SetData(ObjectPlacementBlockManualConstructionSessionData sessionData)
        {
            if (!_isActive)
            {
                _block               = sessionData.Block;
                _blockSegments       = sessionData.BlockSegments;
                _blockExtensionPlane = sessionData.BlockExtensionPlane;

                _startObject = sessionData.StartObject;
                _startObjectHierarchyWorldOrientedBox     = _startObject.GetHierarchyWorldOrientedBox();
                _blockObjectPlacementDataCalculator.Block = _block;

                _manualConstructionSettings = _block.Settings.ManualConstructionSettings;
                _heightAdjustmentSettings   = _manualConstructionSettings.HeightAdjustmentSettings;
                _automaticRandomHeightAdjustmentSettings = _heightAdjustmentSettings.AutomaticRandomHeightAdjustmentSettings;
                _paddingSettings     = _manualConstructionSettings.PaddingSettings;
                _subdivisionSettings = _manualConstructionSettings.SubdivisionSettings;
            }
        }
        public static void SendToInterestedListeners(ObjectPlacementBlockHeightAdjustmentSettings heightAdjustmentSettings)
        {
            var message = new ObjectPlacementBlockHeightAdjustmentModeWasChangedMessage(heightAdjustmentSettings);

            MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
        }
 public ObjectPlacementBlockHeightAdjustmentSettingsView(ObjectPlacementBlockHeightAdjustmentSettings settings)
 {
     _settings = settings;
 }
 public ObjectPlacementBlockHeightAdjustmentModeWasChangedMessage(ObjectPlacementBlockHeightAdjustmentSettings heightAdjustmentSettings)
     : base(MessageType.ObjectPlacementBlockHeightAdjustmentModeWasChanged)
 {
     _heightAdjustmentSettings = heightAdjustmentSettings;
 }