|
|
@ -551,7 +551,7 @@ void PCB_PLUGIN::formatRenderCache( const EDA_TEXT* aText, int aNestLevel ) cons |
|
|
|
|
|
|
|
m_out->Print( aNestLevel, "(render_cache %s %s\n", |
|
|
|
m_out->Quotew( shownText ).c_str(), |
|
|
|
FormatAngle( aText->GetDrawRotation() ).c_str() ); |
|
|
|
EDA_UNIT_UTILS::FormatAngle( aText->GetDrawRotation() ).c_str() ); |
|
|
|
|
|
|
|
for( const std::unique_ptr<KIFONT::GLYPH>& baseGlyph : *cache ) |
|
|
|
{ |
|
|
@ -1221,7 +1221,7 @@ void PCB_PLUGIN::format( const FOOTPRINT* aFootprint, int aNestLevel ) const |
|
|
|
FormatInternalUnits( aFootprint->GetPosition() ).c_str() ); |
|
|
|
|
|
|
|
if( !aFootprint->GetOrientation().IsZero() ) |
|
|
|
m_out->Print( 0, " %s", FormatAngle( aFootprint->GetOrientation() ).c_str() ); |
|
|
|
m_out->Print( 0, " %s", EDA_UNIT_UTILS::FormatAngle( aFootprint->GetOrientation() ).c_str() ); |
|
|
|
|
|
|
|
m_out->Print( 0, ")\n" ); |
|
|
|
} |
|
|
@ -1554,7 +1554,7 @@ void PCB_PLUGIN::format( const PAD* aPad, int aNestLevel ) const |
|
|
|
m_out->Print( 0, " (at %s", FormatInternalUnits( aPad->GetPos0() ).c_str() ); |
|
|
|
|
|
|
|
if( !aPad->GetOrientation().IsZero() ) |
|
|
|
m_out->Print( 0, " %s", FormatAngle( aPad->GetOrientation() ).c_str() ); |
|
|
|
m_out->Print( 0, " %s", EDA_UNIT_UTILS::FormatAngle( aPad->GetOrientation() ).c_str() ); |
|
|
|
|
|
|
|
m_out->Print( 0, ")" ); |
|
|
|
|
|
|
@ -1707,7 +1707,7 @@ void PCB_PLUGIN::format( const PAD* aPad, int aNestLevel ) const |
|
|
|
|| ( aPad->GetShape() != PAD_SHAPE::CIRCLE && aPad->GetThermalSpokeAngle() != ANGLE_90 ) ) |
|
|
|
{ |
|
|
|
StrPrintf( &output, " (thermal_bridge_angle %s)", |
|
|
|
FormatAngle( aPad->GetThermalSpokeAngle() ).c_str() ); |
|
|
|
EDA_UNIT_UTILS::FormatAngle( aPad->GetThermalSpokeAngle() ).c_str() ); |
|
|
|
} |
|
|
|
|
|
|
|
if( aPad->GetThermalGap() != 0 ) |
|
|
@ -1847,7 +1847,7 @@ void PCB_PLUGIN::format( const PCB_TEXT* aText, int aNestLevel ) const |
|
|
|
|
|
|
|
|
|
|
|
if( !aText->GetTextAngle().IsZero() ) |
|
|
|
m_out->Print( 0, " %s", FormatAngle( aText->GetTextAngle() ).c_str() ); |
|
|
|
m_out->Print( 0, " %s", EDA_UNIT_UTILS::FormatAngle( aText->GetTextAngle() ).c_str() ); |
|
|
|
|
|
|
|
m_out->Print( 0, ")" ); |
|
|
|
|
|
|
@ -1894,7 +1894,7 @@ void PCB_PLUGIN::format( const PCB_TEXTBOX* aTextBox, int aNestLevel ) const |
|
|
|
} |
|
|
|
|
|
|
|
if( !aTextBox->GetTextAngle().IsZero() ) |
|
|
|
m_out->Print( 0, " (angle %s)", FormatAngle( aTextBox->GetTextAngle() ).c_str() ); |
|
|
|
m_out->Print( 0, " (angle %s)", EDA_UNIT_UTILS::FormatAngle( aTextBox->GetTextAngle() ).c_str() ); |
|
|
|
|
|
|
|
formatLayer( aTextBox->GetLayer() ); |
|
|
|
|
|
|
@ -1987,7 +1987,7 @@ void PCB_PLUGIN::format( const FP_TEXT* aText, int aNestLevel ) const |
|
|
|
} |
|
|
|
|
|
|
|
if( !orient.IsZero() ) |
|
|
|
m_out->Print( 0, " %s", FormatAngle( orient ).c_str() ); |
|
|
|
m_out->Print( 0, " %s", EDA_UNIT_UTILS::FormatAngle( orient ).c_str() ); |
|
|
|
|
|
|
|
if( !aText->IsKeepUpright() ) |
|
|
|
m_out->Print( 0, " unlocked" ); |
|
|
@ -2038,7 +2038,7 @@ void PCB_PLUGIN::format( const FP_TEXTBOX* aTextBox, int aNestLevel ) const |
|
|
|
} |
|
|
|
|
|
|
|
if( !aTextBox->GetTextAngle().IsZero() ) |
|
|
|
m_out->Print( 0, " (angle %s)", FormatAngle( aTextBox->GetTextAngle() ).c_str() ); |
|
|
|
m_out->Print( 0, " (angle %s)", EDA_UNIT_UTILS::FormatAngle( aTextBox->GetTextAngle() ).c_str() ); |
|
|
|
|
|
|
|
formatLayer( aTextBox->GetLayer() ); |
|
|
|
|
|
|
|