| 379 | |
| 380 | |
| 381 | void PS_PLOTTER::SetCurrentLineWidth( int aWidth, void* aData ) |
| 382 | { |
| 383 | wxASSERT( m_outputFile ); |
| 384 | |
| 385 | if( aWidth == DO_NOT_SET_LINE_WIDTH ) |
| 386 | return; |
| 387 | else if( aWidth == USE_DEFAULT_LINE_WIDTH ) |
| 388 | aWidth = m_renderSettings->GetDefaultPenWidth(); |
| 389 | else if( aWidth == 0 ) |
| 390 | aWidth = 1; |
| 391 | |
| 392 | wxASSERT_MSG( aWidth > 0, "Plotter called to set negative pen width" ); |
| 393 | |
| 394 | if( aWidth != GetCurrentLineWidth() ) |
| 395 | fmt::print( m_outputFile, "{:g} setlinewidth\n", userToDeviceSize( aWidth ) ); |
| 396 | |
| 397 | m_currentPenWidth = aWidth; |
| 398 | } |
| 399 | |
| 400 | |
| 401 | void PS_PLOTTER::emitSetRGBColor( double r, double g, double b, double a ) |
no test coverage detected