| 75 | |
| 76 | |
| 77 | bool PLOTTER::OpenFile( const wxString& aFullFilename ) |
| 78 | { |
| 79 | m_filename = aFullFilename; |
| 80 | |
| 81 | wxASSERT( !m_outputFile ); |
| 82 | |
| 83 | // Open the file in text mode (not suitable for all plotters but only for most of them. |
| 84 | m_outputFile = wxFopen( m_filename, wxT( "wt" ) ); |
| 85 | |
| 86 | if( m_outputFile == nullptr ) |
| 87 | return false ; |
| 88 | |
| 89 | return true; |
| 90 | } |
| 91 | |
| 92 | |
| 93 | VECTOR2D PLOTTER::userToDeviceCoordinates( const VECTOR2I& aCoordinate ) |
no outgoing calls