MCPcopy Create free account
hub / github.com/andybarry/makerscanner / WriteToFile

Method WriteToFile

ActiveStereoMain.cpp:408–420  ·  view source on GitHub ↗

catch a write to file event the string to write is in the event write to the point cloud file

Source from the content-addressed store, hash-verified

406// the string to write is in the event
407// write to the point cloud file
408void ActiveStereoFrame::WriteToFile(wxCommandEvent &event)
409{
410 wxString FilesWritten = wxT("");
411 //static int i = 0; // monitor how many times we do file writes
412 //if (i==0) txtLog->AppendText(wxT("\nWriting topoint cloud file: "));
413 //i++;
414 //FilesWritten << i << wxT(" ");
415 wxFFile file(pointcloudFilename, wxT("a"));
416 file.Write(event.GetString());
417 if (file.IsOpened()) txtLog->AppendText(FilesWritten);
418 else txtLog->AppendText(wxT("Point cloud file did not open!"));
419 file.Close();
420}
421
422// Camera connect button clicked -- attempt to connect to the camera
423void ActiveStereoFrame::OnButCameraConnectClick(wxCommandEvent& event)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected