|
KiCad PCB EDA Suite
|
Helper class to handle information needed to display 3D board. More...
#include <board_adapter.h>
Public Member Functions | |
| BOARD_ADAPTER () | |
| ~BOARD_ADAPTER () | |
| void | Set3dCacheManager (S3D_CACHE *aCacheMgr) noexcept |
| Update the cache manager pointer. | |
| S3D_CACHE * | Get3dCacheManager () const noexcept |
| bool | Is3dLayerEnabled (PCB_LAYER_ID aLayer, const std::bitset< LAYER_3D_END > &aVisibilityFlags) const |
| Check if a layer is enabled. | |
| bool | IsFootprintShown (FOOTPRINT_ATTR_T aFPAttributes) const |
| Test if footprint should be displayed in relation to attributes and the flags. | |
| void | SetBoard (BOARD *aBoard) noexcept |
| Set current board to be rendered. | |
| const BOARD * | GetBoard () const noexcept |
| void | ReloadColorSettings () noexcept |
| std::map< int, COLOR4D > | GetLayerColors () const |
| Build a color list which is used to store colors layers. | |
| std::map< int, COLOR4D > | GetDefaultColors () const |
| void | SetLayerColors (const std::map< int, COLOR4D > &aColors) |
| std::bitset< LAYER_3D_END > | GetVisibleLayers () const |
| std::bitset< LAYER_3D_END > | GetDefaultVisibleLayers () const |
| void | SetVisibleLayers (const std::bitset< LAYER_3D_END > &aLayers) |
| bool | GetUseBoardEditorCopperLayerColors () const |
| void | InitSettings (REPORTER *aStatusReporter, REPORTER *aWarningReporter) |
| Function to be called by the render when it need to reload the settings for the board. | |
| double | BiuTo3dUnits () const noexcept |
| Board integer units To 3D units. | |
| const BBOX_3D & | GetBBox () const noexcept |
| Get the board outline bounding box. | |
| float | GetBoardBodyThickness () const noexcept |
| Get the board body thickness, including internal copper layers (in 3D units). | |
| float | GetNonCopperLayerThickness () const noexcept |
| Get the non copper layers thickness (in 3D units). | |
| float | GetFrontCopperThickness () const noexcept |
| Get the copper layer thicknesses (in 3D units). | |
| float | GetBackCopperThickness () const noexcept |
| int | GetHolePlatingThickness () const noexcept |
| Get the hole plating thickness (NB: in BOARD UNITS!). | |
| VECTOR2I | GetBoardSize () const noexcept |
| Get the board size. | |
| VECTOR2I | GetBoardPos () const noexcept |
| Get the board center. | |
| const SFVEC3F & | GetBoardCenter () const noexcept |
| The board center position in 3D units. | |
| float | GetFootprintZPos (bool aIsFlipped) const |
| Get the position of the footprint in 3d integer units considering if it is flipped or not. | |
| const SHAPE_POLY_SET & | GetBoardPoly () const noexcept |
| Get the current polygon of the epoxy board. | |
| SFVEC4F | GetLayerColor (int aLayerId) const |
| Get the technical color of a layer. | |
| SFVEC4F | GetColor (const COLOR4D &aColor) const |
| SFVEC2F | GetSphericalCoord (int i) const |
| float | GetLayerTopZPos (PCB_LAYER_ID aLayerId) const noexcept |
| Get the top z position. | |
| float | GetLayerBottomZPos (PCB_LAYER_ID aLayerId) const noexcept |
| Get the bottom z position. | |
| const MAP_CONTAINER_2D_BASE & | GetLayerMap () const noexcept |
| Get the map of containers that have the objects per layer. | |
| const BVH_CONTAINER_2D * | GetPlatedPadsFront () const noexcept |
| const BVH_CONTAINER_2D * | GetPlatedPadsBack () const noexcept |
| const BVH_CONTAINER_2D * | GetOffboardPadsFront () const noexcept |
| const BVH_CONTAINER_2D * | GetOffboardPadsBack () const noexcept |
| const MAP_CONTAINER_2D_BASE & | GetLayerHoleMap () const noexcept |
| const BVH_CONTAINER_2D & | GetTH_IDs () const noexcept |
| const BVH_CONTAINER_2D & | GetTH_ODs () const noexcept |
| const SHAPE_POLY_SET & | GetTH_ODPolys () const noexcept |
| Get through hole outside diameter 2D polygons. | |
| const BVH_CONTAINER_2D & | GetViaAnnuli () const noexcept |
| const SHAPE_POLY_SET & | GetViaAnnuliPolys () const noexcept |
| const SHAPE_POLY_SET & | GetNPTH_ODPolys () const noexcept |
| const BVH_CONTAINER_2D & | GetViaTH_ODs () const noexcept |
| const SHAPE_POLY_SET & | GetViaTH_ODPolys () const noexcept |
| const SHAPE_POLY_SET & | GetBackdrillPolys () const noexcept |
| Get the backdrill and tertiary drill polygons. | |
| const SHAPE_POLY_SET & | GetTertiarydrillPolys () const noexcept |
| const BVH_CONTAINER_2D & | GetBackdrillCutouts () const noexcept |
| const BVH_CONTAINER_2D & | GetTertiarydrillCutouts () const noexcept |
| const BVH_CONTAINER_2D & | GetFrontCounterboreCutouts () const noexcept |
| Get the container of counterbore cutout geometry for the front (top) side. | |
| const BVH_CONTAINER_2D & | GetBackCounterboreCutouts () const noexcept |
| Get the container of counterbore cutout geometry for the back (bottom) side. | |
| const BVH_CONTAINER_2D & | GetFrontCountersinkCutouts () const noexcept |
| Get the container of countersink cutout geometry for the front (top) side. | |
| const BVH_CONTAINER_2D & | GetBackCountersinkCutouts () const noexcept |
| Get the container of countersink cutout geometry for the back (bottom) side. | |
| const SHAPE_POLY_SET & | GetFrontCounterborePolys () const noexcept |
| Get the polygon set of counterbore outer diameters for the front (top) side. | |
| const SHAPE_POLY_SET & | GetBackCounterborePolys () const noexcept |
| Get the polygon set of counterbore outer diameters for the back (bottom) side. | |
| const SHAPE_POLY_SET & | GetFrontCountersinkPolys () const noexcept |
| Get the polygon set of countersink outer diameters for the front (top) side. | |
| const SHAPE_POLY_SET & | GetBackCountersinkPolys () const noexcept |
| Get the polygon set of countersink outer diameters for the back (bottom) side. | |
| unsigned int | GetViaCount () const noexcept |
| unsigned int | GetHoleCount () const noexcept |
| float | GetAverageViaHoleDiameter () const noexcept |
| float | GetAverageHoleDiameter () const noexcept |
| float | GetAverageTrackWidth () const noexcept |
| unsigned int | GetCircleSegmentCount (float aDiameter3DU) const |
| unsigned int | GetCircleSegmentCount (int aDiameterBIU) const |
| const MAP_POLY & | GetPolyMap () const noexcept |
| Get map of polygon's layers. | |
| const SHAPE_POLY_SET * | GetFrontPlatedCopperPolys () |
| const SHAPE_POLY_SET * | GetBackPlatedCopperPolys () |
| const MAP_POLY & | GetHoleIdPolysMap () const noexcept |
| const MAP_POLY & | GetHoleOdPolysMap () const noexcept |
Public Attributes | |
| EDA_3D_VIEWER_SETTINGS * | m_Cfg |
| bool | m_IsBoardView |
| bool | m_MousewheelPanning |
| bool | m_IsPreviewer |
| true if we're in a 3D preview panel, false for the standard 3D viewer | |
| SFVEC4F | m_BgColorBot |
| background bottom color | |
| SFVEC4F | m_BgColorTop |
| background top color | |
| SFVEC4F | m_BoardBodyColor |
| in realistic mode: FR4 board color | |
| SFVEC4F | m_SolderMaskColorBot |
| in realistic mode: solder mask color ( bot ) | |
| SFVEC4F | m_SolderMaskColorTop |
| in realistic mode: solder mask color ( top ) | |
| SFVEC4F | m_SolderPasteColor |
| in realistic mode: solder paste color | |
| SFVEC4F | m_SilkScreenColorBot |
| in realistic mode: SilkScreen color ( bot ) | |
| SFVEC4F | m_SilkScreenColorTop |
| in realistic mode: SilkScreen color ( top ) | |
| SFVEC4F | m_CopperColor |
| in realistic mode: copper color | |
| SFVEC4F | m_UserDrawingsColor |
| SFVEC4F | m_UserCommentsColor |
| SFVEC4F | m_ECO1Color |
| SFVEC4F | m_ECO2Color |
| SFVEC4F | m_UserDefinedLayerColor [45] |
| std::map< int, COLOR4D > | m_ColorOverrides |
| allows to override color scheme colors | |
| std::map< int, COLOR4D > | m_BoardEditorColors |
| list of colors used by the board editor | |
Static Public Attributes | |
| static CUSTOM_COLORS_LIST | g_SilkColors |
| static CUSTOM_COLORS_LIST | g_MaskColors |
| static CUSTOM_COLORS_LIST | g_PasteColors |
| static CUSTOM_COLORS_LIST | g_FinishColors |
| static CUSTOM_COLORS_LIST | g_BoardColors |
| static KIGFX::COLOR4D | g_DefaultBackgroundTop |
| static KIGFX::COLOR4D | g_DefaultBackgroundBot |
| static KIGFX::COLOR4D | g_DefaultSilkscreen |
| static KIGFX::COLOR4D | g_DefaultSolderMask |
| static KIGFX::COLOR4D | g_DefaultSolderPaste |
| static KIGFX::COLOR4D | g_DefaultSurfaceFinish |
| static KIGFX::COLOR4D | g_DefaultBoardBody |
| static KIGFX::COLOR4D | g_DefaultComments |
| static KIGFX::COLOR4D | g_DefaultECOs |
Private Member Functions | |
| bool | createBoardPolygon (wxString *aErrorMsg) |
| Create the board outline polygon. | |
| void | createLayers (REPORTER *aStatusReporter) |
| void | destroyLayers () |
| void | createTrackWithMargin (const PCB_TRACK *aTrack, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayer, int aMargin=0) |
| void | createPadWithMargin (const PAD *aPad, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayer, const VECTOR2I &aMargin) const |
| void | createPadHoleShape (const PAD *aPad, CONTAINER_2D_BASE *aDstContainer, int aInflateValue) |
| void | addPads (const FOOTPRINT *aFootprint, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId) |
| void | addFootprintShapes (const FOOTPRINT *aFootprint, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId, const std::bitset< LAYER_3D_END > &aVisibilityFlags) |
| void | addText (const EDA_TEXT *aText, CONTAINER_2D_BASE *aDstContainer, const BOARD_ITEM *aOwner) |
| void | addBarCode (const PCB_BARCODE *aBarCode, CONTAINER_2D_BASE *aDstContainer, const BOARD_ITEM *aOwner) |
| void | addShape (const PCB_SHAPE *aShape, CONTAINER_2D_BASE *aContainer, const BOARD_ITEM *aOwner, PCB_LAYER_ID aLayer) |
| void | addShape (const PCB_DIMENSION_BASE *aDimension, CONTAINER_2D_BASE *aDstContainer, const BOARD_ITEM *aOwner) |
| void | addShape (const PCB_TEXTBOX *aTextBox, CONTAINER_2D_BASE *aContainer, const BOARD_ITEM *aOwner) |
| void | addTable (const PCB_TABLE *aTable, CONTAINER_2D_BASE *aContainer, const BOARD_ITEM *aOwner) |
| void | addSolidAreasShapes (const ZONE *aZone, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId) |
| void | createArcSegments (const VECTOR2I &aCentre, const VECTOR2I &aStart, const EDA_ANGLE &aArcAngle, int aCircleToSegmentsCount, int aWidth, CONTAINER_2D_BASE *aContainer, const BOARD_ITEM &aOwner) |
| void | buildPadOutlineAsSegments (const PAD *aPad, PCB_LAYER_ID aLayer, CONTAINER_2D_BASE *aDstContainer, int aWidth) |
Static Private Attributes | |
| static const wxChar * | m_logTrace = wxT( "KI_TRACE_EDA_CINFO3D_VISU" ) |
| Trace mask used to enable or disable debug output for this class. | |
Helper class to handle information needed to display 3D board.
Definition at line 73 of file board_adapter.h.
| BOARD_ADAPTER::BOARD_ADAPTER | ( | ) |
Definition at line 87 of file board_adapter.cpp.
References ADD_COLOR, DEFAULT_BOARD_THICKNESS, DEFAULT_COPPER_THICKNESS, DEFAULT_TECH_LAYER_THICKNESS, g_BoardColors, g_ColorsLoaded, g_DefaultBackgroundBot, g_DefaultBackgroundTop, g_DefaultBoardBody, g_DefaultComments, g_DefaultECOs, g_DefaultSilkscreen, g_DefaultSolderMask, g_DefaultSolderPaste, g_DefaultSurfaceFinish, g_FinishColors, g_MaskColors, g_PasteColors, g_SilkColors, m_3dModelManager, m_averageHoleDiameter, m_averageTrackWidth, m_averageViaHoleDiameter, m_backCopperThickness3DU, m_backMaskThickness3DU, m_backPlatedCopperPolys, m_BgColorBot, m_BgColorTop, m_biuTo3Dunits, m_board, m_BoardBodyColor, m_boardBodyThickness3DU, m_boardBoundingBox, m_boardCenter, m_boardPos, m_boardSize, m_Cfg, m_CopperColor, m_copperLayersCount, m_ECO1Color, m_ECO2Color, m_frontCopperThickness3DU, m_frontMaskThickness3DU, m_frontPlatedCopperPolys, m_holeCount, m_IsBoardView, m_IsPreviewer, m_layerZcoordBottom, m_layerZcoordTop, m_logTrace, m_MousewheelPanning, m_nonCopperLayerThickness3DU, m_offboardPadsBack, m_offboardPadsFront, m_platedPadsBack, m_platedPadsFront, m_SilkScreenColorBot, m_SilkScreenColorTop, m_SolderMaskColorBot, m_SolderMaskColorTop, m_SolderPasteColor, m_solderPasteLayerThickness3DU, m_TH_IDs, m_TH_ODs, m_trackCount, m_UserCommentsColor, m_UserDefinedLayerColor, m_UserDrawingsColor, m_viaAnnuli, m_viaCount, NotSpecifiedPrm(), ReloadColorSettings(), and SOLDERPASTE_LAYER_THICKNESS.
| BOARD_ADAPTER::~BOARD_ADAPTER | ( | ) |
Definition at line 222 of file board_adapter.cpp.
References destroyLayers().
|
private |
Definition at line 151 of file create_3Dgraphic_brd_items.cpp.
References ConvertPolygonToTriangles(), ERROR_INSIDE, BOARD_ITEM::GetLayer(), m_biuTo3Dunits, SHAPE_POLY_SET::Simplify(), and BOARD_ITEM::TransformShapeToPolySet().
Referenced by addFootprintShapes(), and createLayers().
|
private |
Definition at line 200 of file create_3Dgraphic_brd_items.cpp.
References addBarCode(), addShape(), addTable(), addText(), FOOTPRINT::GetFields(), BOARD_ITEM::GetLayer(), PCB_SHAPE::GetLayer(), FOOTPRINT::GraphicalItems(), PCB_SHAPE::IsOnLayer(), LAYER_FP_REFERENCES, LAYER_FP_TEXT, LAYER_FP_VALUES, PCB_BARCODE_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TEXT_T, PCB_TEXTBOX_T, table, and text.
Referenced by createLayers().
|
private |
Definition at line 518 of file create_3Dgraphic_brd_items.cpp.
References B_Mask, B_Paste, createPadWithMargin(), F_Mask, F_Paste, IsCopperLayer(), pad, FOOTPRINT::Pads(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by createLayers().
|
private |
Definition at line 162 of file create_3Dgraphic_brd_items.cpp.
References SEG::A, addRING_2D(), addROUND_SEGMENT_2D(), addText(), SEG::B, PCB_DIMENSION_BASE::GetLineThickness(), SHAPE_CIRCLE::GetRadius(), SHAPE_SEGMENT::GetSeg(), PCB_DIMENSION_BASE::GetShapes(), radius, SH_CIRCLE, SH_SEGMENT, TO_3DU, and TO_SFVEC2F.
|
private |
Definition at line 612 of file create_3Dgraphic_brd_items.cpp.
References addFILLED_CIRCLE_2D(), addRING_2D(), addROUND_SEGMENT_2D(), ALLOW_ACUTE_CORNERS, ARC, BEZIER, CIRCLE, SHAPE_LINE_CHAIN::CLastPoint(), ConvertPolygonToTriangles(), SHAPE_LINE_CHAIN::CPoint(), createArcSegments(), ERROR_INSIDE, FIRST_TYPE, EDA_SHAPE::GetArcAngle(), BOARD_ITEM::GetBoard(), PCB_SHAPE::GetBoundingBox(), PCB_SHAPE::GetCenter(), GetCircleSegmentCount(), EDA_SHAPE::GetCornerRadius(), PCB_SHAPE::GetCorners(), PCB_PLOT_PARAMS::GetDashedLineDashRatio(), PCB_PLOT_PARAMS::GetDashedLineGapRatio(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetHatching(), PCB_SHAPE::GetLayer(), STROKE_PARAMS::GetLineStyle(), BOARD_ITEM::GetMaxError(), BOARD::GetPlotOptions(), PCB_SHAPE::GetPosition(), EDA_SHAPE::GetRadius(), EDA_SHAPE::GetRectangleHeight(), EDA_SHAPE::GetRectangleWidth(), EDA_SHAPE::GetRectCorners(), EDA_SHAPE::GetShape(), BOX2< Vec >::GetSizeMax(), PCB_SHAPE::GetSolderMaskExpansion(), EDA_SHAPE::GetStart(), PCB_SHAPE::GetStroke(), PCB_SHAPE::GetWidth(), PCB_SHAPE::HasSolderMask(), SHAPE_POLY_SET::Inflate(), SHAPE_POLY_SET::IsEmpty(), IsExternalCopperLayer(), EDA_SHAPE::IsHatchedFill(), IsSolderMaskLayer(), EDA_SHAPE::IsSolidFill(), m_biuTo3Dunits, EDA_SHAPE::MakeEffectiveShapes(), SHAPE_POLY_SET::Outline(), SHAPE_LINE_CHAIN::PointCount(), POLY, RECTANGLE, ROUND_ALL_CORNERS, SEGMENT, SHAPE_LINE_CHAIN::SetClosed(), KIGFX::RENDER_SETTINGS::SetDashLengthRatio(), KIGFX::RENDER_SETTINGS::SetGapLengthRatio(), EDA_SHAPE::SHAPE_T_asString(), SHAPE_POLY_SET::Simplify(), SOLID, STROKE_PARAMS::Stroke(), TO_3DU, TO_SFVEC2F, PCB_SHAPE::TransformShapeToPolygon(), ROUNDRECT::TransformToPolygon(), and UNDEFINED_LAYER.
Referenced by addFootprintShapes(), addShape(), and createLayers().
|
private |
Definition at line 849 of file create_3Dgraphic_brd_items.cpp.
References addShape(), addText(), ConvertPolygonToTriangles(), ERROR_INSIDE, BOARD_ITEM::GetMaxError(), EDA_SHAPE::GetShape(), PCB_TEXTBOX::IsBorderEnabled(), m_biuTo3Dunits, RECTANGLE, and UNDEFINED_LAYER.
|
private |
Definition at line 895 of file create_3Dgraphic_brd_items.cpp.
References ConvertPolygonToTriangles(), ZONE::GetFilledPolysList(), and m_biuTo3Dunits.
Referenced by createLayers().
|
private |
Definition at line 877 of file create_3Dgraphic_brd_items.cpp.
References addROUND_SEGMENT_2D(), addText(), PCB_TABLE::DrawBorders(), PCB_TABLE::GetCells(), STROKE_PARAMS::GetWidth(), TO_3DU, and TO_SFVEC2F.
Referenced by addFootprintShapes(), and createLayers().
|
private |
Definition at line 97 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), addROUND_SEGMENT_2D(), ConvertPolygonToTriangles(), KIFONT::FONT::Draw(), ERROR_INSIDE, EDA_TEXT::GetAttributes(), EDA_TEXT::GetDrawPos(), EDA_TEXT::GetDrawRotation(), EDA_TEXT::GetEffectiveTextPenWidth(), EDA_TEXT::GetFont(), KIFONT::FONT::GetFont(), BOARD_ITEM::GetFontMetrics(), BOARD_ITEM::GetMaxError(), EDA_TEXT::GetRenderCache(), EDA_TEXT::GetShownText(), EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), BOARD_ITEM::IsKnockout(), TEXT_ATTRIBUTES::m_Angle, m_biuTo3Dunits, TO_3DU, TO_SFVEC2F, and PCB_TEXT::TransformTextToPolySet().
Referenced by addFootprintShapes(), addShape(), addShape(), addTable(), and createLayers().
|
inlinenoexcept |
Board integer units To 3D units.
Definition at line 138 of file board_adapter.h.
References BiuTo3dUnits(), and m_biuTo3Dunits.
Referenced by BiuTo3dUnits(), createLayers(), and PCBNEW_JOBS_HANDLER::JobExportRender().
|
private |
Definition at line 903 of file create_3Dgraphic_brd_items.cpp.
References addRING_2D(), addROUND_SEGMENT_2D(), CIRCLE, ERROR_INSIDE, PAD::GetEffectivePolygon(), PAD::GetShape(), PAD::GetSize(), path, radius, PAD::ShapePos(), TO_3DU, TO_SFVEC2F, and VECTOR2< T >::x.
Referenced by createLayers().
|
private |
Definition at line 565 of file create_3Dgraphic_brd_items.cpp.
References addROUND_SEGMENT_2D(), ANGLE_0, ANGLE_360, delta, RotatePoint(), TO_3DU, and TO_SFVEC2F.
Referenced by addShape(), and createTrackWithMargin().
|
private |
Create the board outline polygon.
Definition at line 981 of file board_adapter.cpp.
References _, BuildFootprintPolygonOutlines(), m_board, and m_board_poly.
Referenced by InitSettings().
|
private |
Definition at line 204 of file create_layer_items.cpp.
References _, CONTAINER_2D_BASE::Add(), addBarCode(), addFootprintShapes(), addPads(), addShape(), addSolidAreasShapes(), addTable(), addText(), LSET::AllNonCuMask(), B_Adhes, B_Cu, B_Mask, B_Paste, B_SilkS, BiuTo3dUnits(), buildPadOutlineAsPolygon(), buildPadOutlineAsSegments(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::clip_silk_on_via_annuli, Cmts_User, ConvertPolygonToTriangles(), COUNTERBORE, COUNTERSINK, createPadHoleShape(), createTrackWithMargin(), destroyLayers(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::DifferentiatePlatedCopper(), Dwgs_User, Eco1_User, Eco2_User, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::engine, ERROR_INSIDE, F_Adhes, F_Cu, F_Mask, F_Paste, F_SilkS, PCB_VIA::FlashLayer(), GetBoard(), BOARD::GetDesignSettings(), GetHolePlatingThickness(), DELETED_BOARD_ITEM::GetInstance(), BOARD_ITEM::GetMaxError(), GetRunningMicroSecs(), PCB_DIMENSION_BASE::GetShapes(), GetVisibleLayers(), STROKE_PARAMS::GetWidth(), Is3dLayerEnabled(), PCB_TEXTBOX::IsBorderEnabled(), IsExternalCopperLayer(), PCB_TRACK::IsOnLayer(), IsSolderMaskLayer(), KiROUND(), LAYER_3D_SOLDERMASK_BOTTOM, LAYER_3D_SOLDERMASK_TOP, LAYER_CLASS_SILK, m_averageHoleDiameter, m_averageTrackWidth, m_averageViaHoleDiameter, m_backCounterboreCutouts, m_backCounterborePolys, m_backCountersinkCutouts, m_backCountersinkPolys, m_backdrillCutouts, m_BackdrillPolys, m_backPlatedCopperPolys, m_biuTo3Dunits, m_board, m_board_poly, m_Cfg, m_copperLayersCount, m_frontCounterboreCutouts, m_frontCounterborePolys, m_frontCountersinkCutouts, m_frontCountersinkPolys, m_frontPlatedCopperPolys, m_holeCount, m_layerHoleIdPolys, m_layerHoleMap, m_layerHoleOdPolys, m_layerMap, m_layers_poly, m_logTrace, m_NPTH_ODPolys, m_offboardPadsBack, m_offboardPadsFront, m_platedPadsBack, m_platedPadsFront, BOARD_DESIGN_SETTINGS::m_SolderMaskExpansion, m_tertiarydrillCutouts, m_TertiarydrillPolys, m_TH_IDs, m_TH_ODPolys, m_TH_ODs, m_trackCount, m_viaAnnuli, m_viaAnnuliPolys, m_viaCount, m_viaTH_ODPolys, m_viaTH_ODs, NOT_POST_MACHINED, NPTH, OPENGL, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::opengl_copper_thickness, pad, PCB_BARCODE_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_REFERENCE_IMAGE_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_VIA_T, REPORTER::Report(), LSET::Seq(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_off_board_silk, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_zones, SHAPE_POLY_SET::Simplify(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::subtract_mask_from_silk, table, text, THROUGH, TransformCircleToPolygon(), transformFPShapesToPolySet(), transformFPTextToPolySet(), PCB_TRACK::TransformShapeToPolygon(), BOARD_ITEM::TransformShapeToPolySet(), ZONE::TransformSolidAreasShapesToPolygon(), PCB_TEXT::TransformTextToPolySet(), PCB_TEXTBOX::TransformTextToPolySet(), SHAPE_SEGMENT::TransformToPolygon(), EDA_ITEM::Type(), UNKNOWN, User_1, User_10, User_11, User_12, User_13, User_14, User_15, User_16, User_17, User_18, User_19, User_2, User_20, User_21, User_22, User_23, User_24, User_25, User_26, User_27, User_28, User_29, User_3, User_30, User_31, User_32, User_33, User_34, User_35, User_36, User_37, User_38, User_39, User_4, User_40, User_41, User_42, User_43, User_44, User_45, User_5, User_6, User_7, User_8, User_9, via, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by InitSettings().
|
private |
Definition at line 499 of file create_3Dgraphic_brd_items.cpp.
References addROUND_SEGMENT_2D(), PAD::GetEffectiveHoleShape(), PAD::HasHole(), m_logTrace, TO_3DU, and TO_SFVEC2F.
Referenced by createLayers().
|
private |
Definition at line 379 of file create_3Dgraphic_brd_items.cpp.
References SEG::A, addFILLED_CIRCLE_2D(), SHAPE_POLY_SET::AddOutline(), addROUND_SEGMENT_2D(), SHAPE_POLY_SET::Append(), SEG::B, circle(), clearance, ConvertPolygonToTriangles(), SHAPE_ARC::ConvertToPolyline(), CUSTOM, dummy, ERROR_INSIDE, PAD::GetEffectiveShape(), BOARD_ITEM::GetMaxError(), SHAPE_RECT::GetPosition(), SHAPE_SEGMENT::GetSeg(), PAD::GetShape(), PAD::GetSize(), SHAPE_RECT::GetSize(), SHAPE_ARC::GetWidth(), SHAPE_SEGMENT::GetWidth(), SHAPE_POLY_SET::Inflate(), SHAPE_POLY_SET::IsEmpty(), m_biuTo3Dunits, SHAPE_POLY_SET::NewOutline(), ROUND_ALL_CORNERS, SHAPE_LINE_CHAIN::Segment(), SHAPE_LINE_CHAIN::SegmentCount(), SH_ARC, SH_CIRCLE, SH_POLY_SET, SH_RECT, SH_SEGMENT, SH_SIMPLE, SHAPE_TYPE_asString(), TO_3DU, TO_SFVEC2F, PAD::TransformShapeToPolygon(), UNIMPLEMENTED_FOR, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by addPads().
|
private |
Definition at line 305 of file create_3Dgraphic_brd_items.cpp.
References std::abs(), addFILLED_CIRCLE_2D(), addROUND_SEGMENT_2D(), EDA_ANGLE::AsDegrees(), center, createArcSegments(), createTrackWithMargin(), PCB_ARC::GetAngle(), GetArcToSegmentCount(), PCB_ARC::GetCenter(), PCB_TRACK::GetEnd(), BOARD_ITEM::GetLayer(), BOARD_ITEM::GetMaxError(), BOARD_ITEM::GetParent(), PCB_ARC::GetRadius(), PCB_TRACK::GetStart(), PCB_TRACK::GetWidth(), PCB_ARC::IsDegenerated(), EDA_ANGLE::IsZero(), KiROUND(), PCB_ARC_T, PCB_TRACE_T, PCB_VIA_T, radius, PCB_TRACK::SetEnd(), BOARD_ITEM::SetLayer(), PCB_TRACK::SetStart(), PCB_TRACK::SetWidth(), TO_3DU, TO_SFVEC2F, EDA_ITEM::Type(), and via.
Referenced by createLayers(), and createTrackWithMargin().
|
private |
Definition at line 148 of file create_layer_items.cpp.
References DELETE_AND_FREE, DELETE_AND_FREE_MAP, m_backCounterboreCutouts, m_backCounterborePolys, m_backCountersinkCutouts, m_backCountersinkPolys, m_backdrillCutouts, m_backPlatedCopperPolys, m_frontCounterboreCutouts, m_frontCounterborePolys, m_frontCountersinkCutouts, m_frontCountersinkPolys, m_frontPlatedCopperPolys, m_layerHoleIdPolys, m_layerHoleMap, m_layerHoleOdPolys, m_layerMap, m_layers_poly, m_NPTH_ODPolys, m_offboardPadsBack, m_offboardPadsFront, m_platedPadsBack, m_platedPadsFront, m_tertiarydrillCutouts, m_TH_IDs, m_TH_ODPolys, m_TH_ODs, m_viaAnnuli, m_viaAnnuliPolys, m_viaTH_ODPolys, and m_viaTH_ODs.
Referenced by createLayers(), and ~BOARD_ADAPTER().
|
inlinenoexcept |
Definition at line 86 of file board_adapter.h.
References m_3dModelManager.
Referenced by EDA_3D_VIEWER_FRAME::captureOpenGLScreenshot(), and EDA_3D_VIEWER_FRAME::captureRaytracingScreenshot().
|
inlinenoexcept |
Definition at line 409 of file board_adapter.h.
References m_averageHoleDiameter.
|
inlinenoexcept |
Definition at line 414 of file board_adapter.h.
References m_averageTrackWidth.
|
inlinenoexcept |
Definition at line 404 of file board_adapter.h.
References m_averageViaHoleDiameter.
|
inlinenoexcept |
Definition at line 161 of file board_adapter.h.
References m_backCopperThickness3DU.
|
inlinenoexcept |
Get the container of counterbore cutout geometry for the back (bottom) side.
Definition at line 344 of file board_adapter.h.
References m_backCounterboreCutouts.
|
inlinenoexcept |
Get the polygon set of counterbore outer diameters for the back (bottom) side.
Definition at line 377 of file board_adapter.h.
References m_backCounterborePolys.
|
inlinenoexcept |
Get the container of countersink cutout geometry for the back (bottom) side.
Definition at line 361 of file board_adapter.h.
References m_backCountersinkCutouts.
|
inlinenoexcept |
Get the polygon set of countersink outer diameters for the back (bottom) side.
Definition at line 393 of file board_adapter.h.
References m_backCountersinkPolys.
|
inlinenoexcept |
Definition at line 322 of file board_adapter.h.
References m_backdrillCutouts.
|
inlinenoexcept |
Get the backdrill and tertiary drill polygons.
Definition at line 312 of file board_adapter.h.
References m_BackdrillPolys.
|
inline |
Definition at line 440 of file board_adapter.h.
References m_backPlatedCopperPolys.
|
inlinenoexcept |
Get the board outline bounding box.
Definition at line 145 of file board_adapter.h.
References m_boardBoundingBox.
Referenced by NL_FOOTPRINT_PROPERTIES_PLUGIN_IMPL::GetModelExtents().
|
inlinenoexcept |
|
inlinenoexcept |
Get the board body thickness, including internal copper layers (in 3D units).
Definition at line 150 of file board_adapter.h.
References m_boardBodyThickness3DU.
|
inlinenoexcept |
The board center position in 3D units.
Definition at line 187 of file board_adapter.h.
References m_boardCenter.
|
inlinenoexcept |
Get the current polygon of the epoxy board.
Definition at line 203 of file board_adapter.h.
References m_board_poly.
|
inlinenoexcept |
Get the board center.
Definition at line 180 of file board_adapter.h.
References m_boardPos.
|
inlinenoexcept |
Get the board size.
Definition at line 173 of file board_adapter.h.
References GetBoardSize(), and m_boardSize.
Referenced by GetBoardSize().
| unsigned int BOARD_ADAPTER::GetCircleSegmentCount | ( | float | aDiameter3DU | ) | const |
| aDiameter3DU | diameter in 3DU. |
Definition at line 309 of file board_adapter.cpp.
References GetCircleSegmentCount(), and m_biuTo3Dunits.
Referenced by addShape(), and GetCircleSegmentCount().
| unsigned int BOARD_ADAPTER::GetCircleSegmentCount | ( | int | aDiameterBIU | ) | const |
| aDiameterBIU | diameter in board internal units. |
Definition at line 317 of file board_adapter.cpp.
References FULL_CIRCLE, GetArcToSegmentCount(), and m_board.
| [in] | aColor | is the color mapped. |
Definition at line 1054 of file board_adapter.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, and KIGFX::COLOR4D::r.
Referenced by GetLayerColor(), and SetLayerColors().
| std::map< int, COLOR4D > BOARD_ADAPTER::GetDefaultColors | ( | ) | const |
Definition at line 597 of file board_adapter.cpp.
References DEFAULT_THEME, g_DefaultBackgroundBot, g_DefaultBackgroundTop, g_DefaultBoardBody, g_DefaultComments, g_DefaultECOs, g_DefaultSilkscreen, g_DefaultSolderMask, g_DefaultSolderPaste, g_DefaultSurfaceFinish, COLOR_SETTINGS::GetColor(), GetColorSettings(), LAYER_3D_BACKGROUND_BOTTOM, LAYER_3D_BACKGROUND_TOP, LAYER_3D_BOARD, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_TOP, LAYER_3D_SILKSCREEN_BOTTOM, LAYER_3D_SILKSCREEN_TOP, LAYER_3D_SOLDERMASK_BOTTOM, LAYER_3D_SOLDERMASK_TOP, LAYER_3D_SOLDERPASTE, LAYER_3D_USER_1, LAYER_3D_USER_45, LAYER_3D_USER_COMMENTS, LAYER_3D_USER_DRAWINGS, LAYER_3D_USER_ECO1, and LAYER_3D_USER_ECO2.
Referenced by GetLayerColors().
| std::bitset< LAYER_3D_END > BOARD_ADAPTER::GetDefaultVisibleLayers | ( | ) | const |
Definition at line 935 of file board_adapter.cpp.
References LAYER_3D_ADHESIVE, LAYER_3D_BOARD, LAYER_3D_BOUNDING_BOXES, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_TOP, LAYER_3D_MODELS_MARKED_DNP, LAYER_3D_MODELS_NOT_IN_POS, LAYER_3D_NAVIGATOR, LAYER_3D_OFF_BOARD_SILK, LAYER_3D_PLATED_BARRELS, LAYER_3D_SILKSCREEN_BOTTOM, LAYER_3D_SILKSCREEN_TOP, LAYER_3D_SMD_MODELS, LAYER_3D_SOLDERMASK_BOTTOM, LAYER_3D_SOLDERMASK_TOP, LAYER_3D_SOLDERPASTE, LAYER_3D_TH_MODELS, LAYER_3D_USER_1, LAYER_3D_USER_45, LAYER_3D_USER_COMMENTS, LAYER_3D_USER_DRAWINGS, LAYER_3D_USER_ECO1, LAYER_3D_USER_ECO2, LAYER_3D_VIRTUAL_MODELS, LAYER_FP_REFERENCES, LAYER_FP_TEXT, and LAYER_FP_VALUES.
| float BOARD_ADAPTER::GetFootprintZPos | ( | bool | aIsFlipped | ) | const |
Get the position of the footprint in 3d integer units considering if it is flipped or not.
| aIsFlipped | true for use in footprints on Front (top) layer, false if footprint is on back (bottom) layer. |
Definition at line 1026 of file board_adapter.cpp.
References B_Paste, F_Paste, m_layerZcoordBottom, and m_layerZcoordTop.
|
inlinenoexcept |
Get the copper layer thicknesses (in 3D units).
Definition at line 160 of file board_adapter.h.
References m_frontCopperThickness3DU.
|
inlinenoexcept |
Get the container of counterbore cutout geometry for the front (top) side.
These are circles representing the counterbore diameter for cutting into the board.
Definition at line 336 of file board_adapter.h.
References m_frontCounterboreCutouts.
|
inlinenoexcept |
Get the polygon set of counterbore outer diameters for the front (top) side.
Definition at line 369 of file board_adapter.h.
References m_frontCounterborePolys.
|
inlinenoexcept |
Get the container of countersink cutout geometry for the front (top) side.
These are circles representing the countersink outer diameter for cutting into the board.
Definition at line 353 of file board_adapter.h.
References m_frontCountersinkCutouts.
|
inlinenoexcept |
Get the polygon set of countersink outer diameters for the front (top) side.
Definition at line 385 of file board_adapter.h.
References m_frontCountersinkPolys.
|
inline |
Definition at line 435 of file board_adapter.h.
References m_frontPlatedCopperPolys.
|
inlinenoexcept |
Definition at line 399 of file board_adapter.h.
References m_holeCount.
|
inlinenoexcept |
Definition at line 445 of file board_adapter.h.
References m_layerHoleIdPolys.
|
inlinenoexcept |
Definition at line 446 of file board_adapter.h.
References m_layerHoleOdPolys.
|
noexcept |
Get the hole plating thickness (NB: in BOARD UNITS!).
Definition at line 302 of file board_adapter.cpp.
References DEFAULT_COPPER_THICKNESS, and m_board.
Referenced by createLayers().
|
inlinenoexcept |
Get the bottom z position.
| aLayerId | layer id. |
Definition at line 243 of file board_adapter.h.
References m_backCopperThickness3DU, m_boardBodyThickness3DU, and m_layerZcoordBottom.
| SFVEC4F BOARD_ADAPTER::GetLayerColor | ( | int | aLayerId | ) | const |
Get the technical color of a layer.
| aLayerId | the layer to get the color information. |
Definition at line 1043 of file board_adapter.cpp.
References GetColor(), LAYER_3D_USER_1, LAYER_3D_USER_45, m_BoardEditorColors, Map3DLayerToPCBLayer(), and PCB_LAYER_ID_COUNT.
| std::map< int, COLOR4D > BOARD_ADAPTER::GetLayerColors | ( | ) | const |
Build a color list which is used to store colors layers.
Definition at line 625 of file board_adapter.cpp.
References KIGFX::COLOR4D::a, BS_ITEM_TYPE_DIELECTRIC, BS_ITEM_TYPE_SILKSCREEN, BS_ITEM_TYPE_SOLDERMASK, DEFAULT_THEME, F_Mask, F_SilkS, g_BoardColors, g_FinishColors, g_MaskColors, g_SilkColors, COLOR_SETTINGS::GetColor(), GetColorSettings(), GetDefaultColors(), BOARD_STACKUP::GetList(), LAYER_3D_BOARD, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_TOP, LAYER_3D_SILKSCREEN_BOTTOM, LAYER_3D_SILKSCREEN_TOP, LAYER_3D_SOLDERMASK_BOTTOM, LAYER_3D_SOLDERMASK_TOP, m_board, m_Cfg, m_ColorOverrides, BOARD_STACKUP::m_FinishType, and KIGFX::COLOR4D::Mix().
Referenced by InitSettings().
|
inlinenoexcept |
Definition at line 264 of file board_adapter.h.
References m_layerHoleMap.
|
inlinenoexcept |
Get the map of containers that have the objects per layer.
Definition at line 258 of file board_adapter.h.
References m_layerMap.
|
inlinenoexcept |
Get the top z position.
| aLayerId | layer id. |
Definition at line 227 of file board_adapter.h.
References m_boardBodyThickness3DU, and m_layerZcoordTop.
|
inlinenoexcept |
Get the non copper layers thickness (in 3D units).
Definition at line 155 of file board_adapter.h.
References m_nonCopperLayerThickness3DU.
|
inlinenoexcept |
Definition at line 290 of file board_adapter.h.
References m_NPTH_ODPolys.
|
inlinenoexcept |
Definition at line 262 of file board_adapter.h.
References m_offboardPadsBack.
|
inlinenoexcept |
Definition at line 261 of file board_adapter.h.
References m_offboardPadsFront.
|
inlinenoexcept |
Definition at line 260 of file board_adapter.h.
References m_platedPadsBack.
|
inlinenoexcept |
Definition at line 259 of file board_adapter.h.
References m_platedPadsFront.
|
inlinenoexcept |
Get map of polygon's layers.
Definition at line 433 of file board_adapter.h.
References m_layers_poly.
| SFVEC2F BOARD_ADAPTER::GetSphericalCoord | ( | int | i | ) | const |
Definition at line 1060 of file board_adapter.cpp.
References m_Cfg.
|
inlinenoexcept |
Definition at line 327 of file board_adapter.h.
References m_tertiarydrillCutouts.
|
inlinenoexcept |
Definition at line 317 of file board_adapter.h.
References m_TertiarydrillPolys.
|
inlinenoexcept |
Definition at line 265 of file board_adapter.h.
References m_TH_IDs.
|
inlinenoexcept |
Get through hole outside diameter 2D polygons.
The outside diameter 2D polygon is the hole diameter plus the plating thickness.
Definition at line 275 of file board_adapter.h.
References m_TH_ODPolys.
|
inlinenoexcept |
Definition at line 266 of file board_adapter.h.
References m_TH_ODs.
| bool BOARD_ADAPTER::GetUseBoardEditorCopperLayerColors | ( | ) | const |
Definition at line 975 of file board_adapter.cpp.
|
inlinenoexcept |
Definition at line 280 of file board_adapter.h.
References m_viaAnnuli.
|
inlinenoexcept |
Definition at line 285 of file board_adapter.h.
References m_viaAnnuliPolys.
|
inlinenoexcept |
Definition at line 398 of file board_adapter.h.
References m_viaCount.
|
inlinenoexcept |
Definition at line 303 of file board_adapter.h.
References m_viaTH_ODPolys.
|
inlinenoexcept |
Definition at line 298 of file board_adapter.h.
References m_viaTH_ODs.
| std::bitset< LAYER_3D_END > BOARD_ADAPTER::GetVisibleLayers | ( | ) | const |
Definition at line 795 of file board_adapter.cpp.
References B_Cu, B_Mask, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, F_Adhes, F_Cu, F_Mask, F_Paste, F_SilkS, FOLLOW_PCB, FOLLOW_PLOT_SETTINGS, PCB_PLOT_PARAMS::GetLayerSelection(), PCB_PLOT_PARAMS::GetPlotFPText(), PCB_PLOT_PARAMS::GetPlotOnAllLayersSequence(), PCB_PLOT_PARAMS::GetPlotReference(), PCB_PLOT_PARAMS::GetPlotValue(), LAYER_3D_ADHESIVE, LAYER_3D_BOARD, LAYER_3D_BOUNDING_BOXES, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_TOP, LAYER_3D_MODELS_MARKED_DNP, LAYER_3D_MODELS_NOT_IN_POS, LAYER_3D_NAVIGATOR, LAYER_3D_OFF_BOARD_SILK, LAYER_3D_PLATED_BARRELS, LAYER_3D_SILKSCREEN_BOTTOM, LAYER_3D_SILKSCREEN_TOP, LAYER_3D_SMD_MODELS, LAYER_3D_SOLDERMASK_BOTTOM, LAYER_3D_SOLDERMASK_TOP, LAYER_3D_SOLDERPASTE, LAYER_3D_TH_MODELS, LAYER_3D_USER_1, LAYER_3D_USER_45, LAYER_3D_USER_COMMENTS, LAYER_3D_USER_DRAWINGS, LAYER_3D_USER_ECO1, LAYER_3D_USER_ECO2, LAYER_3D_VIRTUAL_MODELS, LAYER_FP_REFERENCES, LAYER_FP_TEXT, LAYER_FP_VALUES, m_board, m_Cfg, m_IsPreviewer, Map3DLayerToPCBLayer(), and BASE_SET::set().
Referenced by createLayers(), and APPEARANCE_CONTROLS_3D::doApplyLayerPreset().
Function to be called by the render when it need to reload the settings for the board.
| aStatusReporter | the pointer for the status reporter. |
| aWarningReporter | pointer for the warning reporter. |
Definition at line 325 of file board_adapter.cpp.
References _, B_Adhes, B_Cu, B_Mask, B_Paste, B_SilkS, BS_ITEM_TYPE_COPPER, BS_ITEM_TYPE_DIELECTRIC, BS_ITEM_TYPE_SOLDERMASK, BOX2< Vec >::Centre(), createBoardPolygon(), createLayers(), DEFAULT_BOARD_THICKNESS, DEFAULT_COPPER_THICKNESS, DEFAULT_TECH_LAYER_THICKNESS, F_Adhes, F_Cu, F_Mask, F_Paste, F_SilkS, g_BevelThickness3DU, ADVANCED_CFG::GetCfg(), BOARD_STACKUP::GetCount(), BOX2< Vec >::GetHeight(), GetLayerColors(), BOARD_STACKUP::GetList(), GetRunningMicroSecs(), BOX2< Vec >::GetSize(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Inflate(), IsCopperLayer(), LAYER_3D_BACKGROUND_BOTTOM, LAYER_3D_BACKGROUND_TOP, LAYER_3D_BOARD, LAYER_3D_COPPER_TOP, LAYER_3D_SILKSCREEN_BOTTOM, LAYER_3D_SILKSCREEN_TOP, LAYER_3D_SOLDERMASK_BOTTOM, LAYER_3D_SOLDERMASK_TOP, LAYER_3D_SOLDERPASTE, LAYER_3D_USER_1, LAYER_3D_USER_45, LAYER_3D_USER_COMMENTS, LAYER_3D_USER_DRAWINGS, LAYER_3D_USER_ECO1, LAYER_3D_USER_ECO2, layerThicknessMargin, m_backCopperThickness3DU, m_backMaskThickness3DU, m_BgColorBot, m_BgColorTop, m_biuTo3Dunits, m_board, m_BoardBodyColor, m_boardBodyThickness3DU, m_boardBoundingBox, m_boardCenter, m_boardPos, m_boardSize, m_CopperColor, m_copperLayersCount, m_ECO1Color, m_ECO2Color, m_frontCopperThickness3DU, m_frontMaskThickness3DU, m_layerZcoordBottom, m_layerZcoordTop, m_logTrace, m_nonCopperLayerThickness3DU, m_SilkScreenColorBot, m_SilkScreenColorTop, m_SolderMaskColorBot, m_SolderMaskColorTop, m_SolderPasteColor, m_solderPasteLayerThickness3DU, m_UserCommentsColor, m_UserDefinedLayerColor, m_UserDrawingsColor, PCB_LAYER_ID_COUNT, pcbIUScale, RANGE_SCALE_3D, ReloadColorSettings(), REPORTER::Report(), RPT_SEVERITY_WARNING, SOLDERPASTE_LAYER_THICKNESS, and ToLAYER_ID().
Referenced by EDA_3D_VIEWER_FRAME::captureOpenGLScreenshot(), and EDA_3D_VIEWER_FRAME::captureRaytracingScreenshot().
| bool BOARD_ADAPTER::Is3dLayerEnabled | ( | PCB_LAYER_ID | aLayer, |
| const std::bitset< LAYER_3D_END > & | aVisibilityFlags ) const |
Check if a layer is enabled.
| aLayer | layer ID to get status. |
Definition at line 238 of file board_adapter.cpp.
References B_Adhes, B_Cu, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, F_Adhes, F_Cu, F_Mask, F_Paste, F_SilkS, LAYER_3D_ADHESIVE, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_TOP, LAYER_3D_SILKSCREEN_BOTTOM, LAYER_3D_SILKSCREEN_TOP, LAYER_3D_SOLDERMASK_BOTTOM, LAYER_3D_SOLDERMASK_TOP, LAYER_3D_SOLDERPASTE, LAYER_3D_USER_COMMENTS, LAYER_3D_USER_DRAWINGS, LAYER_3D_USER_ECO1, LAYER_3D_USER_ECO2, m_board, MapPCBLayerTo3DLayer(), PCB_LAYER_ID_COUNT, and UNDEFINED_LAYER.
Referenced by createLayers().
| bool BOARD_ADAPTER::IsFootprintShown | ( | FOOTPRINT_ATTR_T | aFPAttributes | ) | const |
Test if footprint should be displayed in relation to attributes and the flags.
Definition at line 275 of file board_adapter.cpp.
References FP_DNP, FP_EXCLUDE_FROM_POS_FILES, FP_SMD, FP_THROUGH_HOLE, m_Cfg, and m_IsPreviewer.
|
noexcept |
Definition at line 228 of file board_adapter.cpp.
References DEFAULT_THEME, F_Cu, GetAppSettings(), COLOR_SETTINGS::GetColor(), GetColorSettings(), m_BoardEditorColors, APP_SETTINGS_BASE::m_ColorTheme, and PCB_LAYER_ID_COUNT.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
inlinenoexcept |
Update the cache manager pointer.
| aCachePointer | the pointer to the 3D cache manager. |
Definition at line 85 of file board_adapter.h.
References m_3dModelManager.
Referenced by EDA_3D_VIEWER_FRAME::captureOpenGLScreenshot(), EDA_3D_VIEWER_FRAME::captureRaytracingScreenshot(), and PCBNEW_JOBS_HANDLER::JobExportRender().
|
inlinenoexcept |
Set current board to be rendered.
| aBoard | board to process. |
Definition at line 106 of file board_adapter.h.
References m_board.
Referenced by EDA_3D_VIEWER_FRAME::captureOpenGLScreenshot(), EDA_3D_VIEWER_FRAME::captureRaytracingScreenshot(), and PCBNEW_JOBS_HANDLER::JobExportRender().
| void BOARD_ADAPTER::SetLayerColors | ( | const std::map< int, COLOR4D > & | aColors | ) |
Definition at line 743 of file board_adapter.cpp.
References DEFAULT_THEME, GetColor(), GetColorSettings(), PGM_BASE::GetSettingsManager(), LAYER_3D_USER_1, LAYER_3D_USER_45, m_UserDefinedLayerColor, Pgm(), SETTINGS_MANAGER::SaveColorSettings(), and COLOR_SETTINGS::SetColor().
Referenced by APPEARANCE_CONTROLS_3D::doApplyLayerPreset().
| void BOARD_ADAPTER::SetVisibleLayers | ( | const std::bitset< LAYER_3D_END > & | aLayers | ) |
Definition at line 759 of file board_adapter.cpp.
References LAYER_3D_ADHESIVE, LAYER_3D_BOARD, LAYER_3D_BOUNDING_BOXES, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_TOP, LAYER_3D_MODELS_MARKED_DNP, LAYER_3D_MODELS_NOT_IN_POS, LAYER_3D_NAVIGATOR, LAYER_3D_OFF_BOARD_SILK, LAYER_3D_PLATED_BARRELS, LAYER_3D_SILKSCREEN_BOTTOM, LAYER_3D_SILKSCREEN_TOP, LAYER_3D_SMD_MODELS, LAYER_3D_SOLDERMASK_BOTTOM, LAYER_3D_SOLDERMASK_TOP, LAYER_3D_SOLDERPASTE, LAYER_3D_TH_MODELS, LAYER_3D_USER_1, LAYER_3D_USER_45, LAYER_3D_USER_COMMENTS, LAYER_3D_USER_DRAWINGS, LAYER_3D_USER_ECO1, LAYER_3D_USER_ECO2, LAYER_3D_VIRTUAL_MODELS, LAYER_FP_REFERENCES, LAYER_FP_TEXT, LAYER_FP_VALUES, and m_Cfg.
Referenced by APPEARANCE_CONTROLS_3D::doApplyLayerPreset().
|
static |
Definition at line 509 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
static |
Definition at line 512 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 511 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 517 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 518 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 519 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 513 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 514 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 515 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 516 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 508 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
static |
Definition at line 506 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
static |
Definition at line 507 of file board_adapter.h.
Referenced by BOARD_ADAPTER().
|
static |
Definition at line 505 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
private |
Definition at line 549 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), Get3dCacheManager(), and Set3dCacheManager().
|
private |
Definition at line 622 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageHoleDiameter().
|
private |
Definition at line 618 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageTrackWidth().
|
private |
Definition at line 620 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageViaHoleDiameter().
|
private |
Definition at line 610 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBackCopperThickness(), GetLayerBottomZPos(), and InitSettings().
|
private |
Counterbore cutouts on back (bottom)
Definition at line 597 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackCounterboreCutouts().
|
private |
Counterbore outer diameters on back.
Definition at line 574 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackCounterborePolys().
|
private |
Countersink cutouts on back (bottom)
Definition at line 599 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackCountersinkCutouts().
|
private |
Countersink outer diameters on back.
Definition at line 576 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackCountersinkPolys().
|
private |
Backdrill cutouts.
Definition at line 593 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackdrillCutouts().
|
private |
Board backdrill polygons B.Cu->in.
Definition at line 565 of file board_adapter.h.
Referenced by createLayers(), and GetBackdrillPolys().
|
private |
Definition at line 614 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Definition at line 560 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetBackPlatedCopperPolys().
| SFVEC4F BOARD_ADAPTER::m_BgColorBot |
background bottom color
Definition at line 529 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
| SFVEC4F BOARD_ADAPTER::m_BgColorTop |
background top color
Definition at line 530 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Scale factor to convert board internal units to 3D units normalized between -1.0 and 1.0.
Definition at line 603 of file board_adapter.h.
Referenced by addBarCode(), addShape(), addShape(), addSolidAreasShapes(), addText(), BiuTo3dUnits(), BOARD_ADAPTER(), createLayers(), createPadWithMargin(), GetCircleSegmentCount(), and InitSettings().
|
private |
Definition at line 548 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createBoardPolygon(), createLayers(), GetBoard(), GetCircleSegmentCount(), GetHolePlatingThickness(), GetLayerColors(), GetUseBoardEditorCopperLayerColors(), GetVisibleLayers(), InitSettings(), Is3dLayerEnabled(), and SetBoard().
|
private |
Board outline polygon.
Definition at line 578 of file board_adapter.h.
Referenced by createBoardPolygon(), createLayers(), and GetBoardPoly().
| SFVEC4F BOARD_ADAPTER::m_BoardBodyColor |
in realistic mode: FR4 board color
Definition at line 531 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Definition at line 611 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardBodyThickness(), GetLayerBottomZPos(), GetLayerTopZPos(), and InitSettings().
|
private |
3D bounding box of the board in 3D units.
Definition at line 554 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBBox(), and InitSettings().
|
private |
3D center position of the board in 3D units.
Definition at line 553 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardCenter(), and InitSettings().
| std::map<int, COLOR4D> BOARD_ADAPTER::m_BoardEditorColors |
list of colors used by the board editor
Definition at line 545 of file board_adapter.h.
Referenced by GetLayerColor(), and ReloadColorSettings().
|
private |
Board center position in board internal units.
Definition at line 551 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardPos(), and InitSettings().
|
private |
Board size in board internal units.
Definition at line 552 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardSize(), and InitSettings().
| EDA_3D_VIEWER_SETTINGS* BOARD_ADAPTER::m_Cfg |
Definition at line 522 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER_FRAME::captureOpenGLScreenshot(), EDA_3D_VIEWER_FRAME::captureRaytracingScreenshot(), createLayers(), APPEARANCE_CONTROLS_3D::doApplyLayerPreset(), GetLayerColors(), GetSphericalCoord(), GetUseBoardEditorCopperLayerColors(), GetVisibleLayers(), EDA_3D_CONDITIONS::gridSizeFunction(), IsFootprintShown(), PCBNEW_JOBS_HANDLER::JobExportRender(), EDA_3D_VIEWER_FRAME::setupRenderingConfig(), SetVisibleLayers(), and EDA_3D_CONTROLLER::ToggleRaytracing().
| std::map<int, COLOR4D> BOARD_ADAPTER::m_ColorOverrides |
allows to override color scheme colors
Definition at line 544 of file board_adapter.h.
Referenced by GetLayerColors(), and PCBNEW_JOBS_HANDLER::JobExportRender().
| SFVEC4F BOARD_ADAPTER::m_CopperColor |
in realistic mode: copper color
Definition at line 537 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Definition at line 601 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and InitSettings().
| SFVEC4F BOARD_ADAPTER::m_ECO1Color |
Definition at line 540 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
| SFVEC4F BOARD_ADAPTER::m_ECO2Color |
Definition at line 541 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Definition at line 609 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetFrontCopperThickness(), and InitSettings().
|
private |
Counterbore cutouts on front (top)
Definition at line 596 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetFrontCounterboreCutouts().
|
private |
Counterbore outer diameters on front.
Definition at line 573 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetFrontCounterborePolys().
|
private |
Countersink cutouts on front (top)
Definition at line 598 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetFrontCountersinkCutouts().
|
private |
Countersink outer diameters on front.
Definition at line 575 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetFrontCountersinkPolys().
|
private |
Definition at line 613 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Definition at line 559 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetFrontPlatedCopperPolys().
|
private |
Definition at line 621 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetHoleCount().
| bool BOARD_ADAPTER::m_IsBoardView |
Definition at line 524 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and PCBNEW_JOBS_HANDLER::JobExportRender().
| bool BOARD_ADAPTER::m_IsPreviewer |
true if we're in a 3D preview panel, false for the standard 3D viewer
Definition at line 526 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetVisibleLayers(), and IsFootprintShown().
|
private |
Hole inner diameters (per layer)
Definition at line 563 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleIdPolysMap().
|
private |
Holes for each layer.
Definition at line 581 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerHoleMap().
|
private |
Hole outer diameters (per layer)
Definition at line 562 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleOdPolysMap().
|
private |
2D elements for each layer.
Definition at line 580 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerMap().
|
private |
Amalgamated polygon contours for various types of items.
Definition at line 556 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetPolyMap().
|
private |
Bottom (Start) Z pos of each layer.
Definition at line 607 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetFootprintZPos(), GetLayerBottomZPos(), and InitSettings().
|
private |
Top (End) Z pos of each layer in 3D units.
Definition at line 606 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetFootprintZPos(), GetLayerTopZPos(), and InitSettings().
| bool BOARD_ADAPTER::m_MousewheelPanning |
Definition at line 525 of file board_adapter.h.
Referenced by BOARD_ADAPTER().
|
private |
Definition at line 612 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetNonCopperLayerThickness(), and InitSettings().
|
private |
NPTH outer diameters.
Definition at line 568 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetNPTH_ODPolys().
|
private |
Definition at line 586 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetOffboardPadsBack().
|
private |
Definition at line 585 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetOffboardPadsFront().
|
private |
Definition at line 584 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetPlatedPadsBack().
|
private |
Definition at line 583 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetPlatedPadsFront().
| SFVEC4F BOARD_ADAPTER::m_SilkScreenColorBot |
in realistic mode: SilkScreen color ( bot )
Definition at line 535 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
| SFVEC4F BOARD_ADAPTER::m_SilkScreenColorTop |
in realistic mode: SilkScreen color ( top )
Definition at line 536 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
| SFVEC4F BOARD_ADAPTER::m_SolderMaskColorBot |
in realistic mode: solder mask color ( bot )
Definition at line 532 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
| SFVEC4F BOARD_ADAPTER::m_SolderMaskColorTop |
in realistic mode: solder mask color ( top )
Definition at line 533 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
| SFVEC4F BOARD_ADAPTER::m_SolderPasteColor |
in realistic mode: solder paste color
Definition at line 534 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Definition at line 615 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Tertiary drill cutouts.
Definition at line 594 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetTertiarydrillCutouts().
|
private |
Board tertiary drill polygons F.Cu->in.
Definition at line 566 of file board_adapter.h.
Referenced by createLayers(), and GetTertiarydrillPolys().
|
private |
List of PTH inner diameters.
Definition at line 589 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetTH_IDs().
|
private |
PTH outer diameters.
Definition at line 569 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetTH_ODPolys().
|
private |
List of PTH outer diameters.
Definition at line 588 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetTH_ODs().
|
private |
Definition at line 617 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and createLayers().
| SFVEC4F BOARD_ADAPTER::m_UserCommentsColor |
Definition at line 539 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
| SFVEC4F BOARD_ADAPTER::m_UserDefinedLayerColor[45] |
Definition at line 542 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), and SetLayerColors().
| SFVEC4F BOARD_ADAPTER::m_UserDrawingsColor |
Definition at line 538 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
List of via annular rings.
Definition at line 590 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetViaAnnuli().
|
private |
Via annular ring outer diameters.
Definition at line 571 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetViaAnnuliPolys().
|
private |
Definition at line 619 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetViaCount().
|
private |
Via hole outer diameters.
Definition at line 570 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetViaTH_ODPolys().
|
private |
List of via hole outer diameters.
Definition at line 591 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetViaTH_ODs().