catch a write to file event the string to write is in the event write to the point cloud file
| 406 | // the string to write is in the event |
| 407 | // write to the point cloud file |
| 408 | void 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 |
| 423 | void ActiveStereoFrame::OnButCameraConnectClick(wxCommandEvent& event) |
nothing calls this directly
no outgoing calls
no test coverage detected