|
KiCad PCB EDA Suite
|
#include <odb_feature.h>
Public Member Functions | |
| FEATURES_MANAGER (BOARD *aBoard, PCB_IO_ODBPP *aPlugin, const wxString &aLayerName, ODB_LAYER_ROLE aRole, std::optional< ODB_AUX_LAYER_TYPE > aAuxType, std::optional< DRILL_SPAN > aDrillSpan=std::nullopt) | |
| void | AddPad (PCB_LAYER_ID aLayer, PAD *pad) |
| void | AddDimension (PCB_LAYER_ID aLayer, PCB_DIMENSION_BASE *dimension) |
| void | AddShape (PCB_LAYER_ID aLayer, PCB_SHAPE *shape) |
| void | AddText (PCB_LAYER_ID aLayer, BOARD_ITEM *item, RESOLUTION_CONTEXT aContext) |
| void | AddZone (PCB_LAYER_ID aLayer, ZONE *zone) |
| void | AddTrack (PCB_LAYER_ID aLayer, PCB_TRACK *track) |
| void | InitFeatureList (PCB_LAYER_ID aLayer, const std::vector< BOARD_ITEM * > &aItems) |
| void | AddFeatureLine (const VECTOR2I &aStart, const VECTOR2I &aEnd, uint64_t aWidth) |
| void | AddFeatureArc (const VECTOR2I &aStart, const VECTOR2I &aEnd, const VECTOR2I &aCenter, uint64_t aWidth, ODB_DIRECTION aDirection) |
| void | AddRoutContour (const SHAPE_LINE_CHAIN &aContour, int aChain, bool aPlated) |
| void | AddRoutSlot (const PAD &aPad, int aChain) |
| void | AddPadCircle (const VECTOR2I &aCenter, uint64_t aDiameter) |
| void | AddPadShape (const PAD &aPad, PCB_LAYER_ID aLayer) |
| bool | AddFeatureSurface (const SHAPE_POLY_SET::POLYGON &aPolygon, FILL_T aFillType=FILL_T::FILLED_SHAPE) |
| size_t | FeatureCount () const |
| void | AddShape (const PCB_SHAPE &aShape, PCB_LAYER_ID aLayer=UNDEFINED_LAYER) |
| void | AddVia (const PCB_VIA *aVia, PCB_LAYER_ID aLayer) |
| bool | AddViaDrillHole (const PCB_VIA *aVia, PCB_LAYER_ID aLayer) |
| void | AddViaProtection (const PCB_VIA *aVia, bool drill, PCB_LAYER_ID aLayer) |
| bool | AddContour (const SHAPE_POLY_SET &aPolySet, int aOutline=0, FILL_T aFillType=FILL_T::FILLED_SHAPE) |
| bool | AddPolygon (const SHAPE_POLY_SET::POLYGON &aPolygon, FILL_T aFillType, int aWidth, LINE_STYLE aDashType) |
| bool | AddPolygonCutouts (const SHAPE_POLY_SET::POLYGON &aPolygon) |
| void | GenerateFeatureFile (std::ostream &ost) const |
| void | GenerateProfileFeatures (std::ostream &ost) const |
| template<typename Tr, typename Ta> | |
| void | AddSystemAttribute (Tr &r, Ta v) |
| template<typename Tr, typename Ta> | |
| void | AddUserDefAttribute (Tr &r, Ta v) |
Protected Member Functions | |
| size_t | GetAttrNameNumber (const wxString &name) |
| void | WriteAttributes (std::ostream &ost, const std::string &prefix="") const |
| void | WriteAttributesName (std::ostream &ost, const std::string &prefix="") const |
| void | WriteAttributesText (std::ostream &ost, const std::string &prefix="") const |
Private Member Functions | |
| uint32_t | AddCircleSymbol (const wxString &aDiameter) |
| uint32_t | AddRoundDonutSymbol (const wxString &aOuterDim, const wxString &aInnerDim) |
| uint32_t | AddRectSymbol (const wxString &aWidth, const wxString &aHeight) |
| uint32_t | AddOvalSymbol (const wxString &aWidth, const wxString &aHeight) |
| uint32_t | AddRoundRectSymbol (const wxString &aWidth, const wxString &aHeight, const wxString &aRadius) |
| uint32_t | AddRoundRectDonutSymbol (const wxString &aOuterWidth, const wxString &aOuterHeight, const wxString &aLineWidth, const wxString &aRadius) |
| uint32_t | AddChamferRectSymbol (const wxString &aWidth, const wxString &aHeight, const wxString &aRadius, int aPositions) |
| uint32_t | GetSymbolIndex (std::map< wxString, uint32_t > &aSymMap, const wxString &aKey) |
| void | tagRoutFeatures (size_t aFirst, int aChain, bool aPlated) |
| void | addViaDrillAttributes (ODB_FEATURE &aFeature, const PCB_VIA *aVia) |
| void | addPostMachiningAttributes (ODB_FEATURE &aFeature, const DRILL_OPERATION &aOperation) |
| template<typename T, typename... Args> | |
| void | AddFeature (Args &&... args) |
| template<typename F> | |
| void | forEachNewFeature (size_t aFirst, F &&aFunc) |
| PCB_IO_ODBPP * | GetODBPlugin () |
| size_t | GetAttrTextNumber (const wxString &aName) |
| size_t | GetTextIndex (std::unordered_map< std::string, size_t > &aMap, std::vector< std::pair< size_t, std::string > > &aVec, const std::string &aText) |
| template<typename T, unsigned int n> | |
| std::string | AttrValue2String (ODB_ATTR::FloatAttribute< T, n > a) |
| template<typename T> | |
| std::string | AttrValue2String (ODB_ATTR::BooleanAttribute< T > a) |
| template<typename T> | |
| std::string | AttrValue2String (ODB_ATTR::TextAttribute< T > a) |
| template<typename T> | |
| std::string | AttrValue2String (ODB_ATTR::ListTextAttribute< T > a) |
| template<typename T> | |
| std::string | AttrValue2String (ODB_ATTR::IntegerAttribute< T > a) |
Static Private Member Functions | |
| template<typename Ta> | |
| static bool | isEmptyText (const Ta &v) |
| An empty TEXT value is the attribute's default and has no legal text table entry. | |
Private Attributes | |
| std::map< wxString, uint32_t > | m_circleSymMap |
| std::map< wxString, uint32_t > | m_roundDonutSymMap |
| std::map< wxString, uint32_t > | m_padSymMap |
| std::map< wxString, uint32_t > | m_rectSymMap |
| std::map< wxString, uint32_t > | m_ovalSymMap |
| std::map< wxString, uint32_t > | m_roundRectSymMap |
| std::map< wxString, uint32_t > | m_roundRectDonutSymMap |
| std::map< wxString, uint32_t > | m_chamRectSymMap |
| std::map< uint32_t, wxString > | m_allSymMap |
| BOARD * | m_board |
| PCB_IO_ODBPP * | m_plugin |
| wxString | m_layerName |
| ODB_LAYER_ROLE | m_role |
| std::optional< ODB_AUX_LAYER_TYPE > | m_auxType |
| std::optional< DRILL_SPAN > | m_drillSpan |
| uint32_t | m_symIndex = 0 |
| std::list< std::unique_ptr< ODB_FEATURE > > | m_featuresList |
| std::unordered_map< std::string, size_t > | m_attrNames |
| std::vector< std::pair< size_t, std::string > > | m_attrNameVec |
| std::unordered_map< std::string, size_t > | m_attrTexts |
| std::vector< std::pair< size_t, std::string > > | m_attrTextVec |
Definition at line 55 of file odb_feature.h.
|
inline |
Definition at line 58 of file odb_feature.h.
References m_auxType, m_board, m_drillSpan, m_layerName, m_plugin, and m_role.
|
inlineprivate |
Definition at line 153 of file odb_feature.h.
References GetSymbolIndex(), m_chamRectSymMap, ODB_DIM_C, ODB_DIM_X, RECT_CHAMFER_ALL, RECT_CHAMFER_BOTTOM_LEFT, RECT_CHAMFER_BOTTOM_RIGHT, RECT_CHAMFER_TOP_LEFT, and RECT_CHAMFER_TOP_RIGHT.
Referenced by AddPadShape().
|
inlineprivate |
Definition at line 115 of file odb_feature.h.
References GetSymbolIndex(), and m_circleSymMap.
Referenced by AddFeatureArc(), AddFeatureLine(), AddPadCircle(), AddPadShape(), and AddShape().
| bool FEATURES_MANAGER::AddContour | ( | const SHAPE_POLY_SET & | aPolySet, |
| int | aOutline = 0, | ||
| FILL_T | aFillType = FILL_T::FILLED_SHAPE ) |
Definition at line 148 of file odb_feature.cpp.
References AddFeatureSurface(), SHAPE_POLY_SET::OutlineCount(), and SHAPE_POLY_SET::Polygon().
Referenced by AddPadShape(), AddShape(), AddText(), AddZone(), and InitFeatureList().
| void FEATURES_MANAGER::AddDimension | ( | PCB_LAYER_ID | aLayer, |
| PCB_DIMENSION_BASE * | dimension ) |
Definition at line 911 of file odb_feature.cpp.
References SEG::A, AddShape(), AddText(), SEG::B, center, CIRCLE, FOR_CANVAS, BOARD_ITEM::GetLayer(), PCB_DIMENSION_BASE::GetLineThickness(), SHAPE_CIRCLE::GetRadius(), SHAPE_SEGMENT::GetSeg(), PCB_DIMENSION_BASE::GetShapes(), radius, SEGMENT, PCB_SHAPE::SetEnd(), EDA_SHAPE::SetFilled(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetShape(), PCB_SHAPE::SetStart(), PCB_SHAPE::SetStroke(), SH_CIRCLE, SH_SEGMENT, and SOLID.
Referenced by InitFeatureList().
|
inlineprivate |
Definition at line 207 of file odb_feature.h.
References m_featuresList.
Referenced by AddFeatureArc(), AddFeatureLine(), AddFeatureSurface(), AddPadCircle(), AddPadShape(), and AddShape().
| void FEATURES_MANAGER::AddFeatureArc | ( | const VECTOR2I & | aStart, |
| const VECTOR2I & | aEnd, | ||
| const VECTOR2I & | aCenter, | ||
| uint64_t | aWidth, | ||
| ODB_DIRECTION | aDirection ) |
Definition at line 67 of file odb_feature.cpp.
References AddCircleSymbol(), AddFeature(), ODB::AddXY(), m_plugin, and ODB::SymDouble2String().
Referenced by AddRoutContour(), and AddShape().
| void FEATURES_MANAGER::AddFeatureLine | ( | const VECTOR2I & | aStart, |
| const VECTOR2I & | aEnd, | ||
| uint64_t | aWidth ) |
Definition at line 59 of file odb_feature.cpp.
References AddCircleSymbol(), AddFeature(), ODB::AddXY(), m_plugin, and ODB::SymDouble2String().
Referenced by AddPad(), AddRoutContour(), AddRoutSlot(), AddShape(), AddTrack(), and InitFeatureList().
| bool FEATURES_MANAGER::AddFeatureSurface | ( | const SHAPE_POLY_SET::POLYGON & | aPolygon, |
| FILL_T | aFillType = FILL_T::FILLED_SHAPE ) |
Definition at line 373 of file odb_feature.cpp.
References AddFeature().
Referenced by AddContour().
|
inlineprivate |
Definition at line 132 of file odb_feature.h.
References GetSymbolIndex(), m_ovalSymMap, and ODB_DIM_X.
Referenced by AddPadShape().
| void FEATURES_MANAGER::AddPad | ( | PCB_LAYER_ID | aLayer, |
| PAD * | pad ) |
Definition at line 958 of file odb_feature.cpp.
References std::abs(), AddFeatureLine(), AddPadCircle(), AddPadShape(), addPostMachiningAttributes(), ATTR_MANAGER::AddSystemAttribute(), BACKDRILL, delta, DRILL, end, FeatureCount(), FIDUCIAL_GLOBAL, FIDUCIAL_LOCAL, forEachNewFeature(), ODB_ATTR::G_FIDUCIAL, GetFabPadRole(), GetODBPlugin(), PCB_IO_ODBPP::GetPadSubnetMap(), index, DRILL_OPERATION::IsBackdrill(), IsCopperLayer(), ODB_ATTR::L_FIDUCIAL, DRILL_OPERATION::m_Diameter, m_drillSpan, DRILL_OPERATION::m_IsSlot, m_layerName, DRILL_OPERATION::m_Orientation, m_plugin, DRILL_OPERATION::m_Position, m_role, DRILL_OPERATION::m_SizeXY, ODB_ATTR::NON_PLATED, pad, ODB_ATTR::PLATED, ODB_ATTR::PRESS_FIT, PRESSFIT, PTH, RotatePoint(), TESTPOINT, ODB_ATTR::TOEPRINT, TOOLING_HOLE, ODB_ATTR::TOOLING_HOLE, traceOdbppIo, UNDEFINED_LAYER, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by InitFeatureList().
| void FEATURES_MANAGER::AddPadCircle | ( | const VECTOR2I & | aCenter, |
| uint64_t | aDiameter ) |
Definition at line 141 of file odb_feature.cpp.
References AddCircleSymbol(), AddFeature(), ODB::AddXY(), m_plugin, and ODB::SymDouble2String().
Referenced by AddPad(), and AddViaDrillHole().
| void FEATURES_MANAGER::AddPadShape | ( | const PAD & | aPad, |
| PCB_LAYER_ID | aLayer ) |
Definition at line 384 of file odb_feature.cpp.
References std::abs(), AddChamferRectSymbol(), AddCircleSymbol(), AddContour(), AddFeature(), AddOvalSymbol(), AddRectSymbol(), AddRoundRectSymbol(), ODB::AddXY(), center, chamfer, CHAMFERED_RECT, CIRCLE, PAD_LAYER_GEOMETRY::CornerRadius(), CUSTOM, PAD::GetChamferPositions(), PAD::GetChamferRectRatio(), PAD::GetOrientation(), PAD::GetRoundRectCornerRadius(), PAD::GetShape(), PAD::GetSize(), PAD_LAYER_GEOMETRY::IsEmpty(), KiROUND(), m_board, m_plugin, PAD_LAYER_GEOMETRY::Margin(), SHAPE_POLY_SET::OutlineCount(), OVAL, PAD_LAYER_GEOMETRY::Pad(), PAD_LAYER_GEOMETRY::Polygon(), RECTANGLE, ResolvePadLayer(), ROUNDRECT, PAD::ShapePos(), ODB::SymDouble2String(), traceOdbppIo, TRAPEZOID, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by AddPad(), AddVia(), and AddViaDrillHole().
| bool FEATURES_MANAGER::AddPolygon | ( | const SHAPE_POLY_SET::POLYGON & | aPolygon, |
| FILL_T | aFillType, | ||
| int | aWidth, | ||
| LINE_STYLE | aDashType ) |
| bool FEATURES_MANAGER::AddPolygonCutouts | ( | const SHAPE_POLY_SET::POLYGON & | aPolygon | ) |
|
private |
Definition at line 488 of file odb_feature.cpp.
References ATTR_MANAGER::AddUserDefAttribute(), ODB_ATTR::COUNTERBORE, COUNTERBORE, ODB_ATTR::COUNTERSINK, COUNTERSINK, DRILL_POST_MACHINING::m_Angle, DRILL_OPERATION::m_BackPostMachining, DRILL_POST_MACHINING::m_Depth, DRILL_OPERATION::m_FrontPostMachining, DRILL_POST_MACHINING::m_Mode, m_plugin, DRILL_POST_MACHINING::m_Size, and ODB_FORMAT::m_symbolScale.
Referenced by AddPad(), and addViaDrillAttributes().
|
inlineprivate |
Definition at line 126 of file odb_feature.h.
References GetSymbolIndex(), m_rectSymMap, and ODB_DIM_X.
Referenced by AddPadShape(), and AddShape().
|
inlineprivate |
Definition at line 120 of file odb_feature.h.
References GetSymbolIndex(), m_roundDonutSymMap, and ODB_DIM_X.
Referenced by AddShape().
|
inlineprivate |
Definition at line 145 of file odb_feature.h.
References GetSymbolIndex(), m_roundRectDonutSymMap, ODB_DIM_R, and ODB_DIM_X.
|
inlineprivate |
Definition at line 138 of file odb_feature.h.
References GetSymbolIndex(), m_roundRectSymMap, ODB_DIM_R, and ODB_DIM_X.
Referenced by AddPadShape().
| void FEATURES_MANAGER::AddRoutContour | ( | const SHAPE_LINE_CHAIN & | aContour, |
| int | aChain, | ||
| bool | aPlated ) |
Definition at line 81 of file odb_feature.cpp.
References AddFeatureArc(), AddFeatureLine(), SHAPE_LINE_CHAIN::Arc(), SHAPE_LINE_CHAIN::ArcIndex(), CCW, SHAPE_LINE_CHAIN::CPoint(), CW, FeatureCount(), SHAPE_ARC::GetCenter(), SHAPE_ARC::GetP0(), SHAPE_ARC::GetP1(), SHAPE_LINE_CHAIN::IsArcStart(), SHAPE_ARC::IsClockwise(), next(), SHAPE_LINE_CHAIN::NextShape(), SHAPE_LINE_CHAIN::PointCount(), and tagRoutFeatures().
| void FEATURES_MANAGER::AddRoutSlot | ( | const PAD & | aPad, |
| int | aChain ) |
Definition at line 114 of file odb_feature.cpp.
References AddFeatureLine(), FeatureCount(), PAD::GetAttribute(), PAD::GetEffectiveHoleShape(), PTH, and tagRoutFeatures().
| void FEATURES_MANAGER::AddShape | ( | const PCB_SHAPE & | aShape, |
| PCB_LAYER_ID | aLayer = UNDEFINED_LAYER ) |
Definition at line 160 of file odb_feature.cpp.
References SEG::A, std::abs(), AddCircleSymbol(), AddContour(), AddFeature(), AddFeatureArc(), AddFeatureLine(), SHAPE_POLY_SET::AddOutline(), AddRectSymbol(), AddRoundDonutSymbol(), ODB::AddXY(), ARC, SEG::B, B_Mask, BEZIER, SHAPE_POLY_SET::BooleanAdd(), CCW, center, chain, CHAMFER_ALL_CORNERS, CIRCLE, SHAPE_POLY_SET::CloneDropTriangulation(), LSET::Contains(), SHAPE_ELLIPSE::ConvertToPolyline(), SHAPE_POLY_SET::COutline(), SHAPE_LINE_CHAIN::CSegment(), CW, SHAPE_POLY_SET::Deflate(), ELLIPSE, ELLIPSE_ARC, ERROR_OUTSIDE, F_Mask, FILLED_SHAPE, SHAPE_POLY_SET::Fracture(), EDA_SHAPE::GetBezierPoints(), PCB_SHAPE::GetCenter(), EDA_SHAPE::GetEllipseCenter(), EDA_SHAPE::GetEllipseEndAngle(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), EDA_SHAPE::GetEllipseStartAngle(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetHatching(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetRadius(), EDA_SHAPE::GetRectangleHeight(), EDA_SHAPE::GetRectangleWidth(), EDA_SHAPE::GetRectCorners(), EDA_SHAPE::GetShape(), ODB::GetShapePosition(), EDA_SHAPE::GetStart(), PCB_SHAPE::GetWidth(), EDA_SHAPE::IsClockwiseArc(), EDA_SHAPE::IsHatchedFill(), EDA_SHAPE::IsSolidFill(), m_board, m_plugin, SHAPE_POLY_SET::OutlineCount(), POLY, RECTANGLE, SEGMENT, SHAPE_POLY_SET::Simplify(), ODB::SymDouble2String(), traceOdbppIo, PCB_SHAPE::TransformShapeToPolygon(), and UNDEFINED_LAYER.
| void FEATURES_MANAGER::AddShape | ( | PCB_LAYER_ID | aLayer, |
| PCB_SHAPE * | shape ) |
Definition at line 904 of file odb_feature.cpp.
References AddShape().
Referenced by AddDimension(), AddShape(), AddText(), AddTrack(), and InitFeatureList().
|
inlineinherited |
Definition at line 370 of file odb_attribute.h.
References AttrValue2String(), GetAttrNameNumber(), isEmptyText(), and name.
Referenced by COMPONENTS_MANAGER::AddComponent(), FEATURES_MANAGER::AddPad(), FEATURES_MANAGER::AddText(), FEATURES_MANAGER::AddTrack(), FEATURES_MANAGER::addViaDrillAttributes(), FEATURES_MANAGER::AddZone(), and FEATURES_MANAGER::tagRoutFeatures().
| void FEATURES_MANAGER::AddText | ( | PCB_LAYER_ID | aLayer, |
| BOARD_ITEM * | item, | ||
| RESOLUTION_CONTEXT | aContext ) |
Definition at line 701 of file odb_feature.cpp.
References AddContour(), SHAPE_POLY_SET::AddOutline(), AddShape(), ATTR_MANAGER::AddSystemAttribute(), ERROR_INSIDE, FeatureCount(), FILLED_SHAPE, forEachNewFeature(), SHAPE_POLY_SET::Fracture(), EDA_TEXT::GetAttributes(), EDA_TEXT::GetDrawFont(), EDA_TEXT::GetDrawRotation(), EDA_TEXT::GetEffectiveTextPenWidth(), BOARD_ITEM::GetFontMetrics(), EDA_TEXT::GetLinePositions(), GetPenSizeForBold(), EDA_TEXT::GetShownText(), EDA_TEXT::GetTextPos(), BOARD_ITEM::IsKnockout(), EDA_TEXT::IsMultilineAllowed(), EDA_TEXT::IsVisible(), TEXT_ATTRIBUTES::m_Angle, m_board, TEXT_ATTRIBUTES::m_Bold, TEXT_ATTRIBUTES::m_Multiline, TEXT_ATTRIBUTES::m_Size, TEXT_ATTRIBUTES::m_StrokeWidth, SHAPE_POLY_SET::OutlineCount(), PCB_FIELD_T, PCB_TEXT_T, PCB_TEXTBOX_T, SEGMENT, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetStart(), PCB_SHAPE::SetWidth(), text, PCB_TEXTBOX::TransformTextToPolySet(), EDA_ITEM::Type(), wxStringSplit(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by AddDimension(), and InitFeatureList().
| void FEATURES_MANAGER::AddTrack | ( | PCB_LAYER_ID | aLayer, |
| PCB_TRACK * | track ) |
Definition at line 547 of file odb_feature.cpp.
References AddFeatureLine(), AddShape(), ATTR_MANAGER::AddSystemAttribute(), AddVia(), addViaDrillAttributes(), AddViaDrillHole(), ARC, BACKDRILL, BOARD_LAYER, CAPPING, DRILL, end, FabTrackWidth(), FeatureCount(), FILLING, forEachNewFeature(), PCB_TRACK::GetEnd(), PCB_ARC::GetMid(), GetODBPlugin(), PCB_TRACK::GetStart(), PCB_IO_ODBPP::GetViaTraceSubnetMap(), index, IsCopperLayer(), PCB_ARC::IsDegenerated(), ODB_ATTR::LASER, m_auxType, m_layerName, m_role, MICROVIA, ODB_ATTR::NON_PLATED, PCB_ARC_T, PCB_TRACE_T, PLUGGING, SEGMENT, PCB_SHAPE::SetArcGeometry(), PCB_SHAPE::SetEnd(), PCB_SHAPE::SetStart(), PCB_SHAPE::SetWidth(), traceOdbppIo, EDA_ITEM::Type(), ODB_ATTR::VIA, via, and VIA_PROTECTION.
Referenced by InitFeatureList().
|
inlineinherited |
Definition at line 385 of file odb_attribute.h.
References AttrValue2String(), GetAttrNameNumber(), and isEmptyText().
Referenced by FEATURES_MANAGER::addPostMachiningAttributes().
| void FEATURES_MANAGER::AddVia | ( | const PCB_VIA * | aVia, |
| PCB_LAYER_ID | aLayer ) |
Definition at line 1183 of file odb_feature.cpp.
References AddPadShape(), dummy, PCB_VIA::FlashLayer(), PCB_TRACK::GetStart(), and PCB_VIA::Padstack().
Referenced by AddTrack().
|
private |
Definition at line 521 of file odb_feature.cpp.
References addPostMachiningAttributes(), ATTR_MANAGER::AddSystemAttribute(), DRILL, ODB::IpcViaType(), m_drillSpan, m_plugin, m_role, and ODB::ViaInPad().
Referenced by AddTrack().
| bool FEATURES_MANAGER::AddViaDrillHole | ( | const PCB_VIA * | aVia, |
| PCB_LAYER_ID | aLayer ) |
Definition at line 1196 of file odb_feature.cpp.
References AddPadCircle(), AddPadShape(), PADSTACK::ALL_LAYERS, BACKDRILL, PCB_VIA::BottomLayer(), CIRCLE, dummy, PCB_TRACK::GetStart(), DRILL_OPERATION::m_Diameter, m_drillSpan, m_plugin, DRILL_OPERATION::m_Position, m_role, PADSTACK::NORMAL, and PCB_VIA::TopLayer().
Referenced by AddTrack().
| void FEATURES_MANAGER::AddViaProtection | ( | const PCB_VIA * | aVia, |
| bool | drill, | ||
| PCB_LAYER_ID | aLayer ) |
References FILLED_SHAPE.
| void FEATURES_MANAGER::AddZone | ( | PCB_LAYER_ID | aLayer, |
| ZONE * | zone ) |
Definition at line 665 of file odb_feature.cpp.
References AddContour(), EDA_DATA::SUB_NET::AddFeatureID(), ATTR_MANAGER::AddSystemAttribute(), SHAPE_POLY_SET::CloneDropTriangulation(), end, FeatureCount(), forEachNewFeature(), ZONE::GetFilledPolysList(), GetODBPlugin(), PCB_IO_ODBPP::GetPlaneSubnetMap(), index, IsCopperLayer(), ZONE::IsTeardropArea(), m_layerName, SHAPE_POLY_SET::OutlineCount(), and traceOdbppIo.
Referenced by InitFeatureList().
|
inlineprivateinherited |
Definition at line 429 of file odb_attribute.h.
|
inlineprivateinherited |
Definition at line 423 of file odb_attribute.h.
References ODB_ATTR::FloatAttribute< T, N >::digits, ODB::Double2String(), and ODB_ATTR::AttributeBase< T, AttrType >::value.
Referenced by AddSystemAttribute(), and AddUserDefAttribute().
|
inlineprivateinherited |
Definition at line 447 of file odb_attribute.h.
References ODB_ATTR::AttributeBase< T, AttrType >::value.
|
inlineprivateinherited |
Definition at line 441 of file odb_attribute.h.
References GetTextIndex(), m_attrTexts, m_attrTextVec, and ODB_ATTR::AttributeBase< T, AttrType >::value.
|
inlineprivateinherited |
Definition at line 435 of file odb_attribute.h.
References GetAttrTextNumber(), and ODB_ATTR::AttributeBase< T, AttrType >::value.
|
inline |
Definition at line 92 of file odb_feature.h.
References m_featuresList.
Referenced by AddPad(), AddRoutContour(), AddRoutSlot(), AddText(), AddTrack(), AddZone(), and InitFeatureList().
|
inlineprivate |
Definition at line 215 of file odb_feature.h.
References F, index, and m_featuresList.
Referenced by AddPad(), AddText(), AddTrack(), AddZone(), and tagRoutFeatures().
| void FEATURES_MANAGER::GenerateFeatureFile | ( | std::ostream & | ost | ) | const |
Definition at line 1247 of file odb_feature.cpp.
References m_allSymMap, m_featuresList, m_plugin, ODB_FORMAT::m_unitsStr, name, and ATTR_MANAGER::WriteAttributes().
| void FEATURES_MANAGER::GenerateProfileFeatures | ( | std::ostream & | ost | ) | const |
Definition at line 1228 of file odb_feature.cpp.
References m_featuresList, m_plugin, and ODB_FORMAT::m_unitsStr.
|
protectedinherited |
Definition at line 45 of file odb_attribute.cpp.
References GetTextIndex(), m_attrNames, and m_attrNameVec.
Referenced by AddSystemAttribute(), and AddUserDefAttribute().
|
privateinherited |
Definition at line 51 of file odb_attribute.cpp.
References GetTextIndex(), m_attrTexts, and m_attrTextVec.
Referenced by AttrValue2String().
|
inlineprivate |
Definition at line 223 of file odb_feature.h.
References m_plugin.
Referenced by AddPad(), AddTrack(), AddZone(), and InitFeatureList().
|
inlineprivate |
Definition at line 175 of file odb_feature.h.
References index, m_allSymMap, and m_symIndex.
Referenced by AddChamferRectSymbol(), AddCircleSymbol(), AddOvalSymbol(), AddRectSymbol(), AddRoundDonutSymbol(), AddRoundRectDonutSymbol(), and AddRoundRectSymbol().
|
privateinherited |
Definition at line 26 of file odb_attribute.cpp.
References index.
Referenced by AttrValue2String(), GetAttrNameNumber(), and GetAttrTextNumber().
| void FEATURES_MANAGER::InitFeatureList | ( | PCB_LAYER_ID | aLayer, |
| const std::vector< BOARD_ITEM * > & | aItems ) |
Definition at line 1072 of file odb_feature.cpp.
References AddContour(), AddDimension(), AddFeatureLine(), AddPad(), AddShape(), AddText(), AddTrack(), AddZone(), ERROR_INSIDE, FabMaskShape(), FeatureCount(), FILLED_SHAPE, FOR_CANVAS, SHAPE_POLY_SET::Fracture(), GetODBPlugin(), BOARD_ITEM::GetParentFootprint(), STROKE_PARAMS::GetWidth(), IsCopperLayer(), FOOTPRINT::IsNetTie(), m_board, m_layerName, SHAPE_POLY_SET::OutlineCount(), PCB_ARC_T, PCB_BARCODE_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_DRILL_CHART_T, PCB_FIELD_T, PCB_PAD_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TARGET_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_TRACE_T, PCB_VIA_T, PCB_ZONE_T, PCB_IO_ODBPP::RecordNetTieFeature(), table, traceOdbppIo, and PCB_BARCODE::TransformShapeToPolygon().
|
inlinestaticprivateinherited |
An empty TEXT value is the attribute's default and has no legal text table entry.
Definition at line 409 of file odb_attribute.h.
Referenced by AddSystemAttribute(), and AddUserDefAttribute().
|
private |
Definition at line 128 of file odb_feature.cpp.
References ATTR_MANAGER::AddSystemAttribute(), and forEachNewFeature().
Referenced by AddRoutContour(), and AddRoutSlot().
|
protectedinherited |
Definition at line 101 of file odb_attribute.cpp.
References WriteAttributesName(), and WriteAttributesText().
Referenced by FEATURES_MANAGER::GenerateFeatureFile(), COMPONENTS_MANAGER::Write(), EDA_DATA::PACKAGE::Write(), and EDA_DATA::Write().
|
protectedinherited |
Definition at line 83 of file odb_attribute.cpp.
References m_attrNameVec, and name.
Referenced by WriteAttributes().
|
protectedinherited |
Definition at line 92 of file odb_attribute.cpp.
References m_attrTextVec, and name.
Referenced by WriteAttributes().
|
private |
Definition at line 204 of file odb_feature.h.
Referenced by GenerateFeatureFile(), and GetSymbolIndex().
|
privateinherited |
Definition at line 453 of file odb_attribute.h.
Referenced by GetAttrNameNumber().
|
privateinherited |
Definition at line 454 of file odb_attribute.h.
Referenced by GetAttrNameNumber(), and WriteAttributesName().
|
privateinherited |
Definition at line 456 of file odb_attribute.h.
Referenced by AttrValue2String(), and GetAttrTextNumber().
|
privateinherited |
Definition at line 457 of file odb_attribute.h.
Referenced by AttrValue2String(), GetAttrTextNumber(), and WriteAttributesText().
|
private |
Definition at line 229 of file odb_feature.h.
Referenced by AddTrack(), and FEATURES_MANAGER().
|
private |
Definition at line 225 of file odb_feature.h.
Referenced by AddPadShape(), AddShape(), AddText(), FEATURES_MANAGER(), and InitFeatureList().
|
private |
Definition at line 202 of file odb_feature.h.
Referenced by AddChamferRectSymbol().
|
private |
Definition at line 195 of file odb_feature.h.
Referenced by AddCircleSymbol().
|
private |
Definition at line 230 of file odb_feature.h.
Referenced by AddPad(), addViaDrillAttributes(), AddViaDrillHole(), and FEATURES_MANAGER().
|
private |
Definition at line 233 of file odb_feature.h.
Referenced by AddFeature(), FeatureCount(), forEachNewFeature(), GenerateFeatureFile(), and GenerateProfileFeatures().
|
private |
Definition at line 227 of file odb_feature.h.
Referenced by AddPad(), AddTrack(), AddZone(), FEATURES_MANAGER(), and InitFeatureList().
|
private |
Definition at line 199 of file odb_feature.h.
Referenced by AddOvalSymbol().
|
private |
Definition at line 197 of file odb_feature.h.
|
private |
Definition at line 226 of file odb_feature.h.
Referenced by AddFeatureArc(), AddFeatureLine(), AddPad(), AddPadCircle(), AddPadShape(), addPostMachiningAttributes(), AddShape(), addViaDrillAttributes(), AddViaDrillHole(), FEATURES_MANAGER(), GenerateFeatureFile(), GenerateProfileFeatures(), and GetODBPlugin().
|
private |
Definition at line 198 of file odb_feature.h.
Referenced by AddRectSymbol().
|
private |
Definition at line 228 of file odb_feature.h.
Referenced by AddPad(), AddTrack(), addViaDrillAttributes(), AddViaDrillHole(), and FEATURES_MANAGER().
|
private |
Definition at line 196 of file odb_feature.h.
Referenced by AddRoundDonutSymbol().
|
private |
Definition at line 201 of file odb_feature.h.
Referenced by AddRoundRectDonutSymbol().
|
private |
Definition at line 200 of file odb_feature.h.
Referenced by AddRoundRectSymbol().
|
private |
Definition at line 231 of file odb_feature.h.
Referenced by GetSymbolIndex().