Prepare for D_PAD -> PAD.
This commit is contained in:
parent
84dd5108ba
commit
2bc004eb0b
|
@ -701,7 +701,7 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryAreas( const SYMDEF_PCB& aComponent,
|
|||
|
||||
void CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryPads( const SYMDEF_PCB& aComponent, MODULE* aModule )
|
||||
{
|
||||
for( std::pair<PAD_ID, PAD> padPair : aComponent.Pads )
|
||||
for( std::pair<PAD_ID, COMPONENT_PAD> padPair : aComponent.ComponentPads )
|
||||
{
|
||||
D_PAD* pad = getKiCadPad( padPair.second, aModule );
|
||||
aModule->Add( pad,
|
||||
|
@ -711,7 +711,7 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryPads( const SYMDEF_PCB& aComponent,
|
|||
}
|
||||
|
||||
|
||||
D_PAD* CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad( const PAD& aCadstarPad, MODULE* aParent )
|
||||
D_PAD* CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad( const COMPONENT_PAD& aCadstarPad, MODULE* aParent )
|
||||
{
|
||||
PADCODE csPadcode = getPadCode( aCadstarPad.PadCodeID );
|
||||
|
||||
|
@ -1211,7 +1211,7 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadComponents()
|
|||
for( std::pair<PAD_ID, PADEXCEPTION> padPair : comp.PadExceptions )
|
||||
{
|
||||
PADEXCEPTION& padEx = padPair.second;
|
||||
PAD csPad = fpLibEntry.Pads.at( padPair.first );
|
||||
COMPONENT_PAD csPad = fpLibEntry.ComponentPads.at( padPair.first );
|
||||
|
||||
if( !padEx.PadCode.IsEmpty() )
|
||||
csPad.PadCodeID = padEx.PadCode;
|
||||
|
|
|
@ -338,7 +338,7 @@ private:
|
|||
|
||||
// Helper Functions for obtaining individual elements as KiCad elements:
|
||||
double getHatchCodeAngleDegrees( const HATCHCODE_ID& aCadstarHatchcodeID );
|
||||
D_PAD* getKiCadPad( const PAD& aCadstarPad, MODULE* aParent );
|
||||
D_PAD* getKiCadPad( const COMPONENT_PAD& aCadstarPad, MODULE* aParent );
|
||||
MODULE* getModuleFromCadstarID( const COMPONENT_ID& aCadstarComponentID );
|
||||
int getKiCadHatchCodeThickness( const HATCHCODE_ID& aCadstarHatchcodeID );
|
||||
int getKiCadHatchCodeGap( const HATCHCODE_ID& aCadstarHatchcodeID );
|
||||
|
|
|
@ -1136,7 +1136,7 @@ void CADSTAR_PCB_ARCHIVE_PARSER::PAD_EXITS::Parse( XNODE* aNode )
|
|||
}
|
||||
|
||||
|
||||
void CADSTAR_PCB_ARCHIVE_PARSER::PAD::Parse( XNODE* aNode )
|
||||
void CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_PAD::Parse( XNODE* aNode )
|
||||
{
|
||||
wxASSERT( aNode->GetName() == wxT( "PAD" ) );
|
||||
|
||||
|
@ -1540,9 +1540,9 @@ void CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::Parse( XNODE* aNode )
|
|||
}
|
||||
else if( cNodeName == wxT( "PAD" ) )
|
||||
{
|
||||
PAD pad;
|
||||
COMPONENT_PAD pad;
|
||||
pad.Parse( cNode );
|
||||
Pads.insert( std::make_pair( pad.ID, pad ) );
|
||||
ComponentPads.insert( std::make_pair( pad.ID, pad ) );
|
||||
}
|
||||
else if( cNodeName == wxT( "DIMENSIONS" ) )
|
||||
{
|
||||
|
|
|
@ -522,7 +522,7 @@ public:
|
|||
};
|
||||
|
||||
|
||||
struct PAD
|
||||
struct COMPONENT_PAD
|
||||
{
|
||||
PAD_ID ID;
|
||||
POINT Position; ///< Pad position within the component's coordinate frame.
|
||||
|
@ -544,11 +544,10 @@ public:
|
|||
///< removed from the existing pad when this new pad is added. The
|
||||
///< property is used by the 'First Pad' highlight when in a PCB
|
||||
///< design."
|
||||
bool PCBonlyPad =
|
||||
false; ///< From CADSTAR Help: "The PCB Only Pad property can be used to stop
|
||||
///< ECO Update, Back Annotation, and Design Comparison incorrectly
|
||||
///< acting on mechanical pads / components that only appear in the
|
||||
///< PCB design."
|
||||
bool PCBonlyPad = false; ///< From CADSTAR Help: "The PCB Only Pad property can be used to
|
||||
///< stop ECO Update, Back Annotation, and Design Comparison
|
||||
///< incorrectly acting on mechanical pads / components that only
|
||||
///< appear in the PCB design."
|
||||
|
||||
void Parse( XNODE* aNode );
|
||||
};
|
||||
|
@ -779,7 +778,7 @@ public:
|
|||
|
||||
std::vector<COMPONENT_COPPER> ComponentCoppers;
|
||||
std::map<COMP_AREA_ID, COMPONENT_AREA> ComponentAreas;
|
||||
std::map<PAD_ID, PAD> Pads;
|
||||
std::map<PAD_ID, COMPONENT_PAD> ComponentPads;
|
||||
std::map<DIMENSION_ID, DIMENSION> Dimensions; ///< inside "DIMENSIONS" subnode
|
||||
|
||||
void Parse( XNODE* aNode ) override;
|
||||
|
|
Loading…
Reference in New Issue