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. | |
void | GetBoardEditorCopperLayerColors (PCBNEW_SETTINGS *aCfg) |
Build the copper color list used by the board editor, and store it in m_BoardEditorColors. | |
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 | 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 outling 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 (PCB_LAYER_ID aLayerId) const |
Get the technical color of a layer. | |
SFVEC4F | GetItemColor (int aItemId) 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 |
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 * | GetFrontPlatedPadAndGraphicPolys () |
const SHAPE_POLY_SET * | GetBackPlatedPadAndGraphicPolys () |
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 |
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 | createPadWithHole (const PAD *aPad, CONTAINER_2D_BASE *aDstContainer, int aInflateValue) |
void | addPads (const FOOTPRINT *aFootprint, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId, bool aSkipPlatedPads, bool aSkipNonPlatedPads) |
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 | 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 72 of file board_adapter.h.
BOARD_ADAPTER::BOARD_ADAPTER | ( | ) |
Definition at line 87 of file board_adapter.cpp.
References ADD_COLOR, BVH_CONTAINER_2D::Clear(), 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_averageHoleDiameter, m_averageTrackWidth, m_averageViaHoleDiameter, m_backCopperThickness3DU, m_backPlatedCopperPolys, m_backPlatedPadAndGraphicPolys, m_BgColorBot, m_BgColorTop, m_biuTo3Dunits, m_BoardBodyColor, m_boardBodyThickness3DU, m_boardBoundingBox, m_boardCenter, m_boardPos, m_boardSize, m_CopperColor, m_copperLayersCount, m_ECO1Color, m_ECO2Color, m_frontCopperThickness3DU, m_frontPlatedCopperPolys, m_frontPlatedPadAndGraphicPolys, m_holeCount, m_logTrace, 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_UserDrawingsColor, m_viaAnnuli, m_viaCount, NotSpecifiedPrm(), ReloadColorSettings(), BBOX_3D::Reset(), and SOLDERPASTE_LAYER_THICKNESS.
BOARD_ADAPTER::~BOARD_ADAPTER | ( | ) |
Definition at line 220 of file board_adapter.cpp.
References destroyLayers().
|
private |
Definition at line 181 of file create_3Dgraphic_brd_items.cpp.
References 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_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, and text.
Referenced by createLayers().
|
private |
Definition at line 496 of file create_3Dgraphic_brd_items.cpp.
References B_Cu, B_Mask, B_Paste, createPadWithMargin(), F_Cu, F_Mask, F_Paste, IsCopperLayer(), pad, FOOTPRINT::Pads(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by createLayers().
|
private |
Definition at line 143 of file create_3Dgraphic_brd_items.cpp.
References SEG::A, addRING_2D(), addROUND_SEGMENT_2D(), addText(), SEG::B, PCB_DIMENSION_BASE::GetLineThickness(), PCB_DIMENSION_BASE::GetShapes(), SH_CIRCLE, SH_SEGMENT, TO_3DU, and TO_SFVEC2F.
|
private |
Definition at line 608 of file create_3Dgraphic_brd_items.cpp.
References addFILLED_CIRCLE_2D(), addRING_2D(), addROUND_SEGMENT_2D(), ARC_HIGH_DEF, ConvertPolygonToTriangles(), createArcSegments(), ERROR_INSIDE, EDA_SHAPE::GetArcAngle(), BOARD_ITEM::GetBoard(), GetBoard(), PCB_SHAPE::GetBoundingBox(), PCB_SHAPE::GetCenter(), GetCircleSegmentCount(), PCB_PLOT_PARAMS::GetDashedLineDashRatio(), PCB_PLOT_PARAMS::GetDashedLineGapRatio(), EDA_SHAPE::GetEnd(), PCB_SHAPE::GetLayer(), STROKE_PARAMS::GetLineStyle(), BOARD::GetPlotOptions(), EDA_SHAPE::GetRadius(), 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::IsFilled(), IsSolderMaskLayer(), m_biuTo3Dunits, EDA_SHAPE::MakeEffectiveShapes(), SHAPE_POLY_SET::PM_FAST, KIGFX::RENDER_SETTINGS::SetDashLengthRatio(), KIGFX::RENDER_SETTINGS::SetGapLengthRatio(), EDA_SHAPE::SHAPE_T_asString(), SHAPE_POLY_SET::Simplify(), STROKE_PARAMS::Stroke(), TO_3DU, TO_SFVEC2F, PCB_SHAPE::TransformShapeToPolygon(), and UNDEFINED_LAYER.
Referenced by addFootprintShapes(), addShape(), and createLayers().
|
private |
Definition at line 754 of file create_3Dgraphic_brd_items.cpp.
References addShape(), addText(), ARC_HIGH_DEF, ConvertPolygonToTriangles(), ERROR_INSIDE, EDA_SHAPE::GetShape(), PCB_TEXTBOX::IsBorderEnabled(), m_biuTo3Dunits, and UNDEFINED_LAYER.
|
private |
Definition at line 793 of file create_3Dgraphic_brd_items.cpp.
References ConvertPolygonToTriangles(), ZONE::GetFilledPolysList(), and m_biuTo3Dunits.
|
private |
Definition at line 782 of file create_3Dgraphic_brd_items.cpp.
References addText(), and PCB_TABLE::GetCells().
Referenced by addFootprintShapes(), and createLayers().
|
private |
Definition at line 96 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), addROUND_SEGMENT_2D(), ConvertPolygonToTriangles(), KIFONT::FONT::Draw(), ERROR_INSIDE, EDA_TEXT::GetAttributes(), BOARD::GetDesignSettings(), EDA_TEXT::GetDrawPos(), EDA_TEXT::GetDrawRotation(), EDA_TEXT::GetEffectiveTextPenWidth(), EDA_TEXT::GetFont(), KIFONT::FONT::GetFont(), BOARD_ITEM::GetFontMetrics(), EDA_TEXT::GetShownText(), EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), BOARD_ITEM::IsKnockout(), TEXT_ATTRIBUTES::m_Angle, m_biuTo3Dunits, m_board, BOARD_DESIGN_SETTINGS::m_MaxError, TO_3DU, TO_SFVEC2F, and PCB_TEXT::TransformTextToPolySet().
Referenced by addFootprintShapes(), addShape(), addTable(), and createLayers().
|
inlinenoexcept |
Board integer units To 3D units.
Definition at line 140 of file board_adapter.h.
References m_biuTo3Dunits.
Referenced by RENDER_3D_OPENGL::createBoard(), createLayers(), RENDER_3D_OPENGL::generate3dGrid(), RENDER_3D_OPENGL::generateHoles(), RENDER_3D_OPENGL::generateLayerList(), RENDER_3D_OPENGL::generateViasAndPads(), RENDER_3D_OPENGL::get3dModelsFromFootprint(), RENDER_3D_RAYTRACE_BASE::insertHole(), PCBNEW_JOBS_HANDLER::JobExportRender(), RENDER_3D_RAYTRACE_BASE::load3DModels(), RENDER_3D_RAYTRACE_BASE::Reload(), and RENDER_3D_RAYTRACE_BASE::setupMaterials().
|
private |
Definition at line 802 of file create_3Dgraphic_brd_items.cpp.
References addRING_2D(), addROUND_SEGMENT_2D(), ERROR_INSIDE, PAD::GetEffectivePolygon(), PAD::GetShape(), PAD::GetSize(), path, PAD::ShapePos(), TO_3DU, TO_SFVEC2F, and VECTOR2< T >::x.
|
private |
Definition at line 561 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 933 of file board_adapter.cpp.
References _, BuildFootprintPolygonOutlines(), BOARD::GetBoardPolygonOutlines(), BOARD::GetDesignSettings(), BOARD::GetFirstFootprint(), BOARD::GetOutlinesChainingEpsilon(), BOARD::IsFootprintHolder(), m_board, m_board_poly, BOARD_DESIGN_SETTINGS::m_MaxError, SHAPE_POLY_SET::PM_STRICTLY_SIMPLE, SHAPE_POLY_SET::RemoveAllContours(), and SHAPE_POLY_SET::Simplify().
Referenced by InitSettings().
|
private |
Definition at line 152 of file create_layer_items.cpp.
References _, CONTAINER_2D_BASE::Add(), addFootprintShapes(), addPads(), addShape(), addTable(), addText(), B_Cu, BiuTo3dUnits(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::clip_silk_on_via_annuli, createPadWithHole(), createTrackWithMargin(), destroyLayers(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::DifferentiatePlatedCopper(), BOARD::Drawings(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::engine, ERROR_INSIDE, F_Cu, PCB_VIA::FlashLayer(), BOARD::Footprints(), BOARD::GetDesignSettings(), GetHolePlatingThickness(), GetRunningMicroSecs(), GetVisibleLayers(), Is3dLayerEnabled(), PCB_TRACK::IsOnLayer(), KiROUND(), m_averageHoleDiameter, m_averageTrackWidth, m_averageViaHoleDiameter, m_backPlatedCopperPolys, m_backPlatedPadAndGraphicPolys, m_biuTo3Dunits, m_board, m_Cfg, m_copperLayersCount, m_frontPlatedCopperPolys, m_frontPlatedPadAndGraphicPolys, m_holeCount, m_layerHoleIdPolys, m_layerHoleMap, m_layerHoleOdPolys, m_layerMap, m_layers_poly, m_logTrace, BOARD_DESIGN_SETTINGS::m_MaxError, m_NPTH_ODPolys, m_offboardPadsBack, m_offboardPadsFront, m_platedPadsBack, m_platedPadsFront, EDA_3D_VIEWER_SETTINGS::m_Render, m_TH_IDs, m_TH_ODPolys, m_TH_ODs, m_trackCount, m_viaAnnuli, m_viaAnnuliPolys, m_viaCount, m_viaTH_ODPolys, m_viaTH_ODs, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::opengl_copper_thickness, pad, 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, PCB_VIA_T, REPORTER::Report(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_off_board_silk, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_zones, text, BOARD::Tracks(), TransformCircleToPolygon(), transformFPShapesToPolySet(), PCB_TRACK::TransformShapeToPolygon(), PCB_TEXTBOX::TransformTextToPolySet(), EDA_ITEM::Type(), via, VECTOR2< T >::x, and BOARD::Zones().
Referenced by InitSettings().
|
private |
Definition at line 477 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 352 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, ConvertPolygonToTriangles(), SHAPE_ARC::ConvertToPolyline(), dummy, ERROR_INSIDE, GetBoard(), SHAPE_CIRCLE::GetCenter(), BOARD::GetDesignSettings(), PAD::GetEffectiveShape(), SHAPE_RECT::GetPosition(), SHAPE_CIRCLE::GetRadius(), SHAPE_SEGMENT::GetSeg(), PAD::GetShape(), SHAPE_RECT::GetSize(), PAD::GetSize(), SHAPE_ARC::GetWidth(), SHAPE_SEGMENT::GetWidth(), SHAPE_POLY_SET::Inflate(), SHAPE_POLY_SET::IsEmpty(), m_biuTo3Dunits, BOARD_DESIGN_SETTINGS::m_MaxError, SHAPE_POLY_SET::NewOutline(), 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, SHAPE_SIMPLE::Vertices(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by addPads().
|
private |
Definition at line 276 of file create_3Dgraphic_brd_items.cpp.
References std::abs(), addFILLED_CIRCLE_2D(), addROUND_SEGMENT_2D(), ARC_HIGH_DEF, EDA_ANGLE::AsDegrees(), createArcSegments(), createTrackWithMargin(), PCB_ARC::GetAngle(), GetArcToSegmentCount(), PCB_ARC::GetCenter(), PCB_TRACK::GetEnd(), BOARD_ITEM::GetLayer(), 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, 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 106 of file create_layer_items.cpp.
References BVH_CONTAINER_2D::Clear(), DELETE_AND_FREE, DELETE_AND_FREE_MAP, m_backPlatedCopperPolys, m_backPlatedPadAndGraphicPolys, m_frontPlatedCopperPolys, m_frontPlatedPadAndGraphicPolys, m_layerHoleIdPolys, m_layerHoleMap, m_layerHoleOdPolys, m_layerMap, m_layers_poly, m_NPTH_ODPolys, m_offboardPadsBack, m_offboardPadsFront, m_platedPadsBack, m_platedPadsFront, m_TH_IDs, m_TH_ODPolys, m_TH_ODs, m_viaAnnuli, m_viaAnnuliPolys, m_viaTH_ODPolys, m_viaTH_ODs, and SHAPE_POLY_SET::RemoveAllContours().
Referenced by createLayers(), and ~BOARD_ADAPTER().
|
inlinenoexcept |
Definition at line 85 of file board_adapter.h.
References m_3dModelManager.
Referenced by RENDER_3D_RAYTRACE_BASE::load3DModels(), and RENDER_3D_OPENGL::load3dModels().
|
inlinenoexcept |
Definition at line 329 of file board_adapter.h.
References m_averageHoleDiameter.
Referenced by RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Definition at line 334 of file board_adapter.h.
References m_averageTrackWidth.
|
inlinenoexcept |
Definition at line 324 of file board_adapter.h.
References m_averageViaHoleDiameter.
Referenced by RENDER_3D_OPENGL::generateViasAndPads(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Definition at line 163 of file board_adapter.h.
References m_backCopperThickness3DU.
Referenced by RENDER_3D_RAYTRACE_BASE::insertHole(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inline |
Definition at line 356 of file board_adapter.h.
References m_backPlatedPadAndGraphicPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Get the board outling bounding box.
Definition at line 147 of file board_adapter.h.
References m_boardBoundingBox.
Referenced by NL_3D_VIEWER_PLUGIN_IMPL::GetHitLookAt(), NL_3D_VIEWER_PLUGIN_IMPL::GetModelExtents(), NL_FOOTPRINT_PROPERTIES_PLUGIN_IMPL::GetModelExtents(), EDA_3D_CANVAS::move_pivot_based_on_cur_mouse_position(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Definition at line 106 of file board_adapter.h.
References m_board.
Referenced by RENDER_3D_RAYTRACE_BASE::addPadsAndVias(), addShape(), RENDER_3D_OPENGL::createBoard(), createPadWithMargin(), RENDER_3D_OPENGL::generateViasAndPads(), RENDER_3D_OPENGL::get3dModelsSelected(), RENDER_3D_RAYTRACE_BASE::load3DModels(), RENDER_3D_OPENGL::load3dModels(), RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Get the board body thickness, including internal copper layers (in 3D units).
Definition at line 152 of file board_adapter.h.
References m_boardBodyThickness3DU.
Referenced by RENDER_3D_OPENGL::renderBoardBody().
|
inlinenoexcept |
The board center position in 3D units.
Definition at line 189 of file board_adapter.h.
References m_boardCenter.
Referenced by RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE_BASE::Reload().
void BOARD_ADAPTER::GetBoardEditorCopperLayerColors | ( | PCBNEW_SETTINGS * | aCfg | ) |
Build the copper color list used by the board editor, and store it in m_BoardEditorColors.
Definition at line 611 of file board_adapter.cpp.
References LSET::AllCuMask(), B_Cu, F_Cu, COLOR_SETTINGS::GetColor(), SETTINGS_MANAGER::GetColorSettings(), PGM_BASE::GetSettingsManager(), m_BoardEditorColors, APP_SETTINGS_BASE::m_ColorTheme, m_copperLayersCount, and Pgm().
Referenced by ReloadColorSettings().
|
inlinenoexcept |
Get the current polygon of the epoxy board.
Definition at line 205 of file board_adapter.h.
References m_board_poly.
Referenced by RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Get the board center.
Definition at line 182 of file board_adapter.h.
References m_boardPos.
Referenced by RENDER_3D_OPENGL::generate3dGrid().
|
inlinenoexcept |
Get the board size.
Definition at line 175 of file board_adapter.h.
References m_boardSize.
Referenced by RENDER_3D_OPENGL::generate3dGrid().
unsigned int BOARD_ADAPTER::GetCircleSegmentCount | ( | float | aDiameter3DU | ) | const |
aDiameter3DU | diameter in 3DU. |
Definition at line 312 of file board_adapter.cpp.
References GetCircleSegmentCount(), and m_biuTo3Dunits.
Referenced by RENDER_3D_OPENGL::addObjectTriangles(), addShape(), RENDER_3D_OPENGL::generateViasAndPads(), and GetCircleSegmentCount().
unsigned int BOARD_ADAPTER::GetCircleSegmentCount | ( | int | aDiameterBIU | ) | const |
aDiameterBIU | diameter in board internal units. |
Definition at line 320 of file board_adapter.cpp.
References ARC_HIGH_DEF, FULL_CIRCLE, and GetArcToSegmentCount().
[in] | aColor | is the color mapped. |
Definition at line 1013 of file board_adapter.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, and KIGFX::COLOR4D::r.
Referenced by RENDER_3D_OPENGL::generate3dGrid(), GetItemColor(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_OPENGL::renderOpaqueModels(), and RENDER_3D_OPENGL::renderTransparentModels().
std::map< int, COLOR4D > BOARD_ADAPTER::GetDefaultColors | ( | ) | const |
Definition at line 588 of file board_adapter.cpp.
References g_DefaultBackgroundBot, g_DefaultBackgroundTop, g_DefaultBoardBody, g_DefaultComments, g_DefaultECOs, g_DefaultSilkscreen, g_DefaultSolderMask, g_DefaultSolderPaste, g_DefaultSurfaceFinish, 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_COMMENTS, LAYER_3D_USER_DRAWINGS, LAYER_3D_USER_ECO1, and LAYER_3D_USER_ECO2.
Referenced by GetLayerColors(), and APPEARANCE_CONTROLS_3D::rebuildLayers().
std::bitset< LAYER_3D_END > BOARD_ADAPTER::GetDefaultVisibleLayers | ( | ) | const |
Definition at line 897 of file board_adapter.cpp.
References LAYER_3D_ADHESIVE, LAYER_3D_AXES, 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_OFF_BOARD_SILK, 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_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 980 of file board_adapter.cpp.
References B_Paste, F_Paste, m_layerZcoordBottom, and m_layerZcoordTop.
Referenced by RENDER_3D_OPENGL::get3dModelsFromFootprint(), and RENDER_3D_RAYTRACE_BASE::load3DModels().
|
inlinenoexcept |
Get the copper layer thicknesses (in 3D units).
Definition at line 162 of file board_adapter.h.
References m_frontCopperThickness3DU.
Referenced by RENDER_3D_RAYTRACE_BASE::insertHole(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inline |
Definition at line 355 of file board_adapter.h.
References m_frontPlatedPadAndGraphicPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 319 of file board_adapter.h.
References m_holeCount.
Referenced by RENDER_3D_OPENGL::generateViasAndPads(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Definition at line 357 of file board_adapter.h.
References m_layerHoleIdPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 358 of file board_adapter.h.
References m_layerHoleOdPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
noexcept |
Get the hole plating thickness (NB: in BOARD UNITS!).
Definition at line 305 of file board_adapter.cpp.
References DEFAULT_COPPER_THICKNESS, BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetHolePlatingThickness(), and m_board.
Referenced by createLayers(), RENDER_3D_OPENGL::generateViasAndPads(), and RENDER_3D_RAYTRACE_BASE::insertHole().
SFVEC4F BOARD_ADAPTER::GetItemColor | ( | int | aItemId | ) | const |
Get the technical color of a layer.
aItemId | the item id to get the color information. |
Definition at line 1007 of file board_adapter.cpp.
References GetColor(), COLOR_SETTINGS::GetColor(), and m_colors.
|
inlinenoexcept |
Get the bottom z position.
aLayerId | layer id. |
Definition at line 253 of file board_adapter.h.
References m_backCopperThickness3DU, m_boardBodyThickness3DU, and m_layerZcoordBottom.
Referenced by RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), RENDER_3D_OPENGL::getLayerZPos(), RENDER_3D_RAYTRACE_BASE::insertHole(), RENDER_3D_OPENGL::Redraw(), and RENDER_3D_RAYTRACE_BASE::Reload().
SFVEC4F BOARD_ADAPTER::GetLayerColor | ( | PCB_LAYER_ID | aLayerId | ) | const |
Get the technical color of a layer.
aLayerId | the layer to get the color information. |
Definition at line 997 of file board_adapter.cpp.
References color, COLOR_SETTINGS::GetColor(), m_colors, and PCB_LAYER_ID_COUNT.
Referenced by RENDER_3D_OPENGL::setLayerMaterial().
std::map< int, COLOR4D > BOARD_ADAPTER::GetLayerColors | ( | ) | const |
Build a color list which is used to store colors layers.
Definition at line 629 of file board_adapter.cpp.
References KIGFX::COLOR4D::a, BS_ITEM_TYPE_DIELECTRIC, BS_ITEM_TYPE_SILKSCREEN, BS_ITEM_TYPE_SOLDERMASK, color, F_Mask, F_SilkS, EDA_3D_VIEWER_SETTINGS::FindPreset(), g_BoardColors, g_FinishColors, g_MaskColors, g_SilkColors, COLOR_SETTINGS::GetColor(), SETTINGS_MANAGER::GetColorSettings(), GetDefaultColors(), BOARD::GetDesignSettings(), BOARD_STACKUP::GetList(), PGM_BASE::GetSettingsManager(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), 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, EDA_3D_VIEWER_SETTINGS::m_CurrentPreset, BOARD_STACKUP::m_FinishType, EDA_3D_VIEWER_SETTINGS::m_UseStackupColors, KIGFX::COLOR4D::Mix(), and Pgm().
Referenced by InitSettings(), APPEARANCE_CONTROLS_3D::onColorSwatchChanged(), APPEARANCE_CONTROLS_3D::onLayerPresetChanged(), APPEARANCE_CONTROLS_3D::OnLayerVisibilityChanged(), APPEARANCE_CONTROLS_3D::rebuildLayers(), APPEARANCE_CONTROLS_3D::syncLayerPresetSelection(), and APPEARANCE_CONTROLS_3D::UpdateLayerCtls().
|
inlinenoexcept |
Definition at line 274 of file board_adapter.h.
References m_layerHoleMap.
Referenced by RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), and RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Get the map of containers that have the objects per layer.
Definition at line 268 of file board_adapter.h.
References m_layerMap.
Referenced by RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Get the top z position.
aLayerId | layer id. |
Definition at line 237 of file board_adapter.h.
References m_boardBodyThickness3DU, and m_layerZcoordTop.
Referenced by RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), RENDER_3D_OPENGL::getLayerZPos(), RENDER_3D_OPENGL::Redraw(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Get the non copper layers thickness (in 3D units).
Definition at line 157 of file board_adapter.h.
References m_nonCopperLayerThickness3DU.
Referenced by RENDER_3D_OPENGL::renderSolderMaskLayer(), and RENDER_3D_RAYTRACE_BASE::shadeHit().
|
inlinenoexcept |
Definition at line 300 of file board_adapter.h.
References m_NPTH_ODPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 272 of file board_adapter.h.
References m_offboardPadsBack.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 271 of file board_adapter.h.
References m_offboardPadsFront.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 270 of file board_adapter.h.
References m_platedPadsBack.
Referenced by RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Definition at line 269 of file board_adapter.h.
References m_platedPadsFront.
Referenced by RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Get map of polygon's layers.
Definition at line 353 of file board_adapter.h.
References m_layers_poly.
Referenced by RENDER_3D_OPENGL::reload().
SFVEC2F BOARD_ADAPTER::GetSphericalCoord | ( | int | i | ) | const |
Definition at line 1019 of file board_adapter.cpp.
References m_Cfg, EDA_3D_VIEWER_SETTINGS::m_Render, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::raytrace_lightAzimuth, and EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::raytrace_lightElevation.
Referenced by RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Definition at line 275 of file board_adapter.h.
References m_TH_IDs.
Referenced by RENDER_3D_RAYTRACE_BASE::insertHole(), and RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Get through hole outside diameter 2D polygons.
The outside diameter 2D polygon is the hole diameter plus the plating thickness.
Definition at line 285 of file board_adapter.h.
References m_TH_ODPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 276 of file board_adapter.h.
References m_TH_ODs.
Referenced by RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Definition at line 290 of file board_adapter.h.
References m_viaAnnuli.
Referenced by RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), and RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 295 of file board_adapter.h.
References m_viaAnnuliPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 318 of file board_adapter.h.
References m_viaCount.
Referenced by RENDER_3D_OPENGL::generateViasAndPads(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
inlinenoexcept |
Definition at line 313 of file board_adapter.h.
References m_viaTH_ODPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 308 of file board_adapter.h.
References m_viaTH_ODs.
Referenced by RENDER_3D_OPENGL::reload().
std::bitset< LAYER_3D_END > BOARD_ADAPTER::GetVisibleLayers | ( | ) | const |
Definition at line 788 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, EDA_3D_VIEWER_SETTINGS::FindPreset(), FOLLOW_PCB, FOLLOW_PLOT_SETTINGS, PCB_PLOT_PARAMS::GetLayerSelection(), PCB_PLOT_PARAMS::GetPlotFPText(), PCB_PLOT_PARAMS::GetPlotOnAllLayersSelection(), BOARD::GetPlotOptions(), PCB_PLOT_PARAMS::GetPlotReference(), PCB_PLOT_PARAMS::GetPlotValue(), BOARD::IsElementVisible(), BOARD::IsLayerVisible(), LAYER_3D_ADHESIVE, LAYER_3D_AXES, 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_OFF_BOARD_SILK, 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_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, EDA_3D_VIEWER_SETTINGS::m_CurrentPreset, EDA_3D_VIEWER_SETTINGS::m_Render, BASE_SET::set(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_adhesive, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_axis, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_board_body, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_comments, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_copper_bottom, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_copper_top, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_drawings, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_eco1, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_eco2, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_dnp, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_insert, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_normal, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_not_in_posfile, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_virtual, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_fp_references, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_fp_text, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_fp_values, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_model_bbox, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_off_board_silk, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_silkscreen_bottom, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_silkscreen_top, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_soldermask_bottom, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_soldermask_top, and EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_solderpaste.
Referenced by createLayers(), APPEARANCE_CONTROLS_3D::onColorSwatchChanged(), APPEARANCE_CONTROLS_3D::onLayerPresetChanged(), APPEARANCE_CONTROLS_3D::OnLayerVisibilityChanged(), APPEARANCE_CONTROLS_3D::rebuildLayers(), RENDER_3D_OPENGL::Redraw(), RENDER_3D_OPENGL::reload(), RENDER_3D_RAYTRACE_BASE::Reload(), APPEARANCE_CONTROLS_3D::syncLayerPresetSelection(), EDA_3D_CONTROLLER::ToggleVisibility(), and APPEARANCE_CONTROLS_3D::UpdateLayerCtls().
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 328 of file board_adapter.cpp.
References _, B_Adhes, B_Cu, B_Mask, B_Paste, B_SilkS, BS_ITEM_TYPE_COPPER, BS_ITEM_TYPE_DIELECTRIC, BOX2< Vec >::Centre(), BOARD::ComputeBoundingBox(), 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::GetCopperLayerCount(), BOARD_STACKUP::GetCount(), BOARD::GetDesignSettings(), BOX2< Vec >::GetHeight(), GetLayerColors(), BOARD_STACKUP::GetList(), GetRunningMicroSecs(), BOX2< Vec >::GetSize(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Inflate(), IsCopperLayer(), BOARD::IsFootprintHolder(), 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_COMMENTS, LAYER_3D_USER_DRAWINGS, LAYER_3D_USER_ECO1, LAYER_3D_USER_ECO2, layerThicknessMargin, m_backCopperThickness3DU, 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_layerZcoordBottom, m_layerZcoordTop, m_logTrace, m_nonCopperLayerThickness3DU, m_SilkScreenColorBot, m_SilkScreenColorTop, m_SolderMaskColorBot, m_SolderMaskColorTop, m_SolderPasteColor, m_solderPasteLayerThickness3DU, m_UserCommentsColor, m_UserDrawingsColor, EDA_IU_SCALE::mmToIU(), PCB_LAYER_ID_COUNT, pcbIUScale, RANGE_SCALE_3D, ReloadColorSettings(), REPORTER::Report(), RPT_SEVERITY_WARNING, SOLDERPASTE_LAYER_THICKNESS, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by EDA_3D_VIEWER_FRAME::LoadSettings(), RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE_BASE::Reload().
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 249 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, BOARD::IsLayerEnabled(), BOARD::IsLayerVisible(), 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, and PCB_LAYER_ID_COUNT.
Referenced by createLayers(), and RENDER_3D_OPENGL::reload().
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 278 of file board_adapter.cpp.
References FP_DNP, FP_EXCLUDE_FROM_POS_FILES, FP_SMD, FP_THROUGH_HOLE, m_Cfg, m_IsPreviewer, EDA_3D_VIEWER_SETTINGS::m_Render, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_dnp, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_insert, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_normal, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_not_in_posfile, and EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_virtual.
Referenced by RENDER_3D_OPENGL::get3dModelsSelected(), and RENDER_3D_RAYTRACE_BASE::load3DModels().
|
noexcept |
Definition at line 226 of file board_adapter.cpp.
References SETTINGS_MANAGER::GetAppSettings(), GetBoardEditorCopperLayerColors(), SETTINGS_MANAGER::GetColorSettings(), PGM_BASE::GetSettingsManager(), m_colors, APP_SETTINGS_BASE::m_ColorTheme, Pgm(), and PgmOrNull().
Referenced by BOARD_ADAPTER(), InitSettings(), and EDA_3D_CANVAS::ReloadRequest().
|
inlinenoexcept |
Update the cache manager pointer.
aCachePointer | the pointer to the 3D cache manager. |
Definition at line 84 of file board_adapter.h.
References m_3dModelManager.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender(), and EDA_3D_CANVAS::ReloadRequest().
|
inlinenoexcept |
Set current board to be rendered.
aBoard | board to process. |
Definition at line 105 of file board_adapter.h.
References m_board.
Referenced by DIALOG_FOOTPRINT_CHOOSER::build3DCanvas(), FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), PCBNEW_JOBS_HANDLER::JobExportRender(), EDA_3D_VIEWER_FRAME::LoadSettings(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), and EDA_3D_CANVAS::ReloadRequest().
void BOARD_ADAPTER::SetLayerColors | ( | const std::map< int, COLOR4D > & | aColors | ) |
Definition at line 745 of file board_adapter.cpp.
References color, SETTINGS_MANAGER::GetColorSettings(), PGM_BASE::GetSettingsManager(), Pgm(), SETTINGS_MANAGER::SaveColorSettings(), and COLOR_SETTINGS::SetColor().
Referenced by APPEARANCE_CONTROLS_3D::doApplyLayerPreset(), APPEARANCE_CONTROLS_3D::onColorSwatchChanged(), and APPEARANCE_CONTROLS_3D::OnLayerVisibilityChanged().
void BOARD_ADAPTER::SetVisibleLayers | ( | const std::bitset< LAYER_3D_END > & | aLayers | ) |
Definition at line 756 of file board_adapter.cpp.
References LAYER_3D_ADHESIVE, LAYER_3D_AXES, 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_OFF_BOARD_SILK, 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_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_Cfg, EDA_3D_VIEWER_SETTINGS::m_Render, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_adhesive, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_axis, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_board_body, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_comments, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_copper_bottom, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_copper_top, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_drawings, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_eco1, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_eco2, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_dnp, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_insert, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_normal, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_not_in_posfile, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_footprints_virtual, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_fp_references, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_fp_text, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_fp_values, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_model_bbox, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_off_board_silk, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_silkscreen_bottom, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_silkscreen_top, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_soldermask_bottom, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_soldermask_top, and EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_solderpaste.
Referenced by APPEARANCE_CONTROLS_3D::doApplyLayerPreset(), APPEARANCE_CONTROLS_3D::onColorSwatchChanged(), and APPEARANCE_CONTROLS_3D::OnLayerVisibilityChanged().
|
static |
Definition at line 417 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
static |
Definition at line 420 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 419 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 425 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 426 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 427 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 421 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 422 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 423 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 424 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetDefaultColors(), and LAYER_PRESET_3D::LAYER_PRESET_3D().
|
static |
Definition at line 416 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
static |
Definition at line 414 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
static |
Definition at line 415 of file board_adapter.h.
Referenced by BOARD_ADAPTER().
|
static |
Definition at line 413 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and GetLayerColors().
|
private |
Definition at line 456 of file board_adapter.h.
Referenced by Get3dCacheManager(), and Set3dCacheManager().
|
private |
Definition at line 517 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageHoleDiameter().
|
private |
Definition at line 513 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageTrackWidth().
|
private |
Definition at line 515 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageViaHoleDiameter().
|
private |
Definition at line 507 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBackCopperThickness(), GetLayerBottomZPos(), and InitSettings().
|
private |
Definition at line 470 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and destroyLayers().
|
private |
Definition at line 468 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetBackPlatedPadAndGraphicPolys().
SFVEC4F BOARD_ADAPTER::m_BgColorBot |
background bottom color
Definition at line 437 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_OPENGL::Redraw(), RENDER_3D_RAYTRACE_GL::Redraw(), RENDER_3D_RAYTRACE_BASE::render(), and RENDER_3D_RAYTRACE_BASE::renderPreview().
SFVEC4F BOARD_ADAPTER::m_BgColorTop |
background top color
Definition at line 438 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_OPENGL::Redraw(), RENDER_3D_RAYTRACE_GL::Redraw(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_RAYTRACE_BASE::render(), RENDER_3D_RAYTRACE_BASE::renderPreview(), and RENDER_3D_RAYTRACE_BASE::setupMaterials().
|
private |
Scale factor to convert board internal units to 3D units normalized between -1.0 and 1.0.
Definition at line 497 of file board_adapter.h.
Referenced by addShape(), addSolidAreasShapes(), addText(), BiuTo3dUnits(), BOARD_ADAPTER(), createLayers(), createPadWithMargin(), GetCircleSegmentCount(), and InitSettings().
|
private |
Definition at line 455 of file board_adapter.h.
Referenced by addText(), createBoardPolygon(), createLayers(), GetBoard(), GetHolePlatingThickness(), GetLayerColors(), GetVisibleLayers(), InitSettings(), Is3dLayerEnabled(), and SetBoard().
|
private |
Board outline polygon.
Definition at line 480 of file board_adapter.h.
Referenced by createBoardPolygon(), and GetBoardPoly().
SFVEC4F BOARD_ADAPTER::m_BoardBodyColor |
in realistic mode: FR4 board color
Definition at line 439 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_OPENGL::Redraw(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_OPENGL::renderBoardBody(), and RENDER_3D_RAYTRACE_BASE::setupMaterials().
|
private |
Definition at line 508 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 462 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 461 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 452 of file board_adapter.h.
Referenced by GetBoardEditorCopperLayerColors(), and RENDER_3D_OPENGL::setLayerMaterial().
|
private |
Board center position in board internal units.
Definition at line 459 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardPos(), and InitSettings().
|
private |
Board size in board internal units.
Definition at line 460 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardSize(), and InitSettings().
EDA_3D_VIEWER_SETTINGS* BOARD_ADAPTER::m_Cfg |
Definition at line 430 of file board_adapter.h.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), APPEARANCE_CONTROLS_3D::ApplyLayerPreset(), EDA_3D_VIEWER_FRAME::applySettings(), DIALOG_FOOTPRINT_CHOOSER::build3DCanvas(), FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), createLayers(), APPEARANCE_CONTROLS_3D::doApplyLayerPreset(), APPEARANCE_CONTROLS_3D::doApplyViewport(), EDA_3D_CANVAS::DoRePaint(), RENDER_3D_OPENGL::get3dModelsSelected(), GetLayerColors(), RENDER_3D_RAYTRACE_BASE::getModelMaterial(), GetSphericalCoord(), GetVisibleLayers(), EDA_3D_CONDITIONS::gridSizeFunction(), IsFootprintShown(), PCBNEW_JOBS_HANDLER::JobExportRender(), RENDER_3D_RAYTRACE_BASE::load3DModels(), RENDER_3D_OPENGL::load3dModels(), PANEL_PREVIEW_3D_MODEL::loadSettings(), EDA_3D_VIEWER_FRAME::LoadSettings(), EDA_3D_CONTROLLER::On3DGridSelection(), EDA_3D_VIEWER_FRAME::onDisableRayTracing(), APPEARANCE_CONTROLS_3D::onLayerPresetChanged(), APPEARANCE_CONTROLS_3D::OnLayerVisibilityChanged(), EDA_3D_CANVAS::OnMouseMove(), EDA_3D_VIEWER_FRAME::onRenderEngineSelection(), RENDER_3D_RAYTRACE_BASE::postProcessBlurFinish(), RENDER_3D_RAYTRACE_BASE::postProcessShading(), APPEARANCE_CONTROLS_3D::rebuildLayerPresetsWidget(), EDA_3D_VIEWER_FRAME::Redraw(), RENDER_3D_OPENGL::Redraw(), EDA_3D_VIEWER_FRAME::refreshRender(), RENDER_3D_OPENGL::reload(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_RAYTRACE_BASE::render(), RENDER_3D_RAYTRACE_BASE::renderAntiAliasPackets(), RENDER_3D_RAYTRACE_BASE::renderBlockTracing(), RENDER_3D_OPENGL::renderModel(), RENDER_3D_OPENGL::renderOpaqueModels(), RENDER_3D_RAYTRACE_BASE::renderTracing(), RENDER_3D_OPENGL::renderTransparentModels(), EDA_3D_CONTROLLER::RotateView(), EDA_3D_VIEWER_FRAME::SaveSettings(), PANEL_PREVIEW_3D_MODEL::setBodyStyleView(), RENDER_3D_OPENGL::setLayerMaterial(), EDA_3D_CONTROLLER::SetMaterial(), RENDER_3D_RAYTRACE_BASE::setupMaterials(), EDA_3D_VIEWER_FRAME::setupUIConditions(), APPEARANCE_CONTROLS_3D::SetUserViewports(), SetVisibleLayers(), RENDER_3D_RAYTRACE_BASE::shadeHit(), APPEARANCE_CONTROLS_3D::syncLayerPresetSelection(), EDA_3D_VIEWER_FRAME::takeScreenshot(), EDA_3D_CONTROLLER::ToggleOrtho(), APPEARANCE_CONTROLS_3D::UpdateLayerCtls(), DIALOG_FOOTPRINT_CHOOSER::~DIALOG_FOOTPRINT_CHOOSER(), and PANEL_PREVIEW_3D_MODEL::~PANEL_PREVIEW_3D_MODEL().
std::map<int, COLOR4D> BOARD_ADAPTER::m_ColorOverrides |
allows to override color scheme colors
Definition at line 451 of file board_adapter.h.
Referenced by GetLayerColors(), and PCBNEW_JOBS_HANDLER::JobExportRender().
|
private |
Definition at line 457 of file board_adapter.h.
Referenced by GetItemColor(), GetLayerColor(), and ReloadColorSettings().
SFVEC4F BOARD_ADAPTER::m_CopperColor |
in realistic mode: copper color
Definition at line 445 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::insertHole(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_OPENGL::setLayerMaterial(), RENDER_3D_OPENGL::setupMaterials(), and RENDER_3D_RAYTRACE_BASE::setupMaterials().
|
private |
Definition at line 495 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), GetBoardEditorCopperLayerColors(), and InitSettings().
SFVEC4F BOARD_ADAPTER::m_ECO1Color |
Definition at line 448 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::Reload(), and RENDER_3D_OPENGL::setLayerMaterial().
SFVEC4F BOARD_ADAPTER::m_ECO2Color |
Definition at line 449 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::Reload(), and RENDER_3D_OPENGL::setLayerMaterial().
|
private |
Definition at line 506 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetFrontCopperThickness(), and InitSettings().
|
private |
Definition at line 469 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and destroyLayers().
|
private |
Definition at line 467 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetFrontPlatedPadAndGraphicPolys().
|
private |
Definition at line 516 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetHoleCount().
bool BOARD_ADAPTER::m_IsBoardView |
Definition at line 432 of file board_adapter.h.
Referenced by DIALOG_FOOTPRINT_CHOOSER::build3DCanvas(), FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), RENDER_3D_OPENGL::get3dModelsSelected(), PCBNEW_JOBS_HANDLER::JobExportRender(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), RENDER_3D_OPENGL::renderOpaqueModels(), and RENDER_3D_OPENGL::renderTransparentModels().
bool BOARD_ADAPTER::m_IsPreviewer |
true if we're in a 3D preview panel, false for the standard 3D viewer
Definition at line 434 of file board_adapter.h.
Referenced by DIALOG_FOOTPRINT_CHOOSER::build3DCanvas(), FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), IsFootprintShown(), PCBNEW_JOBS_HANDLER::JobExportRender(), RENDER_3D_RAYTRACE_BASE::load3DModels(), RENDER_3D_OPENGL::load3dModels(), and PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL().
|
private |
Hole inner diameters (per layer)
Definition at line 473 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleIdPolysMap().
|
private |
Holes for each layer.
Definition at line 483 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerHoleMap().
|
private |
Hole outer diameters (per layer)
Definition at line 472 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleOdPolysMap().
|
private |
2D elements for each layer.
Definition at line 482 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerMap().
|
private |
Amalgamated polygon contours for various types of items.
Definition at line 464 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetPolyMap().
|
private |
Bottom (Start) Z position of each layer in 3D units.
Definition at line 503 of file board_adapter.h.
Referenced by GetFootprintZPos(), GetLayerBottomZPos(), and InitSettings().
|
private |
Top (End) Z position of each layer in 3D units.
Definition at line 500 of file board_adapter.h.
Referenced by GetFootprintZPos(), GetLayerTopZPos(), and InitSettings().
bool BOARD_ADAPTER::m_MousewheelPanning |
Definition at line 433 of file board_adapter.h.
Referenced by DIALOG_FOOTPRINT_CHOOSER::build3DCanvas(), EDA_3D_VIEWER_FRAME::loadCommonSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), and EDA_3D_CANVAS::OnMouseWheel().
|
private |
Definition at line 509 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetNonCopperLayerThickness(), and InitSettings().
|
private |
NPTH outer diameters.
Definition at line 475 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetNPTH_ODPolys().
|
private |
Definition at line 488 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetOffboardPadsBack().
|
private |
Definition at line 487 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetOffboardPadsFront().
|
private |
Definition at line 486 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetPlatedPadsBack().
|
private |
Definition at line 485 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 443 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_OPENGL::setLayerMaterial(), and RENDER_3D_OPENGL::setupMaterials().
SFVEC4F BOARD_ADAPTER::m_SilkScreenColorTop |
in realistic mode: SilkScreen color ( top )
Definition at line 444 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_OPENGL::setLayerMaterial(), RENDER_3D_OPENGL::setupMaterials(), and RENDER_3D_RAYTRACE_BASE::setupMaterials().
SFVEC4F BOARD_ADAPTER::m_SolderMaskColorBot |
in realistic mode: solder mask color ( bot )
Definition at line 440 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::Reload(), and RENDER_3D_OPENGL::setLayerMaterial().
SFVEC4F BOARD_ADAPTER::m_SolderMaskColorTop |
in realistic mode: solder mask color ( top )
Definition at line 441 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_OPENGL::setLayerMaterial(), and RENDER_3D_RAYTRACE_BASE::setupMaterials().
SFVEC4F BOARD_ADAPTER::m_SolderPasteColor |
in realistic mode: solder paste color
Definition at line 442 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_OPENGL::setLayerMaterial(), RENDER_3D_OPENGL::setupMaterials(), and RENDER_3D_RAYTRACE_BASE::setupMaterials().
|
private |
Definition at line 510 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
List of PTH inner diameters.
Definition at line 491 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetTH_IDs().
|
private |
PTH outer diameters.
Definition at line 476 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetTH_ODPolys().
|
private |
List of PTH outer diameters.
Definition at line 490 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetTH_ODs().
|
private |
Definition at line 512 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and createLayers().
SFVEC4F BOARD_ADAPTER::m_UserCommentsColor |
Definition at line 447 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::Reload(), and RENDER_3D_OPENGL::setLayerMaterial().
SFVEC4F BOARD_ADAPTER::m_UserDrawingsColor |
Definition at line 446 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), RENDER_3D_RAYTRACE_BASE::Reload(), and RENDER_3D_OPENGL::setLayerMaterial().
|
private |
List of via annular rings.
Definition at line 492 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetViaAnnuli().
|
private |
Via annular ring outer diameters.
Definition at line 478 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetViaAnnuliPolys().
|
private |
Definition at line 514 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetViaCount().
|
private |
Via hole outer diameters.
Definition at line 477 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetViaTH_ODPolys().
|
private |
List of via hole outer diameters.
Definition at line 493 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetViaTH_ODs().