|
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 (const FOOTPRINT *aFootprint) const |
| Test if footprint should be displayed in relation to attributes and the flags. | |
| wxString | GetFootprintLibraryPath (const FOOTPRINT *aFootprint) const |
| Return the directory of aFootprint's library. | |
| 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) |
| void | SetVisibilityOverride (const std::optional< std::bitset< LAYER_3D_END > > &aLayers) |
| Temporarily override preview visibility without changing the saved render settings. | |
| bool | GetUseBoardEditorCopperLayerColors () const |
| void | InitSettings (std::shared_ptr< REPORTER > aStatusReporter, std::shared_ptr< REPORTER > aWarningReporter) |
| Function to be called by the render when it need to reload the settings for the board. | |
| void | CreateLayers (std::shared_ptr< REPORTER > aStatusReporter, std::stop_token aStop=std::stop_token()) |
| Creates the layers for the board, should be called after InitSettings. | |
| 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. | |
| glm::mat4 | GetFootprintMatrix (const FOOTPRINT &aFootprint) const |
| Build the transform from footprint-local model units to 3D world units. | |
| 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 & | GetSecondarydrillPolys () const noexcept |
| Get the secondary 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 |
| bool | ShowMissingModels () |
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 |
| SFVEC4F | m_SolderMaskColorBot |
| SFVEC4F | m_SolderMaskColorTop |
| SFVEC4F | m_SolderPasteColor |
| SFVEC4F | m_AdhesiveColor |
| SFVEC4F | m_SilkScreenColorBot |
| SFVEC4F | m_SilkScreenColorTop |
| SFVEC4F | m_CopperColor |
| SFVEC4F | m_UserDrawingsColor |
| SFVEC4F | m_UserCommentsColor |
| SFVEC4F | m_ECO1Color |
| SFVEC4F | m_ECO2Color |
| SFVEC4F | m_FFabColor |
| SFVEC4F | m_BFabColor |
| SFVEC4F | m_FCourtyardColor |
| SFVEC4F | m_BCourtyardColor |
| 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 std::vector< CUSTOM_COLOR_ITEM > | g_SilkColors |
| static std::vector< CUSTOM_COLOR_ITEM > | g_MaskColors |
| static std::vector< CUSTOM_COLOR_ITEM > | g_PasteColors |
| static std::vector< CUSTOM_COLOR_ITEM > | g_FinishColors |
| static std::vector< CUSTOM_COLOR_ITEM > | 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_DefaultAdhesive |
| static KIGFX::COLOR4D | g_DefaultSurfaceFinish |
| static KIGFX::COLOR4D | g_DefaultBoardBody |
| static KIGFX::COLOR4D | g_DefaultComments |
| static KIGFX::COLOR4D | g_DefaultECOs |
| static KIGFX::COLOR4D | g_DefaultFabColor |
| static KIGFX::COLOR4D | g_DefaultCourtyardColor |
Private Member Functions | |
| bool | createBoardPolygon (wxString *aErrorMsg) |
| Create the board outline polygon. | |
| void | createLayers (std::shared_ptr< REPORTER > aStatusReporter, std::stop_token aStop) |
| 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 71 of file board_adapter.h.
| BOARD_ADAPTER::BOARD_ADAPTER | ( | ) |
Definition at line 94 of file board_adapter.cpp.
References ADD_COLOR, DEFAULT_BOARD_THICKNESS, DEFAULT_COPPER_THICKNESS, DEFAULT_TECH_LAYER_THICKNESS, g_BoardColors, g_ColorsLoaded, g_DefaultAdhesive, g_DefaultBackgroundBot, g_DefaultBackgroundTop, g_DefaultBoardBody, g_DefaultComments, g_DefaultCourtyardColor, g_DefaultECOs, g_DefaultFabColor, 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_BCourtyardColor, m_BFabColor, 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_FCourtyardColor, m_FFabColor, 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 238 of file board_adapter.cpp.
References destroyLayers().
|
private |
Definition at line 152 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 201 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 536 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 163 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 630 of file create_3Dgraphic_brd_items.cpp.
References SEG::A, addFILLED_CIRCLE_2D(), addRING_2D(), addROUND_SEGMENT_2D(), ALLOW_ACUTE_CORNERS, SHAPE_POLY_SET::Append(), ARC, ARROW_OPEN, SEG::B, B_Cu, BEZIER, EDA_SHAPE::CalcArcAngles(), center, chain, CIRCLE, SHAPE_LINE_CHAIN::CLastPoint(), ConvertPolygonToTriangles(), SHAPE_ELLIPSE::ConvertToPolyline(), SHAPE_POLY_SET::COutline(), SHAPE_LINE_CHAIN::CPoint(), createArcSegments(), ELLIPSE, ELLIPSE_ARC, end, ERROR_INSIDE, F_Cu, FIRST_TYPE, BOARD_ITEM::GetBoard(), PCB_SHAPE::GetBoundingBox(), PCB_SHAPE::GetCenter(), GetCircleSegmentCount(), EDA_SHAPE::GetCornerRadius(), PCB_PLOT_PARAMS::GetDashedLineDashRatio(), PCB_PLOT_PARAMS::GetDashedLineGapRatio(), EDA_SHAPE::GetEllipseCenter(), EDA_SHAPE::GetEllipseEndAngle(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), EDA_SHAPE::GetEllipseStartAngle(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetEndEnding(), EDA_SHAPE::GetEndingTangents(), EDA_SHAPE::GetHatching(), EDA_SHAPE::GetLineEndingEndpoints(), STROKE_PARAMS::GetLineStyle(), BOARD_ITEM::GetMaxError(), BOARD::GetPlotOptions(), EDA_SHAPE::GetPolyShape(), PCB_SHAPE::GetPosition(), EDA_SHAPE::GetRadius(), EDA_SHAPE::GetRectangleHeight(), EDA_SHAPE::GetRectangleWidth(), EDA_SHAPE::GetRectCorners(), EDA_SHAPE::GetShape(), LINE_ENDING::GetShapes(), EDA_SHAPE::GetShortenedBodyPolyPoints(), BOX2< Vec >::GetSizeMax(), PCB_SHAPE::GetSolderMaskExpansion(), EDA_SHAPE::GetStart(), EDA_SHAPE::GetStartEnding(), PCB_SHAPE::GetStroke(), LINE_ENDING::GetStrokeWidth(), LINE_ENDING::GetStyle(), PCB_SHAPE::GetWidth(), PCB_SHAPE::HasSolderMask(), SHAPE_POLY_SET::Inflate(), SHAPE_LINE_CHAIN::IsClosed(), SHAPE_POLY_SET::IsEmpty(), EDA_SHAPE::IsHatchedFill(), PCB_SHAPE::IsOnLayer(), IsSolderMaskLayer(), EDA_SHAPE::IsSolidFill(), m_biuTo3Dunits, EDA_SHAPE::MakeEffectiveShapes(), EDA_SHAPE::MakeEffectiveShapesForStroking(), SHAPE_POLY_SET::NewOutline(), next(), NONE, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), SHAPE_LINE_CHAIN::PointCount(), POLY, RECTANGLE, RotatePoint(), ROUND_ALL_CORNERS, SEGMENT, SHAPE_LINE_CHAIN::SetClosed(), KIGFX::RENDER_SETTINGS::SetDashLengthRatio(), KIGFX::RENDER_SETTINGS::SetGapLengthRatio(), SH_SEGMENT, EDA_SHAPE::SHAPE_T_asString(), EDA_SHAPE::ShortenArcForEndings(), EDA_SHAPE::ShortenedBezierPolyline(), EDA_SHAPE::ShortenSegmentForEndings(), 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 1024 of file create_3Dgraphic_brd_items.cpp.
References addShape(), addText(), PCB_TEXTBOX::GetPolygonalBoxShape(), PCB_TEXTBOX::IsBorderEnabled(), and UNDEFINED_LAYER.
|
private |
Definition at line 1056 of file create_3Dgraphic_brd_items.cpp.
References ConvertPolygonToTriangles(), ZONE::GetFilledPolysList(), and m_biuTo3Dunits.
Referenced by createLayers().
|
private |
Definition at line 1038 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, FOR_CANVAS, 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, and TO_SFVEC2F.
Referenced by addFootprintShapes(), addShape(), addShape(), addTable(), and createLayers().
|
inlinenoexcept |
Board integer units To 3D units.
Definition at line 158 of file board_adapter.h.
References m_biuTo3Dunits.
Referenced by createLayers(), GetFootprintMatrix(), and PCBNEW_JOBS_HANDLER::JobExportRender().
|
private |
Definition at line 1064 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 583 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 1112 of file board_adapter.cpp.
References _, BuildFootprintPolygonOutlines(), m_board, and m_board_poly.
Referenced by InitSettings().
| void BOARD_ADAPTER::CreateLayers | ( | std::shared_ptr< REPORTER > | aStatusReporter, |
| std::stop_token | aStop = std::stop_token() ) |
Creates the layers for the board, should be called after InitSettings.
| aStatusReporter | the pointer for the status reporter. |
| aStop |
Definition at line 633 of file board_adapter.cpp.
References _, createLayers(), GetLayerColors(), GetRunningMicroSecs(), LAYER_3D_ADHESIVE, LAYER_3D_B_COURTYARD, LAYER_3D_B_FAB, LAYER_3D_BACKGROUND_BOTTOM, LAYER_3D_BACKGROUND_TOP, LAYER_3D_BOARD, LAYER_3D_COPPER_TOP, LAYER_3D_F_COURTYARD, LAYER_3D_F_FAB, 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, m_AdhesiveColor, m_BCourtyardColor, m_BFabColor, m_BgColorBot, m_BgColorTop, m_BoardBodyColor, m_CopperColor, m_ECO1Color, m_ECO2Color, m_FCourtyardColor, m_FFabColor, m_SilkScreenColorBot, m_SilkScreenColorTop, m_SolderMaskColorBot, m_SolderMaskColorTop, m_SolderPasteColor, m_UserCommentsColor, m_UserDefinedLayerColor, and m_UserDrawingsColor.
Referenced by EDA_3D_VIEWER_FRAME::captureOpenGLScreenshot(), and EDA_3D_VIEWER_FRAME::captureRaytracingScreenshot().
|
private |
Definition at line 274 of file create_layer_items.cpp.
References _, CONTAINER_2D_BASE::Add(), addBarCode(), addFootprintShapes(), addPads(), addShape(), addSolidAreasShapes(), addTable(), addText(), LSET::AllNonCuMask(), B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, BiuTo3dUnits(), buildPadOutlineAsPolygon(), buildPadOutlineAsSegments(), CAPPED, 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(), drawPcbShapeWithStyle(), Dwgs_User, Eco1_User, Eco2_User, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::engine, ERROR_INSIDE, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, PCB_VIA::FlashLayer(), GetBoard(), BOARD::GetDesignSettings(), GetHolePlatingThickness(), DELETED_BOARD_ITEM::GetInstance(), BOARD_ITEM::GetMaxError(), PCB_TEXTBOX::GetPolygonalBoxShape(), GetRunningMicroSecs(), PCB_DIMENSION_BASE::GetShapes(), PCB_SHAPE::GetSolderMaskExpansion(), GetVisibleLayers(), STROKE_PARAMS::GetWidth(), PCB_SHAPE::HasSolderMask(), Is3dLayerEnabled(), IsBackLayer(), PCB_TEXTBOX::IsBorderEnabled(), IsExternalCopperLayer(), IsFrontLayer(), 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_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, m_SecondarydrillPolys, 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, 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 CreateLayers().
|
private |
Definition at line 517 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 382 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(), SHAPE_ELLIPSE::ConvertToPolyline(), CUSTOM, dummy, ERROR_INSIDE, PAD::GetEffectiveShape(), BOARD_ITEM::GetMaxError(), SHAPE_RECT::GetPosition(), SHAPE_SEGMENT::GetSeg(), PAD::GetShape(), PAD::GetSize(), SHAPE_RECT::GetSize(), SHAPE::GetWidth(), 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_ELLIPSE, 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 308 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_CONNECTED_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_CONNECTED_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 218 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 84 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 436 of file board_adapter.h.
References m_averageHoleDiameter.
|
inlinenoexcept |
Definition at line 441 of file board_adapter.h.
References m_averageTrackWidth.
|
inlinenoexcept |
Definition at line 431 of file board_adapter.h.
References m_averageViaHoleDiameter.
|
inlinenoexcept |
Definition at line 181 of file board_adapter.h.
References m_backCopperThickness3DU.
|
inlinenoexcept |
Get the container of counterbore cutout geometry for the back (bottom) side.
Definition at line 371 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 404 of file board_adapter.h.
References m_backCounterborePolys.
|
inlinenoexcept |
Get the container of countersink cutout geometry for the back (bottom) side.
Definition at line 388 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 420 of file board_adapter.h.
References m_backCountersinkPolys.
|
inlinenoexcept |
Definition at line 349 of file board_adapter.h.
References m_backdrillCutouts.
|
inline |
Definition at line 467 of file board_adapter.h.
References m_backPlatedCopperPolys.
|
inlinenoexcept |
Get the board outline bounding box.
Definition at line 165 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 170 of file board_adapter.h.
References m_boardBodyThickness3DU.
|
inlinenoexcept |
The board center position in 3D units.
Definition at line 207 of file board_adapter.h.
References m_boardCenter.
|
inlinenoexcept |
Get the current polygon of the epoxy board.
Definition at line 230 of file board_adapter.h.
References m_board_poly.
|
inlinenoexcept |
Get the board center.
Definition at line 200 of file board_adapter.h.
References m_boardPos.
|
inlinenoexcept |
Get the board size.
Definition at line 193 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 378 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 386 of file board_adapter.cpp.
References FULL_CIRCLE, GetArcToSegmentCount(), and m_board.
| [in] | aColor | is the color mapped. |
Definition at line 1209 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 676 of file board_adapter.cpp.
References DEFAULT_THEME, g_DefaultAdhesive, g_DefaultBackgroundBot, g_DefaultBackgroundTop, g_DefaultBoardBody, g_DefaultComments, g_DefaultCourtyardColor, g_DefaultECOs, g_DefaultFabColor, g_DefaultSilkscreen, g_DefaultSolderMask, g_DefaultSolderPaste, g_DefaultSurfaceFinish, COLOR_SETTINGS::GetColor(), GetColorSettings(), LAYER_3D_ADHESIVE, LAYER_3D_B_COURTYARD, LAYER_3D_B_FAB, LAYER_3D_BACKGROUND_BOTTOM, LAYER_3D_BACKGROUND_TOP, LAYER_3D_BOARD, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_TOP, LAYER_3D_F_COURTYARD, LAYER_3D_F_FAB, 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 1058 of file board_adapter.cpp.
References LAYER_3D_ADHESIVE, LAYER_3D_B_COURTYARD, LAYER_3D_B_FAB, LAYER_3D_BOARD, LAYER_3D_BOUNDING_BOXES, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_INNER_1, LAYER_3D_COPPER_INNER_30, LAYER_3D_COPPER_TOP, LAYER_3D_F_COURTYARD, LAYER_3D_F_FAB, 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.
| wxString BOARD_ADAPTER::GetFootprintLibraryPath | ( | const FOOTPRINT * | aFootprint | ) | const |
Return the directory of aFootprint's library.
3D model filenames stored relative to that library are resolved against this path.
Definition at line 330 of file board_adapter.cpp.
References PROJECT_PCB::FootprintLibAdapter(), FOOTPRINT::GetFPID(), LIBRARY_MANAGER::GetFullURI(), LIB_ID::GetLibNickname(), LIBRARY_MANAGER_ADAPTER::GetRow(), m_3dModelManager, m_board, and project.
| glm::mat4 BOARD_ADAPTER::GetFootprintMatrix | ( | const FOOTPRINT & | aFootprint | ) | const |
Build the transform from footprint-local model units to 3D world units.
Model matrices from CalcModelMatrix() are applied after this one.
Definition at line 1174 of file board_adapter.cpp.
References EDA_ANGLE::AsRadians(), BiuTo3dUnits(), GetFootprintZPos(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPosition(), FOOTPRINT::IsFlipped(), EDA_ANGLE::IsZero(), pcbIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.
| 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 1157 of file board_adapter.cpp.
References B_Paste, F_Paste, m_layerZcoordBottom, and m_layerZcoordTop.
Referenced by GetFootprintMatrix().
|
inlinenoexcept |
Get the copper layer thicknesses (in 3D units).
Definition at line 180 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 363 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 396 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 380 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 412 of file board_adapter.h.
References m_frontCountersinkPolys.
|
inline |
Definition at line 462 of file board_adapter.h.
References m_frontPlatedCopperPolys.
|
inlinenoexcept |
Definition at line 426 of file board_adapter.h.
References m_holeCount.
|
inlinenoexcept |
Definition at line 472 of file board_adapter.h.
References m_layerHoleIdPolys.
|
inlinenoexcept |
Definition at line 473 of file board_adapter.h.
References m_layerHoleOdPolys.
|
noexcept |
Get the hole plating thickness (NB: in BOARD UNITS!).
Definition at line 371 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 270 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 1198 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 709 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 CreateLayers().
|
inlinenoexcept |
Definition at line 291 of file board_adapter.h.
References m_layerHoleMap.
|
inlinenoexcept |
Get the map of containers that have the objects per layer.
Definition at line 285 of file board_adapter.h.
References m_layerMap.
|
inlinenoexcept |
Get the top z position.
| aLayerId | layer id. |
Definition at line 254 of file board_adapter.h.
References m_boardBodyThickness3DU, and m_layerZcoordTop.
|
inlinenoexcept |
Get the non copper layers thickness (in 3D units).
Definition at line 175 of file board_adapter.h.
References m_nonCopperLayerThickness3DU.
|
inlinenoexcept |
Definition at line 317 of file board_adapter.h.
References m_NPTH_ODPolys.
|
inlinenoexcept |
Definition at line 289 of file board_adapter.h.
References m_offboardPadsBack.
|
inlinenoexcept |
Definition at line 288 of file board_adapter.h.
References m_offboardPadsFront.
|
inlinenoexcept |
Definition at line 287 of file board_adapter.h.
References m_platedPadsBack.
|
inlinenoexcept |
Definition at line 286 of file board_adapter.h.
References m_platedPadsFront.
|
inlinenoexcept |
Get map of polygon's layers.
Definition at line 460 of file board_adapter.h.
References m_layers_poly.
|
inlinenoexcept |
Get the secondary and tertiary drill polygons.
Definition at line 339 of file board_adapter.h.
References m_SecondarydrillPolys.
| SFVEC2F BOARD_ADAPTER::GetSphericalCoord | ( | int | i | ) | const |
Definition at line 1215 of file board_adapter.cpp.
References m_Cfg.
|
inlinenoexcept |
Definition at line 354 of file board_adapter.h.
References m_tertiarydrillCutouts.
|
inlinenoexcept |
Definition at line 344 of file board_adapter.h.
References m_TertiarydrillPolys.
|
inlinenoexcept |
Definition at line 292 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 302 of file board_adapter.h.
References m_TH_ODPolys.
|
inlinenoexcept |
Definition at line 293 of file board_adapter.h.
References m_TH_ODs.
| bool BOARD_ADAPTER::GetUseBoardEditorCopperLayerColors | ( | ) | const |
Definition at line 1106 of file board_adapter.cpp.
|
inlinenoexcept |
Definition at line 307 of file board_adapter.h.
References m_viaAnnuli.
|
inlinenoexcept |
Definition at line 312 of file board_adapter.h.
References m_viaAnnuliPolys.
|
inlinenoexcept |
Definition at line 425 of file board_adapter.h.
References m_viaCount.
|
inlinenoexcept |
Definition at line 330 of file board_adapter.h.
References m_viaTH_ODPolys.
|
inlinenoexcept |
Definition at line 325 of file board_adapter.h.
References m_viaTH_ODs.
| std::bitset< LAYER_3D_END > BOARD_ADAPTER::GetVisibleLayers | ( | ) | const |
Definition at line 886 of file board_adapter.cpp.
References B_CrtYd, B_Cu, B_Fab, B_Mask, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, F_Adhes, F_CrtYd, F_Cu, F_Fab, 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_B_COURTYARD, LAYER_3D_B_FAB, LAYER_3D_BOARD, LAYER_3D_BOUNDING_BOXES, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_INNER_1, LAYER_3D_COPPER_INNER_30, LAYER_3D_COPPER_TOP, LAYER_3D_F_COURTYARD, LAYER_3D_F_FAB, 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_copperLayersCount, m_IsPreviewer, m_visibilityOverride, Map3DLayerToPCBLayer(), MapPCBLayerTo3DLayer(), and BASE_SET::set().
Referenced by createLayers(), APPEARANCE_CONTROLS_3D::doApplyLayerPreset(), and PCBNEW_JOBS_HANDLER::JobExportRender().
| void BOARD_ADAPTER::InitSettings | ( | std::shared_ptr< REPORTER > | aStatusReporter, |
| std::shared_ptr< REPORTER > | aWarningReporter ) |
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 394 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(), 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(), BOARD_STACKUP::GetList(), BOX2< Vec >::GetSize(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Inflate(), IsCopperLayer(), layerThicknessMargin, m_backCopperThickness3DU, m_backMaskThickness3DU, m_biuTo3Dunits, m_board, m_boardBodyThickness3DU, m_boardBoundingBox, m_boardCenter, m_boardPos, m_boardSize, m_copperLayersCount, m_frontCopperThickness3DU, m_frontMaskThickness3DU, m_layerZcoordBottom, m_layerZcoordTop, m_logTrace, m_nonCopperLayerThickness3DU, m_solderPasteLayerThickness3DU, PCB_LAYER_ID_COUNT, pcbIUScale, RANGE_SCALE_3D, ReloadColorSettings(), 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. |
| aVisibilityFlags | is the layer visibility to determine if aLayer is enabled. |
Definition at line 254 of file board_adapter.cpp.
References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, LAYER_3D_ADHESIVE, LAYER_3D_B_COURTYARD, LAYER_3D_B_FAB, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_TOP, LAYER_3D_F_COURTYARD, LAYER_3D_F_FAB, 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 | ( | const FOOTPRINT * | aFootprint | ) | const |
Test if footprint should be displayed in relation to attributes and the flags.
Definition at line 295 of file board_adapter.cpp.
References FP_SMD, FP_THROUGH_HOLE, FOOTPRINT::GetAttributes(), FOOTPRINT::GetDNPForVariant(), FOOTPRINT::GetExcludedFromPosFilesForVariant(), m_board, m_Cfg, and m_IsPreviewer.
|
noexcept |
Definition at line 244 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.
| aCacheMgr | is the pointer to the 3D cache manager. |
Definition at line 83 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 112 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 826 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(), and PCBNEW_JOBS_HANDLER::JobExportRender().
|
inline |
Temporarily override preview visibility without changing the saved render settings.
Definition at line 130 of file board_adapter.h.
References LAYER_3D_END, m_visibilityOverride, and SetVisibilityOverride().
Referenced by SetVisibilityOverride().
| void BOARD_ADAPTER::SetVisibleLayers | ( | const std::bitset< LAYER_3D_END > & | aLayers | ) |
Definition at line 842 of file board_adapter.cpp.
References LAYER_3D_ADHESIVE, LAYER_3D_B_COURTYARD, LAYER_3D_B_FAB, LAYER_3D_BOARD, LAYER_3D_BOUNDING_BOXES, LAYER_3D_COPPER_BOTTOM, LAYER_3D_COPPER_INNER_1, LAYER_3D_COPPER_INNER_30, LAYER_3D_COPPER_TOP, LAYER_3D_F_COURTYARD, LAYER_3D_F_FAB, 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(), and PCBNEW_JOBS_HANDLER::JobExportRender().
|
inline |
Definition at line 475 of file board_adapter.h.
References m_Cfg, and m_IsPreviewer.
|
static |
Definition at line 533 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
static |
Definition at line 540 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 536 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 535 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 542 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 543 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 546 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 544 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 545 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 537 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 538 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 539 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 541 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 532 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
static |
Definition at line 530 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
static |
Definition at line 531 of file board_adapter.h.
Referenced by BOARD_ADAPTER().
|
static |
Definition at line 529 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
private |
Definition at line 581 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), Get3dCacheManager(), GetFootprintLibraryPath(), and Set3dCacheManager().
| SFVEC4F BOARD_ADAPTER::m_AdhesiveColor |
Definition at line 562 of file board_adapter.h.
Referenced by CreateLayers().
|
private |
Definition at line 656 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageHoleDiameter().
|
private |
Definition at line 652 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageTrackWidth().
|
private |
Definition at line 654 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageViaHoleDiameter().
|
private |
Definition at line 644 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBackCopperThickness(), GetLayerBottomZPos(), and InitSettings().
|
private |
Counterbore cutouts on back (bottom)
Definition at line 631 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackCounterboreCutouts().
|
private |
Counterbore outer diameters on back.
Definition at line 608 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackCounterborePolys().
|
private |
Countersink cutouts on back (bottom)
Definition at line 633 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackCountersinkCutouts().
|
private |
Countersink outer diameters on back.
Definition at line 610 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackCountersinkPolys().
|
private |
Backdrill cutouts.
Definition at line 627 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetBackdrillCutouts().
|
private |
Definition at line 648 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Definition at line 594 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetBackPlatedCopperPolys().
| SFVEC4F BOARD_ADAPTER::m_BCourtyardColor |
Definition at line 573 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_BFabColor |
Definition at line 571 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_BgColorBot |
background bottom color
Definition at line 556 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_BgColorTop |
background top color
Definition at line 557 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
|
private |
Scale factor to convert board internal units.
to 3D units normalized between -1.0 and 1.0.
Definition at line 637 of file board_adapter.h.
Referenced by addBarCode(), addShape(), addSolidAreasShapes(), addText(), BiuTo3dUnits(), BOARD_ADAPTER(), createLayers(), createPadWithMargin(), GetCircleSegmentCount(), and InitSettings().
|
private |
Definition at line 580 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createBoardPolygon(), createLayers(), GetBoard(), GetCircleSegmentCount(), GetFootprintLibraryPath(), GetHolePlatingThickness(), GetLayerColors(), GetUseBoardEditorCopperLayerColors(), GetVisibleLayers(), InitSettings(), Is3dLayerEnabled(), IsFootprintShown(), and SetBoard().
|
private |
Board outline polygon.
Definition at line 612 of file board_adapter.h.
Referenced by createBoardPolygon(), createLayers(), and GetBoardPoly().
| SFVEC4F BOARD_ADAPTER::m_BoardBodyColor |
Definition at line 558 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
|
private |
Definition at line 645 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 588 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 587 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 577 of file board_adapter.h.
Referenced by GetLayerColor(), and ReloadColorSettings().
|
private |
Board center position in board internal units.
Definition at line 585 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardPos(), and InitSettings().
|
private |
Board size in board internal units.
Definition at line 586 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardSize(), and InitSettings().
| EDA_3D_VIEWER_SETTINGS* BOARD_ADAPTER::m_Cfg |
Definition at line 549 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(), ShowMissingModels(), and EDA_3D_CONTROLLER::ToggleRaytracing().
| std::map<int, COLOR4D> BOARD_ADAPTER::m_ColorOverrides |
allows to override color scheme colors
Definition at line 576 of file board_adapter.h.
Referenced by GetLayerColors(), and PCBNEW_JOBS_HANDLER::JobExportRender().
| SFVEC4F BOARD_ADAPTER::m_CopperColor |
Definition at line 565 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
|
private |
Definition at line 635 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), GetVisibleLayers(), and InitSettings().
| SFVEC4F BOARD_ADAPTER::m_ECO1Color |
Definition at line 568 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_ECO2Color |
Definition at line 569 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_FCourtyardColor |
Definition at line 572 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_FFabColor |
Definition at line 570 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
|
private |
Definition at line 643 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetFrontCopperThickness(), and InitSettings().
|
private |
Counterbore cutouts on front (top)
Definition at line 630 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetFrontCounterboreCutouts().
|
private |
Counterbore outer diameters on front.
Definition at line 607 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetFrontCounterborePolys().
|
private |
Countersink cutouts on front (top)
Definition at line 632 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetFrontCountersinkCutouts().
|
private |
Countersink outer diameters on front.
Definition at line 609 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetFrontCountersinkPolys().
|
private |
Definition at line 647 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Definition at line 593 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetFrontPlatedCopperPolys().
|
private |
Definition at line 655 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetHoleCount().
| bool BOARD_ADAPTER::m_IsBoardView |
Definition at line 551 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 553 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetVisibleLayers(), IsFootprintShown(), and ShowMissingModels().
|
private |
Hole inner diameters (per layer)
Definition at line 597 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleIdPolysMap().
|
private |
Holes for each layer.
Definition at line 615 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerHoleMap().
|
private |
Hole outer diameters (per layer)
Definition at line 596 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleOdPolysMap().
|
private |
2D elements for each layer.
Definition at line 614 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerMap().
|
private |
Amalgamated polygon contours for various types of items.
Definition at line 590 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetPolyMap().
|
private |
Bottom (Start) Z pos of each layer.
Definition at line 641 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 640 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetFootprintZPos(), GetLayerTopZPos(), and InitSettings().
| bool BOARD_ADAPTER::m_MousewheelPanning |
Definition at line 552 of file board_adapter.h.
Referenced by BOARD_ADAPTER().
|
private |
Definition at line 646 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetNonCopperLayerThickness(), and InitSettings().
|
private |
NPTH outer diameters.
Definition at line 602 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetNPTH_ODPolys().
|
private |
Definition at line 620 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetOffboardPadsBack().
|
private |
Definition at line 619 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetOffboardPadsFront().
|
private |
Definition at line 618 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetPlatedPadsBack().
|
private |
Definition at line 617 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetPlatedPadsFront().
|
private |
Board secondary dril polygons F.Cu->in.
Definition at line 599 of file board_adapter.h.
Referenced by createLayers(), and GetSecondarydrillPolys().
| SFVEC4F BOARD_ADAPTER::m_SilkScreenColorBot |
Definition at line 563 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_SilkScreenColorTop |
Definition at line 564 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_SolderMaskColorBot |
Definition at line 559 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_SolderMaskColorTop |
Definition at line 560 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_SolderPasteColor |
Definition at line 561 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
|
private |
Definition at line 649 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Tertiary drill cutouts.
Definition at line 628 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetTertiarydrillCutouts().
|
private |
Board tertiary drill polygons B.Cu->in.
Definition at line 600 of file board_adapter.h.
Referenced by createLayers(), and GetTertiarydrillPolys().
|
private |
List of PTH inner diameters.
Definition at line 623 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetTH_IDs().
|
private |
PTH outer diameters.
Definition at line 603 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetTH_ODPolys().
|
private |
List of PTH outer diameters.
Definition at line 622 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetTH_ODs().
|
private |
Definition at line 651 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and createLayers().
| SFVEC4F BOARD_ADAPTER::m_UserCommentsColor |
Definition at line 567 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
| SFVEC4F BOARD_ADAPTER::m_UserDefinedLayerColor[45] |
Definition at line 574 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), CreateLayers(), and SetLayerColors().
| SFVEC4F BOARD_ADAPTER::m_UserDrawingsColor |
Definition at line 566 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and CreateLayers().
|
private |
List of via annular rings.
Definition at line 624 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetViaAnnuli().
|
private |
Via annular ring outer diameters.
Definition at line 605 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetViaAnnuliPolys().
|
private |
Definition at line 653 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetViaCount().
|
private |
Via hole outer diameters.
Definition at line 604 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetViaTH_ODPolys().
|
private |
List of via hole outer diameters.
Definition at line 625 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetViaTH_ODs().
|
private |
Definition at line 583 of file board_adapter.h.
Referenced by GetVisibleLayers(), and SetVisibilityOverride().