public ProcessTCommandModel(PrintModel PrintModel, PrinterModel PrinterModel, RealTimeStatusDataModel RealTimeStatusDataModel, ParametersModel ParametersModel)
        {
            _printModel              = PrintModel;
            _printerModel            = PrinterModel;
            _realTimeStatusDataModel = RealTimeStatusDataModel;

            _parametersModel = ParametersModel;

            _setWritePrintheadModel = new SetWritePrintheadModel(_parametersModel);
            _writeSetAxisModel      = new WriteSetAxisModel(_parametersModel);
        }
        public CalibrationModel(RealTimeStatusDataModel RealTimeStatusDataModel, PrinterModel PrinterModel, SerialCommunicationOutgoingMessagesModel SerialCommunicationOutgoingMessagesModel, ErrorListViewModel ErrorListViewModel)
        {
            _realTimeStatusDataModel = RealTimeStatusDataModel;
            _printerModel            = PrinterModel;
            _serialCommunicationOutgoingMessagesModel = SerialCommunicationOutgoingMessagesModel;

            ParametersModel parametersModel = new ParametersModel(_printerModel, null);

            _writeSetAxisModel = new WriteSetAxisModel(parametersModel);

            _errorListViewModel = ErrorListViewModel;
        }
        public ManualControlModel(PrinterModel PrinterModel, SerialCommunicationOutgoingMessagesModel SerialCommunicationOutgoingMessagesModel,
                                  RealTimeStatusDataModel RealTimeStatusDataModel, ErrorListViewModel ErrorListViewModel)
        {
            _printerModel = PrinterModel;
            _serialCommunicationOutgoingMessagesModel = SerialCommunicationOutgoingMessagesModel;
            _realTimeStatusDataModel = RealTimeStatusDataModel;
            _errorListViewModel      = ErrorListViewModel;

            ParametersModel parametersModel = new ParametersModel(_printerModel, null);

            _writeSetPrintheadModel = new WriteSetPrintheadModel(parametersModel);
            _writeSetAxisModel      = new WriteSetAxisModel(parametersModel);
        }
        public SerialCommunicationCommandSetsModel(
            RealTimeStatusDataModel RealTimeStatusDataModel, SerialCommunicationMainModel SerialCommunicationMainModel, PrinterModel PrinterModel, PrintModel PrintModel, ErrorListViewModel ErrorListViewModel)
        {
            _realTimeStatusDataModel      = RealTimeStatusDataModel;
            _serialCommunicationMainModel = SerialCommunicationMainModel;
            _printerModel       = PrinterModel;
            _printModel         = PrintModel;
            _errorListViewModel = ErrorListViewModel;

            ParametersModel parametersModel = new ParametersModel(_printerModel, null);

            _writeSetAxisModel      = new WriteSetAxisModel(parametersModel);
            _setWritePrintheadModel = new SetWritePrintheadModel(parametersModel);
        }
Example #5
0
        /// <summary>
        /// Create new classes for the g-code converter.
        /// Place in the constructor and at the start of g-code conversion.
        /// </summary>
        private void InstantiateGCodeConverterClasses()
        {
            _parametersModel   = new ParametersModel(_printerModel, _errorListViewModel);
            _writeSetAxisModel = new WriteSetAxisModel(_parametersModel);
            _corneringModel    = new CorneringModel(_printerModel, _printModel, _parametersModel);

            _processG00CommandModel = new ProcessG00CommandModel(_printerModel, _parametersModel);
            _processG92CommandModel = new ProcessG92CommandModel(_parametersModel);
            _processTCommandModel   = new ProcessTCommandModel(_printModel, _printerModel, _realTimeStatusDataModel, _parametersModel);

            //Create a dummy Material with default parameters to be passed around until a user-set Material is in place.
            _currentMaterial = new MaterialModel("Unset", _printerModel);
            _currentMaterial.PrintheadModel = new PrintheadModel("Unset");
            _currentMaterial.PrintheadModel.AttachedZAxisModel = new AxisModel("Unset", 'I');
        }