MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / createFile

Method createFile

static_libs/thermal/thermalform.cpp:185–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183void ThermalForm::on_leName_textChanged(const QString& arg1) { m_fileName = arg1; }
184
185void ThermalForm::createFile()
186{
187 if (!tool.isValid()) {
188 tool.errorMessageBox(this);
189 return;
190 }
191
192 Paths wPaths;
193 Pathss wBridgePaths;
194
195 for (auto& item : m_sourcePreview) {
196 if (item->isValid()) {
197 wPaths.append(item->paths());
198 wBridgePaths.push_back(item->bridge());
199 }
200 }
201
202 GCode::GCodeParams gpc;
203 gpc.setConvent(true);
204 gpc.setSide(GCode::Outer);
205 gpc.tools.push_back(tool);
206 gpc.params[GCode::GCodeParams::Depth] = ui->dsbxDepth->value();
207 gpc.params[GCode::GCodeParams::FileId] = static_cast<FileInterface*>(ui->cbxFile->currentData().value<void*>())->id();
208 gpc.params[GCode::GCodeParams::IgnoreCopper] = ui->chbxIgnoreCopper->isChecked();
209 m_tpc->setGcp(gpc);
210 m_tpc->addPaths(wPaths);
211 m_tpc->addSupportPaths(wBridgePaths);
212 fileCount = 1;
213 emit createToolpath();
214}
215
216void ThermalForm::updateName()
217{

Callers

nothing calls this directly

Calls 14

errorMessageBoxMethod · 0.80
bridgeMethod · 0.80
setConventMethod · 0.80
isCheckedMethod · 0.80
setGcpMethod · 0.80
addPathsMethod · 0.80
addSupportPathsMethod · 0.80
isValidMethod · 0.45
appendMethod · 0.45
pathsMethod · 0.45
push_backMethod · 0.45
setSideMethod · 0.45

Tested by

no test coverage detected