![]() |
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 *aCachePointer) noexcept |
Update the cache manager pointer. More... | |
S3D_CACHE * | Get3dCacheManager () const noexcept |
Return the 3D cache manager pointer. More... | |
bool | GetFlag (DISPLAY3D_FLG aFlag) const |
Get a configuration status of a flag. More... | |
void | SetFlag (DISPLAY3D_FLG aFlag, bool aState) |
Set the status of a flag. More... | |
bool | Is3dLayerEnabled (PCB_LAYER_ID aLayer) const |
Check if a layer is enabled. More... | |
bool | IsFootprintShown (FOOTPRINT_ATTR_T aFPAttributes) const |
Test if footprint should be displayed in relation to attributes and the flags. More... | |
void | SetBoard (BOARD *aBoard) noexcept |
Set current board to be rendered. More... | |
const BOARD * | GetBoard () const noexcept |
Get current board to be rendered. More... | |
void | SetColorSettings (COLOR_SETTINGS *aSettings) noexcept |
void | InitSettings (REPORTER *aStatusReporter, REPORTER *aWarningReporter) |
Function to be called by the render when it need to reload the settings for the board. More... | |
double | BiuTo3dUnits () const noexcept |
Board integer units To 3D units. More... | |
const BBOX_3D & | GetBBox () const noexcept |
Get the board outling bounding box. More... | |
float | GetEpoxyThickness () const noexcept |
Get the current epoxy thickness. More... | |
float | GetNonCopperLayerThickness () const noexcept |
Get the current non copper layers thickness. More... | |
float | GetCopperThickness () const noexcept |
Get the current copper layer thickness. More... | |
int | GetHolePlatingThickness () const noexcept |
Get the current copper layer thickness. More... | |
wxSize | GetBoardSize () const noexcept |
Get the board size. More... | |
wxPoint | GetBoardPos () const noexcept |
Get the board center. More... | |
const SFVEC3F & | GetBoardCenter () const noexcept |
The board center position in 3D units. More... | |
float | GetFootprintZPos (bool aIsFlipped) const |
Get the position of the footprint in 3d integer units considering if it is flipped or not. More... | |
GRID3D_TYPE | GetGridType () const noexcept |
Get the current grid. More... | |
void | SetGridType (GRID3D_TYPE aGridType) noexcept |
Set the current grid. More... | |
ANTIALIASING_MODE | GetAntiAliasingMode () const |
Get the current antialiasing mode value. More... | |
void | SetAntiAliasingMode (ANTIALIASING_MODE aAAmode) |
Set the current antialiasing mode value. More... | |
void | SetRenderEngine (RENDER_ENGINE aRenderEngine) noexcept |
RENDER_ENGINE | GetRenderEngine () const noexcept |
void | SetMaterialMode (MATERIAL_MODE aMaterialMode) noexcept |
MATERIAL_MODE | GetMaterialMode () const noexcept |
const SHAPE_POLY_SET & | GetBoardPoly () const noexcept |
Get the current polygon of the epoxy board. More... | |
SFVEC4F | GetLayerColor (PCB_LAYER_ID aLayerId) const |
Get the technical color of a layer. More... | |
SFVEC4F | GetItemColor (int aItemId) const |
Get the technical color of a layer. More... | |
SFVEC4F | GetColor (COLOR4D aColor) const |
float | GetLayerTopZPos (PCB_LAYER_ID aLayerId) const noexcept |
Get the top z position. More... | |
float | GetLayerBottomZPos (PCB_LAYER_ID aLayerId) const noexcept |
Get the bottom z position. More... | |
const MAP_CONTAINER_2D_BASE & | GetLayerMap () const noexcept |
Get the map of containers that have the objects per layer. More... | |
const BVH_CONTAINER_2D * | GetPlatedPadsFront () const noexcept |
const BVH_CONTAINER_2D * | GetPlatedPadsBack () const noexcept |
const MAP_CONTAINER_2D_BASE & | GetLayerHoleMap () const noexcept |
Get the map of container that have the holes per layer. More... | |
const BVH_CONTAINER_2D & | GetThroughHoleOds () const noexcept |
Get the inflated through hole outside diameters container. More... | |
const BVH_CONTAINER_2D & | GetThroughHoleAnnularRings () const noexcept |
Get the through hole annular rings container. More... | |
const SHAPE_POLY_SET & | GetThroughHoleOdPolys () const noexcept |
Get through hole outside diameter 2D polygons. More... | |
const SHAPE_POLY_SET & | GetThroughHoleAnnularRingPolys () const noexcept |
const SHAPE_POLY_SET & | GetOuterNonPlatedThroughHolePoly () const noexcept |
const BVH_CONTAINER_2D & | GetThroughHoleViaOds () const noexcept |
const SHAPE_POLY_SET & | GetThroughHoleViaOdPolys () const noexcept |
const BVH_CONTAINER_2D & | GetThroughHoleIds () const noexcept |
Get the through hole inner diameter container. More... | |
unsigned int | GetViaCount () const noexcept |
Get number of vias in this board. More... | |
unsigned int | GetHoleCount () const noexcept |
Get number of holes in this board. More... | |
float | GetAverageViaHoleDiameter () const noexcept |
Thee average diameter of the via holes. More... | |
float | GetAverageHoleDiameter () const noexcept |
Average diameter of through holes. More... | |
float | GetAverageTrackWidth () const noexcept |
Average width of the tracks. More... | |
unsigned int | GetCircleSegmentCount (float aDiameter3DU) const |
unsigned int | GetCircleSegmentCount (int aDiameterBIU) const |
const MAP_POLY & | GetPolyMap () const noexcept |
Get map of polygon's layers. More... | |
const SHAPE_POLY_SET * | GetFrontPlatedPadPolys () |
const SHAPE_POLY_SET * | GetBackPlatedPadPolys () |
const MAP_POLY & | GetHoleIdPolysMap () const noexcept |
const MAP_POLY & | GetHoleOdPolysMap () const noexcept |
Private Member Functions | |
bool | createBoardPolygon (wxString *aErrorMsg) |
Create the board outline polygon. More... | |
void | createLayers (REPORTER *aStatusReporter) |
void | destroyLayers () |
void | createTrack (const TRACK *aTrack, CONTAINER_2D_BASE *aDstContainer, int aClearanceValue) |
void | createPadWithClearance (const PAD *aPad, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayer, wxSize aClearanceValue) const |
OBJECT_2D * | createPadWithDrill (const PAD *aPad, int aInflateValue) |
void | addPadsWithClearance (const FOOTPRINT *aFootprint, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId, int aInflateValue, bool aSkipNPTHPadsWihNoCopper, bool aSkipPlatedPads, bool aSkipNonPlatedPads) |
void | addFootprintShapesWithClearance (const FOOTPRINT *aFootprint, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId, int aInflateValue) |
void | addShapeWithClearance (const PCB_TEXT *aText, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId, int aClearanceValue) |
void | addShapeWithClearance (const PCB_SHAPE *aShape, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId, int aClearanceValue) |
void | addShapeWithClearance (const DIMENSION_BASE *aDimension, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId, int aClearanceValue) |
void | addSolidAreasShapes (const ZONE *aZoneContainer, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId) |
void | transformArcToSegments (const wxPoint &aCentre, const wxPoint &aStart, double aArcAngle, int aCircleToSegmentsCount, int aWidth, CONTAINER_2D_BASE *aDstContainer, const BOARD_ITEM &aBoardItem) |
void | buildPadOutlineAsSegments (const PAD *aPad, CONTAINER_2D_BASE *aDstContainer, int aWidth) |
void | buildPadOutlineAsPolygon (const PAD *aPad, SHAPE_POLY_SET &aCornerBuffer, int aWidth) const |
void | transformFPShapesToPolygon (const FOOTPRINT *aFootprint, PCB_LAYER_ID aLayer, SHAPE_POLY_SET &aCornerBuffer) const |
Private Attributes | |
BOARD * | m_board |
S3D_CACHE * | m_3dModelManager |
COLOR_SETTINGS * | m_colors |
std::vector< bool > | m_drawFlags |
GRID3D_TYPE | m_gridType |
RENDER_ENGINE | m_renderEngine |
MATERIAL_MODE | m_materialMode |
ANTIALIASING_MODE | m_antiAliasingMode |
wxPoint | m_boardPos |
Board center position in board internal units. More... | |
wxSize | m_boardSize |
Board size in board internal units. More... | |
SFVEC3F | m_boardCenter |
3D center position of the board in 3D units. More... | |
BBOX_3D | m_boardBoundingBox |
3D bounding box of the board in 3D units. More... | |
MAP_POLY | m_layers_poly |
SHAPE_POLY_SET * | m_frontPlatedPadPolys |
SHAPE_POLY_SET * | m_backPlatedPadPolys |
Polygon contours for hole outer diameters for each layer. More... | |
MAP_POLY | m_layerHoleOdPolys |
Polygon contours for hole inner diameters for each layer. More... | |
MAP_POLY | m_layerHoleIdPolys |
Polygon contours for non plated through hole outer diameters. More... | |
SHAPE_POLY_SET | m_nonPlatedThroughHoleOdPolys |
Polygon contours for through hole outer diameters. More... | |
SHAPE_POLY_SET | m_throughHoleOdPolys |
Polygon contours for through holes via outer diameters. More... | |
SHAPE_POLY_SET | m_throughHoleViaOdPolys |
Polygon contours for through hole via annular rings. More... | |
SHAPE_POLY_SET | m_throughHoleAnnularRingPolys |
SHAPE_POLY_SET | m_board_poly |
Board outline polygon. More... | |
MAP_CONTAINER_2D_BASE | m_layerMap |
2D elements for each layer. More... | |
BVH_CONTAINER_2D * | m_platedPadsFront |
BVH_CONTAINER_2D * | m_platedPadsBack |
The holes per each layer. More... | |
MAP_CONTAINER_2D_BASE | m_layerHoleMap |
List of through holes with the radius of the hole inflated with the copper thickness. More... | |
BVH_CONTAINER_2D | m_throughHoleOds |
List of plated through hole annular rings. More... | |
BVH_CONTAINER_2D | m_throughHoleAnnularRings |
List of through hole inner diameters. More... | |
BVH_CONTAINER_2D | m_throughHoleIds |
List of through hole vias with the radius of the hole inflated with the copper thickness. More... | |
BVH_CONTAINER_2D | m_throughHoleViaOds |
List of through hole via inner diameters. More... | |
BVH_CONTAINER_2D | m_throughHoleViaIds |
Number of copper layers actually used by the board. More... | |
unsigned int | m_copperLayersCount |
Scale factor to convert board internal units to 3D units normalized between -1.0 and 1.0. More... | |
double | m_biuTo3Dunits |
Top (End) Z position of each layer in 3D units. More... | |
std::array< float, PCB_LAYER_ID_COUNT > | m_layerZcoordTop |
Bottom (Start) Z position of each layer in 3D units. More... | |
std::array< float, PCB_LAYER_ID_COUNT > | m_layerZcoordBottom |
Copper thickness in 3D units. More... | |
float | m_copperThickness3DU |
Epoxy thickness in 3D units. More... | |
float | m_epoxyThickness3DU |
Non copper layers thickness in 3D units. More... | |
float | m_nonCopperLayerThickness3DU |
solder paste layers thickness in 3D units. More... | |
float | m_solderPasteLayerThickness3DU |
Number of tracks in the board. More... | |
unsigned int | m_trackCount |
Track average width. More... | |
float | m_averageTrackWidth |
Number of through hole vias in the board. More... | |
unsigned int | m_viaCount |
Computed average diameter of the via holes in 3D units. More... | |
float | m_averageViaHoleDiameter |
Number of holes in the board. More... | |
unsigned int | m_holeCount |
Computed average diameter of the holes in 3D units. More... | |
float | m_averageHoleDiameter |
Static Private Attributes | |
static const wxChar * | m_logTrace = wxT( "KI_TRACE_EDA_CINFO3D_VISU" ) |
Trace mask used to enable or disable the trace output of this class. More... | |
Helper class to handle information needed to display 3D board.
Definition at line 67 of file board_adapter.h.
BOARD_ADAPTER::BOARD_ADAPTER | ( | ) |
Definition at line 52 of file board_adapter.cpp.
References AA_8X, BVH_CONTAINER_2D::Clear(), FL_CLIP_SILK_ON_VIA_ANNULUS, FL_FP_ATTRIBUTES_NORMAL, FL_FP_ATTRIBUTES_NORMAL_INSERT, FL_FP_ATTRIBUTES_VIRTUAL, FL_LAST, FL_RENDER_OPENGL_AA_DISABLE_ON_MOVE, FL_RENDER_OPENGL_COPPER_THICKNESS, FL_RENDER_OPENGL_HOLES_DISABLE_ON_MOVE, FL_RENDER_OPENGL_THICKNESS_DISABLE_ON_MOVE, FL_RENDER_OPENGL_VIAS_DISABLE_ON_MOVE, FL_SHOW_BOARD_BODY, FL_SILKSCREEN, FL_SOLDERMASK, FL_SUBTRACT_MASK_FROM_SILK, FL_USE_REALISTIC_MODE, FL_USE_SELECTION, FL_ZONE, m_antiAliasingMode, m_averageHoleDiameter, m_averageTrackWidth, m_averageViaHoleDiameter, m_backPlatedPadPolys, m_BgColorBot, m_BgColorTop, m_biuTo3Dunits, m_BoardBodyColor, m_boardBoundingBox, m_boardCenter, m_boardPos, m_boardSize, m_colors, m_CopperColor, m_copperLayersCount, m_copperThickness3DU, m_drawFlags, m_epoxyThickness3DU, m_frontPlatedPadPolys, m_gridType, m_holeCount, m_logTrace, m_materialMode, m_nonCopperLayerThickness3DU, m_platedPadsBack, m_platedPadsFront, m_renderEngine, m_RtRecursiveReflectionCount, m_RtRecursiveRefractionCount, m_RtReflectionSampleCount, m_RtRefractionSampleCount, m_RtShadowSampleCount, m_RtSpreadReflections, m_RtSpreadRefractions, m_RtSpreadShadows, m_SilkScreenColorBot, m_SilkScreenColorTop, m_SolderMaskColorBot, m_SolderMaskColorTop, m_SolderPasteColor, m_solderPasteLayerThickness3DU, m_throughHoleAnnularRings, m_throughHoleIds, m_throughHoleOds, m_trackCount, m_viaCount, NONE, NORMAL, OPENGL_LEGACY, Pgm(), PgmOrNull(), BBOX_3D::Reset(), and SetFlag().
BOARD_ADAPTER::~BOARD_ADAPTER | ( | ) |
|
private |
Definition at line 180 of file create_3Dgraphic_brd_items.cpp.
References addShapeWithClearance(), addTextSegmToContainer(), BLACK, BOARD_ITEM::GetLayer(), FOOTPRINT::GraphicalItems(), GRText(), EDA_TEXT::IsVisible(), m_biuTo3Dunits, PCB_FP_SHAPE_T, PCB_FP_TEXT_T, FOOTPRINT::Reference(), s_biuTo3Dunits, s_boardItem, s_dstcontainer, s_textWidth, text, and FOOTPRINT::Value().
Referenced by createLayers().
|
private |
Definition at line 497 of file create_3Dgraphic_brd_items.cpp.
References B_Cu, B_Mask, B_Paste, createPadWithClearance(), F_Cu, F_Mask, F_Paste, IsCopperLayer(), isPlated(), pad, PAD_ATTRIB_NPTH, PAD_DRILL_SHAPE_CIRCLE, PAD_SHAPE_CIRCLE, PAD_SHAPE_OVAL, and FOOTPRINT::Pads().
Referenced by createLayers().
|
private |
Definition at line 85 of file create_3Dgraphic_brd_items.cpp.
References addTextSegmToContainer(), BLACK, EDA_TEXT::GetEffectiveTextPenWidth(), EDA_TEXT::GetHorizJustify(), EDA_TEXT::GetLinePositions(), PCB_TEXT::GetShownText(), EDA_TEXT::GetTextAngle(), EDA_TEXT::GetTextPos(), EDA_TEXT::GetTextSize(), EDA_TEXT::GetVertJustify(), GRText(), EDA_TEXT::IsItalic(), EDA_TEXT::IsMirrored(), EDA_TEXT::IsMultilineAllowed(), m_biuTo3Dunits, s_biuTo3Dunits, s_boardItem, s_dstcontainer, s_textWidth, and wxStringSplit().
Referenced by addFootprintShapesWithClearance(), addShapeWithClearance(), and createLayers().
|
private |
Definition at line 640 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), ConvertPolygonToTriangles(), ERROR_INSIDE, PCB_SHAPE::GetAngle(), PCB_SHAPE::GetArcStart(), PCB_SHAPE::GetBoundingBox(), PCB_SHAPE::GetCenter(), GetCircleSegmentCount(), PCB_SHAPE::GetEnd(), PCB_SHAPE::GetRadius(), PCB_SHAPE::GetRectCorners(), PCB_SHAPE::GetShape(), EDA_RECT::GetSizeMax(), PCB_SHAPE::GetStart(), PCB_SHAPE::GetWidth(), Is_segment_a_circle(), SHAPE_POLY_SET::IsEmpty(), PCB_SHAPE::IsFilled(), m_biuTo3Dunits, PCB_SHAPE_TYPE_T_asString(), SHAPE_POLY_SET::PM_FAST, S_ARC, S_CIRCLE, S_CURVE, S_POLYGON, S_RECT, S_SEGMENT, SHAPE_POLY_SET::Simplify(), transformArcToSegments(), and PCB_SHAPE::TransformShapeWithClearanceToPolygon().
|
private |
Definition at line 129 of file create_3Dgraphic_brd_items.cpp.
References SEG::A, CONTAINER_2D_BASE::Add(), addShapeWithClearance(), SEG::B, DIMENSION_BASE::GetLineThickness(), DIMENSION_BASE::GetShapes(), m_biuTo3Dunits, SH_CIRCLE, SH_SEGMENT, DIMENSION_BASE::Text(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Definition at line 758 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), SHAPE_POLY_SET::CHole(), ConvertPolygonToTriangles(), SHAPE_POLY_SET::COutline(), SHAPE_LINE_CHAIN::CPoint(), ZONE::GetFilledPolysList(), ZONE::GetFilledPolysUseThickness(), ZONE::GetMinThickness(), SHAPE_POLY_SET::HoleCount(), Is_segment_a_circle(), m_biuTo3Dunits, SHAPE_POLY_SET::OutlineCount(), SHAPE_LINE_CHAIN::PointCount(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by createLayers().
|
inlinenoexcept |
Board integer units To 3D units.
Definition at line 158 of file board_adapter.h.
References m_biuTo3Dunits.
Referenced by RENDER_3D_LEGACY::createBoard(), createLayers(), RENDER_3D_LEGACY::generate3dGrid(), RENDER_3D_LEGACY::generateHoles(), RENDER_3D_LEGACY::generateLayerList(), RENDER_3D_LEGACY::generateViasAndPads(), RENDER_3D_RAYTRACE::insertHole(), RENDER_3D_RAYTRACE::loadModels(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_LEGACY::renderFootprint(), and RENDER_3D_RAYTRACE::setupMaterials().
|
private |
Definition at line 37 of file create_layer_poly.cpp.
References ERROR_INSIDE, PAD::GetEffectivePolygon(), PAD::GetShape(), PAD::GetSize(), PAD_SHAPE_CIRCLE, path, PAD::ShapePos(), TransformOvalToPolygon(), and TransformRingToPolygon().
Referenced by createLayers().
|
private |
Definition at line 833 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), PAD::GetEffectivePolygon(), PAD::GetShape(), PAD::GetSize(), Is_segment_a_circle(), m_biuTo3Dunits, PAD_SHAPE_CIRCLE, path, PAD::ShapePos(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by createLayers().
|
private |
Create the board outline polygon.
Definition at line 459 of file board_adapter.cpp.
References _, BuildFootprintPolygonOutlines(), BOARD::GetBoardPolygonOutlines(), BOARD::GetDesignSettings(), BOARD::GetFirstFootprint(), BOARD::IsFootprintHolder(), m_board, m_board_poly, BOARD_DESIGN_SETTINGS::m_MaxError, Millimeter2iu(), SHAPE_POLY_SET::PM_STRICTLY_SIMPLE, SHAPE_POLY_SET::RemoveAllContours(), and SHAPE_POLY_SET::Simplify().
Referenced by InitSettings().
|
private |
Definition at line 125 of file create_layer_items.cpp.
References _, CONTAINER_2D_BASE::Add(), addFootprintShapesWithClearance(), addPadsWithClearance(), addShapeWithClearance(), addSolidAreasShapes(), LSET::AllCuMask(), LSET::AllNonCuMask(), arrayDim(), B_Adhes, B_Cu, B_Mask, B_Paste, B_SilkS, BiuTo3dUnits(), SHAPE_POLY_SET::BooleanSubtract(), BVH_CONTAINER_2D::BuildBVH(), buildPadOutlineAsPolygon(), buildPadOutlineAsSegments(), Cmts_User, createPadWithDrill(), createTrack(), destroyLayers(), BOARD::Drawings(), Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, ERROR_INSIDE, F_Adhes, F_Cu, F_Mask, F_Paste, F_SilkS, FL_CLIP_SILK_ON_VIA_ANNULUS, FL_RENDER_OPENGL_COPPER_THICKNESS, FL_RENDER_PLATED_PADS_AS_PLATED, FL_USE_REALISTIC_MODE, FL_ZONE, BOARD::Footprints(), GetCopperThickness(), BOARD::GetDesignSettings(), GetFlag(), GetHolePlatingThickness(), GetRunningMicroSecs(), Is3dLayerEnabled(), IsCopperLayer(), BOARD_ITEM::IsOnLayer(), LAYER_CLASS_SILK, m_averageHoleDiameter, m_averageTrackWidth, m_averageViaHoleDiameter, m_backPlatedPadPolys, m_biuTo3Dunits, m_board, m_copperLayersCount, m_frontPlatedPadPolys, m_holeCount, m_layerHoleIdPolys, m_layerHoleMap, m_layerHoleOdPolys, m_layerMap, m_layers_poly, BOARD_DESIGN_SETTINGS::m_LineThickness, m_logTrace, m_nonPlatedThroughHoleOdPolys, m_platedPadsBack, m_platedPadsFront, m_renderEngine, m_throughHoleAnnularRingPolys, m_throughHoleAnnularRings, m_throughHoleIds, m_throughHoleOdPolys, m_throughHoleOds, m_throughHoleViaOdPolys, m_throughHoleViaOds, m_trackCount, m_viaCount, Margin, MAX_CU_LAYERS, OPENGL_LEGACY, pad, PAD_ATTRIB_NPTH, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_SHAPE_T, PCB_TEXT_T, PCB_VIA_T, SHAPE_POLY_SET::PM_FAST, REPORTER::Report(), LSET::Seq(), SHAPE_POLY_SET::Simplify(), text, THROUGH, ToLAYER_ID(), BOARD::Tracks(), TransformCircleToPolygon(), transformFPShapesToPolygon(), TRACK::TransformShapeWithClearanceToPolygon(), EDA_ITEM::Type(), via, and BOARD::Zones().
Referenced by InitSettings().
|
private |
Definition at line 324 of file create_3Dgraphic_brd_items.cpp.
References SEG::A, CONTAINER_2D_BASE::Add(), SHAPE_POLY_SET::AddOutline(), SHAPE_POLY_SET::Append(), SEG::B, ConvertPolygonToTriangles(), SHAPE_ARC::ConvertToPolyline(), dummy(), ERROR_INSIDE, SHAPE_CIRCLE::GetCenter(), 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(), Is_segment_a_circle(), SHAPE_POLY_SET::IsEmpty(), m_biuTo3Dunits, SHAPE_POLY_SET::NewOutline(), PAD_SHAPE_CUSTOM, SHAPE_LINE_CHAIN::Segment(), SHAPE_LINE_CHAIN::SegmentCount(), SH_ARC, SH_CIRCLE, SH_POLY_SET, SH_RECT, SH_SEGMENT, SH_SIMPLE, SHAPE_TYPE_asString(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by addPadsWithClearance().
Definition at line 459 of file create_3Dgraphic_brd_items.cpp.
References SEG::A, SEG::B, PAD::GetDrillSize(), PAD::GetEffectiveHoleShape(), PAD::GetPosition(), SHAPE_SEGMENT::GetSeg(), SHAPE_SEGMENT::GetWidth(), m_biuTo3Dunits, m_logTrace, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by createLayers().
|
private |
Definition at line 245 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), ARC::GetAngle(), GetArcToSegmentCount(), ARC::GetCenter(), TRACK::GetEnd(), ARC::GetRadius(), TRACK::GetStart(), TRACK::GetWidth(), Is_segment_a_circle(), m_biuTo3Dunits, Millimeter2iu(), PCB_ARC_T, PCB_TRACE_T, PCB_VIA_T, SEG_CNT_MAX, transformArcToSegments(), and EDA_ITEM::Type().
Referenced by createLayers().
|
private |
Definition at line 58 of file create_layer_items.cpp.
References BVH_CONTAINER_2D::Clear(), m_backPlatedPadPolys, m_frontPlatedPadPolys, m_layerHoleIdPolys, m_layerHoleMap, m_layerHoleOdPolys, m_layerMap, m_layers_poly, m_nonPlatedThroughHoleOdPolys, m_platedPadsBack, m_platedPadsFront, m_throughHoleAnnularRingPolys, m_throughHoleAnnularRings, m_throughHoleIds, m_throughHoleOdPolys, m_throughHoleOds, m_throughHoleViaIds, m_throughHoleViaOdPolys, m_throughHoleViaOds, and SHAPE_POLY_SET::RemoveAllContours().
Referenced by createLayers(), and ~BOARD_ADAPTER().
|
inlinenoexcept |
Return the 3D cache manager pointer.
Definition at line 87 of file board_adapter.h.
References m_3dModelManager.
Referenced by RENDER_3D_LEGACY::load3dModels(), and RENDER_3D_RAYTRACE::loadModels().
|
inline |
Get the current antialiasing mode value.
Definition at line 274 of file board_adapter.h.
References m_antiAliasingMode.
Referenced by EDA_3D_VIEWER::SaveSettings(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
|
inlinenoexcept |
Average diameter of through holes.
Definition at line 499 of file board_adapter.h.
References m_averageHoleDiameter.
Referenced by RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Average width of the tracks.
Definition at line 509 of file board_adapter.h.
References m_averageTrackWidth.
|
inlinenoexcept |
Thee average diameter of the via holes.
Definition at line 489 of file board_adapter.h.
References m_averageViaHoleDiameter.
Referenced by RENDER_3D_LEGACY::generateViasAndPads(), and RENDER_3D_RAYTRACE::Reload().
|
inline |
Definition at line 541 of file board_adapter.h.
References m_backPlatedPadPolys.
Referenced by RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get the board outling bounding box.
Definition at line 168 of file board_adapter.h.
References m_boardBoundingBox.
Referenced by EDA_3D_CANVAS::move_pivot_based_on_cur_mouse_position(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Get current board to be rendered.
Definition at line 135 of file board_adapter.h.
References m_board.
Referenced by RENDER_3D_RAYTRACE::addPadsAndVias(), RENDER_3D_LEGACY::createBoard(), RENDER_3D_LEGACY::generateViasAndPads(), RENDER_3D_LEGACY::load3dModels(), RENDER_3D_RAYTRACE::loadModels(), RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_LEGACY::render3dModelsSelected().
|
inlinenoexcept |
The board center position in 3D units.
Definition at line 235 of file board_adapter.h.
References m_boardCenter.
Referenced by RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get the current polygon of the epoxy board.
Definition at line 320 of file board_adapter.h.
References m_board_poly.
Referenced by RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get the board center.
Definition at line 225 of file board_adapter.h.
References m_boardPos.
Referenced by RENDER_3D_LEGACY::generate3dGrid().
|
inlinenoexcept |
Get the board size.
Definition at line 215 of file board_adapter.h.
References m_boardSize.
Referenced by RENDER_3D_LEGACY::generate3dGrid().
unsigned int BOARD_ADAPTER::GetCircleSegmentCount | ( | float | aDiameter3DU | ) | const |
aDiameter3DU | diameter in 3DU. |
Definition at line 256 of file board_adapter.cpp.
References m_biuTo3Dunits.
Referenced by RENDER_3D_LEGACY::addObjectTriangles(), addShapeWithClearance(), and RENDER_3D_LEGACY::generateViasAndPads().
unsigned int BOARD_ADAPTER::GetCircleSegmentCount | ( | int | aDiameterBIU | ) | const |
aDiameterBIU | diameter in board internal units. |
Definition at line 264 of file board_adapter.cpp.
References GetArcToSegmentCount().
aColor | the color mapped. |
Definition at line 537 of file board_adapter.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, and KIGFX::COLOR4D::r.
Referenced by RENDER_3D_LEGACY::generate3dGrid(), GetItemColor(), and EDA_3D_VIEWER::LoadSettings().
|
inlinenoexcept |
Get the current copper layer thickness.
Definition at line 198 of file board_adapter.h.
References m_copperThickness3DU.
Referenced by createLayers(), RENDER_3D_LEGACY::generateViasAndPads(), RENDER_3D_RAYTRACE::insertHole(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Get the current epoxy thickness.
Definition at line 178 of file board_adapter.h.
References m_epoxyThickness3DU.
Referenced by RENDER_3D_LEGACY::renderBoardBody().
bool BOARD_ADAPTER::GetFlag | ( | DISPLAY3D_FLG | aFlag | ) | const |
Get a configuration status of a flag.
aFlag | the flag to get the status. |
Definition at line 215 of file board_adapter.cpp.
References FL_LAST, and m_drawFlags.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), createLayers(), EDA_3D_CONDITIONS::flagFunction(), RENDER_3D_LEGACY::generateViasAndPads(), GetFootprintZPos(), RENDER_3D_LEGACY::getLayerColor(), RENDER_3D_RAYTRACE::getModelMaterial(), InitSettings(), RENDER_3D_RAYTRACE::insertHole(), Is3dLayerEnabled(), IsFootprintShown(), RENDER_3D_LEGACY::load3dModels(), EDA_3D_CANVAS::OnMouseWheel(), RENDER_3D_RAYTRACE::postProcessBlurFinish(), RENDER_3D_RAYTRACE::postProcessShading(), RENDER_3D_LEGACY::Redraw(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_LEGACY::reload(), RENDER_3D_LEGACY::render3dModels(), RENDER_3D_LEGACY::render3dModelsSelected(), RENDER_3D_RAYTRACE::renderAntiAliasPackets(), RENDER_3D_RAYTRACE::renderBlockTracing(), RENDER_3D_LEGACY::renderFootprint(), RENDER_3D_RAYTRACE::renderTracing(), RENDER_3D_LEGACY::setLayerMaterial(), RENDER_3D_RAYTRACE::setupMaterials(), RENDER_3D_LEGACY::setupMaterials(), RENDER_3D_RAYTRACE::shadeHit(), EDA_3D_CONTROLLER::ToggleVisibility(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
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 502 of file board_adapter.cpp.
References B_Paste, B_SilkS, F_Paste, F_SilkS, FL_SOLDERPASTE, GetFlag(), m_layerZcoordBottom, and m_layerZcoordTop.
Referenced by RENDER_3D_RAYTRACE::loadModels(), and RENDER_3D_LEGACY::renderFootprint().
|
inline |
Definition at line 536 of file board_adapter.h.
References m_frontPlatedPadPolys.
Referenced by RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get the current grid.
Definition at line 254 of file board_adapter.h.
References m_gridType.
Referenced by EDA_3D_CONDITIONS::gridSizeFunction(), RENDER_3D_LEGACY::Redraw(), and EDA_3D_VIEWER::SaveSettings().
|
inlinenoexcept |
Get number of holes in this board.
Definition at line 479 of file board_adapter.h.
References m_holeCount.
Referenced by RENDER_3D_LEGACY::generateViasAndPads(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Definition at line 546 of file board_adapter.h.
References m_layerHoleIdPolys.
Referenced by RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Definition at line 551 of file board_adapter.h.
References m_layerHoleOdPolys.
Referenced by RENDER_3D_LEGACY::reload().
|
noexcept |
Get the current copper layer thickness.
Definition at line 250 of file board_adapter.cpp.
References BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetHolePlatingThickness(), and m_board.
Referenced by createLayers(), RENDER_3D_LEGACY::generateViasAndPads(), and RENDER_3D_RAYTRACE::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 531 of file board_adapter.cpp.
References COLOR_SETTINGS::GetColor(), GetColor(), and m_colors.
Referenced by RENDER_3D_RAYTRACE::insertHole().
|
inlinenoexcept |
Get the bottom z position.
aLayerId | layer id. |
Definition at line 364 of file board_adapter.h.
References m_layerZcoordBottom.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), RENDER_3D_LEGACY::getLayerZPos(), RENDER_3D_RAYTRACE::insertHole(), RENDER_3D_LEGACY::Redraw(), and RENDER_3D_RAYTRACE::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 521 of file board_adapter.cpp.
References color, COLOR_SETTINGS::GetColor(), m_colors, and PCB_LAYER_ID_COUNT.
Referenced by RENDER_3D_LEGACY::getLayerColor(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Get the map of container that have the holes per layer.
Definition at line 394 of file board_adapter.h.
References m_layerHoleMap.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), and RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get the map of containers that have the objects per layer.
Definition at line 374 of file board_adapter.h.
References m_layerMap.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get the top z position.
aLayerId | layer id. |
Definition at line 353 of file board_adapter.h.
References m_layerZcoordTop.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), RENDER_3D_LEGACY::getLayerZPos(), RENDER_3D_LEGACY::Redraw(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Definition at line 310 of file board_adapter.h.
References m_materialMode.
Referenced by RENDER_3D_RAYTRACE::addModels(), RENDER_3D_RAYTRACE::getModelMaterial(), RENDER_3D_LEGACY::load3dModels(), EDA_3D_CONDITIONS::materialModeFunction(), and EDA_3D_VIEWER::SaveSettings().
|
inlinenoexcept |
Get the current non copper layers thickness.
Definition at line 188 of file board_adapter.h.
References m_nonCopperLayerThickness3DU.
Referenced by RENDER_3D_LEGACY::renderSolderMaskLayer(), and RENDER_3D_RAYTRACE::shadeHit().
|
inlinenoexcept |
Definition at line 436 of file board_adapter.h.
References m_nonPlatedThroughHoleOdPolys.
Referenced by RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Definition at line 384 of file board_adapter.h.
References m_platedPadsBack.
Referenced by RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Definition at line 379 of file board_adapter.h.
References m_platedPadsFront.
Referenced by RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get map of polygon's layers.
Definition at line 531 of file board_adapter.h.
References m_layers_poly.
Referenced by RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Definition at line 294 of file board_adapter.h.
References m_renderEngine.
Referenced by EDA_3D_CANVAS::DoRePaint(), EDA_3D_CANVAS::OnMouseMove(), EDA_3D_VIEWER::OnRenderEngineSelection(), EDA_3D_VIEWER::Redraw(), EDA_3D_VIEWER::refreshRender(), RENDER_3D_RAYTRACE::render(), EDA_3D_CANVAS::RenderEngineChanged(), EDA_3D_CONTROLLER::RotateView(), EDA_3D_VIEWER::SaveSettings(), EDA_3D_VIEWER::setupUIConditions(), and EDA_3D_CONTROLLER::ToggleOrtho().
|
inlinenoexcept |
Definition at line 431 of file board_adapter.h.
References m_throughHoleAnnularRingPolys.
Referenced by RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get the through hole annular rings container.
Definition at line 414 of file board_adapter.h.
References m_throughHoleAnnularRings.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), and RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get the through hole inner diameter container.
Definition at line 459 of file board_adapter.h.
References m_throughHoleIds.
Referenced by RENDER_3D_RAYTRACE::insertHole(), and RENDER_3D_LEGACY::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 426 of file board_adapter.h.
References m_throughHoleOdPolys.
Referenced by RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get the inflated through hole outside diameters container.
Definition at line 404 of file board_adapter.h.
References m_throughHoleOds.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Definition at line 449 of file board_adapter.h.
References m_throughHoleViaOdPolys.
Referenced by RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Definition at line 444 of file board_adapter.h.
References m_throughHoleViaOds.
Referenced by RENDER_3D_LEGACY::reload().
|
inlinenoexcept |
Get number of vias in this board.
Definition at line 469 of file board_adapter.h.
References m_viaCount.
Referenced by RENDER_3D_LEGACY::generateViasAndPads(), and RENDER_3D_RAYTRACE::Reload().
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 272 of file board_adapter.cpp.
References _, B_Adhes, B_Cu, B_Mask, B_Paste, B_SilkS, EDA_RECT::Centre(), BOARD::ComputeBoundingBox(), COPPER_THICKNESS, createBoardPolygon(), createLayers(), F_Adhes, F_Cu, F_Mask, F_Paste, F_SilkS, FL_USE_REALISTIC_MODE, BOARD_DESIGN_SETTINGS::GetBoardThickness(), BOARD::GetCopperLayerCount(), BOARD::GetDesignSettings(), GetFlag(), EDA_RECT::GetHeight(), GetRunningMicroSecs(), EDA_RECT::GetSize(), EDA_RECT::GetWidth(), EDA_RECT::Inflate(), BOARD::IsFootprintHolder(), layerThicknessMargin, m_biuTo3Dunits, m_board, m_boardBoundingBox, m_boardCenter, m_boardPos, m_boardSize, m_copperLayersCount, m_copperThickness3DU, m_epoxyThickness3DU, m_layerZcoordBottom, m_layerZcoordTop, m_logTrace, m_nonCopperLayerThickness3DU, m_solderPasteLayerThickness3DU, MAX_CU_LAYERS, Millimeter2iu(), PCB_LAYER_ID_COUNT, RANGE_SCALE_3D, REPORTER::Report(), RPT_SEVERITY_WARNING, SOLDERPASTE_LAYER_THICKNESS, and TECH_LAYER_THICKNESS.
Referenced by RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_LEGACY::reload().
bool BOARD_ADAPTER::Is3dLayerEnabled | ( | PCB_LAYER_ID | aLayer | ) | const |
Check if a layer is enabled.
aLayer | layer ID to get status. |
Definition at line 151 of file board_adapter.cpp.
References B_Adhes, B_Cu, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_Cu, F_Mask, F_Paste, F_SilkS, FL_ADHESIVE, FL_COMMENTS, FL_ECO, FL_SHOW_BOARD_BODY, FL_SILKSCREEN, FL_SOLDERMASK, FL_SOLDERPASTE, FL_USE_REALISTIC_MODE, GetFlag(), BOARD::IsLayerEnabled(), BOARD::IsLayerVisible(), m_board, Margin, and PCB_LAYER_ID_COUNT.
Referenced by createLayers(), and RENDER_3D_LEGACY::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 231 of file board_adapter.cpp.
References FL_FP_ATTRIBUTES_NORMAL, FL_FP_ATTRIBUTES_NORMAL_INSERT, FL_FP_ATTRIBUTES_VIRTUAL, FP_SMD, FP_THROUGH_HOLE, and GetFlag().
Referenced by RENDER_3D_RAYTRACE::loadModels(), and RENDER_3D_LEGACY::render3dModelsSelected().
|
inlinenoexcept |
Update the cache manager pointer.
aCachePointer | the pointer to the 3D cache manager. |
Definition at line 79 of file board_adapter.h.
References m_3dModelManager.
Referenced by EDA_3D_CANVAS::ReloadRequest().
|
inline |
Set the current antialiasing mode value.
aAAmode | antialiasing mode value. |
Definition at line 281 of file board_adapter.h.
References m_antiAliasingMode.
Referenced by EDA_3D_VIEWER::LoadSettings(), and DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow().
|
inlinenoexcept |
Set current board to be rendered.
aBoard | board to process. |
Definition at line 125 of file board_adapter.h.
References m_board.
Referenced by EDA_3D_CANVAS::ReloadRequest().
|
inlinenoexcept |
Definition at line 140 of file board_adapter.h.
References m_colors.
Referenced by EDA_3D_CANVAS::ReloadRequest().
void BOARD_ADAPTER::SetFlag | ( | DISPLAY3D_FLG | aFlag, |
bool | aState | ||
) |
Set the status of a flag.
aFlag | the flag to set the status |
aState | status to set. |
Definition at line 223 of file board_adapter.cpp.
References FL_LAST, and m_drawFlags.
Referenced by BOARD_ADAPTER(), PANEL_PREV_3D::loadCommonSettings(), EDA_3D_VIEWER::loadCommonSettings(), PANEL_PREV_3D::PANEL_PREV_3D(), EDA_3D_CONTROLLER::ToggleVisibility(), and DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow().
|
inlinenoexcept |
Set the current grid.
aGridType | the type space of the grid. |
Definition at line 264 of file board_adapter.h.
References m_gridType.
Referenced by EDA_3D_VIEWER::LoadSettings(), and EDA_3D_CONTROLLER::On3DGridSelection().
|
inlinenoexcept |
aMaterialMode | the render material mode. |
Definition at line 302 of file board_adapter.h.
References m_materialMode.
Referenced by EDA_3D_VIEWER::LoadSettings(), and EDA_3D_CONTROLLER::SetMaterial().
|
inlinenoexcept |
aRenderEngine | the render engine mode selected. |
Definition at line 286 of file board_adapter.h.
References m_renderEngine.
Referenced by EDA_3D_CANVAS::DoRePaint(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::OnDisableRayTracing(), and EDA_3D_VIEWER::OnRenderEngineSelection().
|
private |
Definition at line 571 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), Is_segment_a_circle(), m_biuTo3Dunits, and RotatePoint().
Referenced by addShapeWithClearance(), and createTrack().
|
private |
Definition at line 62 of file create_layer_poly.cpp.
References ERROR_INSIDE, BOARD_ITEM::GetLayer(), FOOTPRINT::GraphicalItems(), PCB_FP_SHAPE_T, and PCB_SHAPE::TransformShapeWithClearanceToPolygon().
Referenced by createLayers().
|
private |
Definition at line 642 of file board_adapter.h.
Referenced by Get3dCacheManager(), and Set3dCacheManager().
|
private |
Definition at line 649 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetAntiAliasingMode(), and SetAntiAliasingMode().
|
private |
Definition at line 748 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageHoleDiameter().
|
private |
Number of through hole vias in the board.
Definition at line 736 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageTrackWidth().
|
private |
Number of holes in the board.
Definition at line 742 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageViaHoleDiameter().
|
private |
Polygon contours for hole outer diameters for each layer.
Definition at line 662 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetBackPlatedPadPolys().
SFVEC4F BOARD_ADAPTER::m_BgColorBot |
background bottom color
Definition at line 609 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::Process_Special_Functions(), RENDER_3D_LEGACY::Redraw(), RENDER_3D_RAYTRACE::Redraw(), RENDER_3D_RAYTRACE::render(), RENDER_3D_RAYTRACE::renderPreview(), and EDA_3D_VIEWER::SaveSettings().
SFVEC4F BOARD_ADAPTER::m_BgColorTop |
background top color
Definition at line 610 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::Process_Special_Functions(), RENDER_3D_LEGACY::Redraw(), RENDER_3D_RAYTRACE::Redraw(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_RAYTRACE::render(), RENDER_3D_RAYTRACE::renderPreview(), EDA_3D_VIEWER::SaveSettings(), and RENDER_3D_RAYTRACE::setupMaterials().
|
private |
Top (End) Z position of each layer in 3D units.
Definition at line 712 of file board_adapter.h.
Referenced by addFootprintShapesWithClearance(), addShapeWithClearance(), addSolidAreasShapes(), BiuTo3dUnits(), BOARD_ADAPTER(), buildPadOutlineAsSegments(), createLayers(), createPadWithClearance(), createPadWithDrill(), createTrack(), GetCircleSegmentCount(), InitSettings(), and transformArcToSegments().
|
private |
Definition at line 641 of file board_adapter.h.
Referenced by createBoardPolygon(), createLayers(), GetBoard(), GetHolePlatingThickness(), InitSettings(), Is3dLayerEnabled(), and SetBoard().
|
private |
Board outline polygon.
Definition at line 682 of file board_adapter.h.
Referenced by createBoardPolygon(), and GetBoardPoly().
SFVEC4F BOARD_ADAPTER::m_BoardBodyColor |
in realistic mode: FR4 board color
Definition at line 611 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), RENDER_3D_LEGACY::Redraw(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_LEGACY::renderBoardBody(), EDA_3D_VIEWER::SaveSettings(), EDA_3D_VIEWER::Set3DBoardBodyColorFromUser(), and RENDER_3D_RAYTRACE::setupMaterials().
|
private |
3D bounding box of the board in 3D units.
Polygon contours for each layer.
Definition at line 655 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 654 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardCenter(), and InitSettings().
|
private |
Board center position in board internal units.
Definition at line 652 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardPos(), and InitSettings().
|
private |
Board size in board internal units.
Definition at line 653 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardSize(), and InitSettings().
|
private |
Definition at line 643 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetItemColor(), GetLayerColor(), and SetColorSettings().
SFVEC4F BOARD_ADAPTER::m_CopperColor |
in realistic mode: copper color
Definition at line 617 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_LEGACY::getLayerColor(), RENDER_3D_RAYTRACE::insertHole(), EDA_3D_VIEWER::LoadSettings(), RENDER_3D_RAYTRACE::Reload(), EDA_3D_VIEWER::SaveSettings(), EDA_3D_VIEWER::Set3DCopperColorFromUser(), RENDER_3D_RAYTRACE::setupMaterials(), and RENDER_3D_LEGACY::setupMaterials().
|
private |
Scale factor to convert board internal units to 3D units normalized between -1.0 and 1.0.
Definition at line 709 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and InitSettings().
|
private |
Epoxy thickness in 3D units.
Definition at line 721 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetCopperThickness(), and InitSettings().
|
private |
Definition at line 645 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetFlag(), and SetFlag().
|
private |
Non copper layers thickness in 3D units.
Definition at line 724 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetEpoxyThickness(), and InitSettings().
|
private |
Definition at line 661 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetFrontPlatedPadPolys().
|
private |
Definition at line 646 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetGridType(), and SetGridType().
|
private |
Computed average diameter of the holes in 3D units.
Definition at line 745 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetHoleCount().
|
private |
Polygon contours for non plated through hole outer diameters.
Definition at line 668 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleIdPolysMap().
|
private |
List of through holes with the radius of the hole inflated with the copper thickness.
Definition at line 691 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerHoleMap().
|
private |
Polygon contours for hole inner diameters for each layer.
Definition at line 665 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleOdPolysMap().
|
private |
2D elements for each layer.
Definition at line 684 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerMap().
|
private |
Definition at line 659 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetPolyMap().
|
private |
Copper thickness in 3D units.
Definition at line 718 of file board_adapter.h.
Referenced by GetFootprintZPos(), GetLayerBottomZPos(), and InitSettings().
|
private |
Bottom (Start) Z position of each layer in 3D units.
Definition at line 715 of file board_adapter.h.
Referenced by GetFootprintZPos(), GetLayerTopZPos(), and InitSettings().
|
private |
Definition at line 648 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetMaterialMode(), and SetMaterialMode().
|
private |
solder paste layers thickness in 3D units.
Definition at line 727 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetNonCopperLayerThickness(), and InitSettings().
|
private |
Polygon contours for through hole outer diameters.
Definition at line 671 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetOuterNonPlatedThroughHolePoly().
SFVEC3F BOARD_ADAPTER::m_OpenGlSelectionColor |
Definition at line 619 of file board_adapter.h.
Referenced by EDA_3D_VIEWER::LoadSettings(), RENDER_3D_LEGACY::renderFootprint(), EDA_3D_VIEWER::SaveSettings(), DIALOG_3D_VIEW_OPTIONS::TransferColorDataToWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow().
|
private |
The holes per each layer.
Definition at line 688 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetPlatedPadsBack().
|
private |
Definition at line 687 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetPlatedPadsFront().
|
private |
Definition at line 647 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), GetRenderEngine(), and SetRenderEngine().
SFVEC3F BOARD_ADAPTER::m_RtCameraLightColor |
Definition at line 622 of file board_adapter.h.
Referenced by EDA_3D_VIEWER::LoadSettings(), DIALOG_3D_VIEW_OPTIONS::OnLightsResetToDefaults(), RENDER_3D_RAYTRACE::Reload(), EDA_3D_VIEWER::SaveSettings(), DIALOG_3D_VIEW_OPTIONS::TransferColorDataToWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow().
std::vector<SFVEC3F> BOARD_ADAPTER::m_RtLightColor |
Definition at line 626 of file board_adapter.h.
Referenced by EDA_3D_VIEWER::LoadSettings(), DIALOG_3D_VIEW_OPTIONS::OnLightsResetToDefaults(), RENDER_3D_RAYTRACE::Reload(), EDA_3D_VIEWER::SaveSettings(), DIALOG_3D_VIEW_OPTIONS::TransferColorDataToWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow().
SFVEC3F BOARD_ADAPTER::m_RtLightColorBottom |
Definition at line 624 of file board_adapter.h.
Referenced by EDA_3D_VIEWER::LoadSettings(), DIALOG_3D_VIEW_OPTIONS::OnLightsResetToDefaults(), RENDER_3D_RAYTRACE::Reload(), EDA_3D_VIEWER::SaveSettings(), DIALOG_3D_VIEW_OPTIONS::TransferColorDataToWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow().
SFVEC3F BOARD_ADAPTER::m_RtLightColorTop |
Definition at line 623 of file board_adapter.h.
Referenced by EDA_3D_VIEWER::LoadSettings(), DIALOG_3D_VIEW_OPTIONS::OnLightsResetToDefaults(), RENDER_3D_RAYTRACE::Reload(), EDA_3D_VIEWER::SaveSettings(), DIALOG_3D_VIEW_OPTIONS::TransferColorDataToWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow().
std::vector<SFVEC2F> BOARD_ADAPTER::m_RtLightSphericalCoords |
Definition at line 627 of file board_adapter.h.
Referenced by EDA_3D_VIEWER::LoadSettings(), DIALOG_3D_VIEW_OPTIONS::OnLightsResetToDefaults(), RENDER_3D_RAYTRACE::Reload(), EDA_3D_VIEWER::SaveSettings(), DIALOG_3D_VIEW_OPTIONS::TransferColorDataToWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow().
int BOARD_ADAPTER::m_RtRecursiveReflectionCount |
Definition at line 633 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::SaveSettings(), RENDER_3D_RAYTRACE::setupMaterials(), DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
int BOARD_ADAPTER::m_RtRecursiveRefractionCount |
Definition at line 634 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::SaveSettings(), RENDER_3D_RAYTRACE::setupMaterials(), DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
int BOARD_ADAPTER::m_RtReflectionSampleCount |
Definition at line 631 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::SaveSettings(), RENDER_3D_RAYTRACE::setupMaterials(), DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
int BOARD_ADAPTER::m_RtRefractionSampleCount |
Definition at line 632 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::SaveSettings(), RENDER_3D_RAYTRACE::setupMaterials(), DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
int BOARD_ADAPTER::m_RtShadowSampleCount |
Definition at line 630 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::SaveSettings(), RENDER_3D_RAYTRACE::shadeHit(), DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
float BOARD_ADAPTER::m_RtSpreadReflections |
Definition at line 637 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::SaveSettings(), RENDER_3D_RAYTRACE::shadeHit(), DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
float BOARD_ADAPTER::m_RtSpreadRefractions |
Definition at line 638 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::SaveSettings(), RENDER_3D_RAYTRACE::shadeHit(), DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
float BOARD_ADAPTER::m_RtSpreadShadows |
Definition at line 636 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), EDA_3D_VIEWER::LoadSettings(), EDA_3D_VIEWER::SaveSettings(), RENDER_3D_RAYTRACE::shadeHit(), DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow(), and DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow().
SFVEC4F BOARD_ADAPTER::m_SilkScreenColorBot |
in realistic mode: SilkScreen color ( bot )
Definition at line 615 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_LEGACY::getLayerColor(), EDA_3D_VIEWER::LoadSettings(), RENDER_3D_RAYTRACE::Reload(), EDA_3D_VIEWER::SaveSettings(), EDA_3D_VIEWER::Set3DSilkScreenColorFromUser(), RENDER_3D_LEGACY::setupMaterials(), and EDA_3D_VIEWER::SynchroniseColoursWithBoard().
SFVEC4F BOARD_ADAPTER::m_SilkScreenColorTop |
in realistic mode: SilkScreen color ( top )
Definition at line 616 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_LEGACY::getLayerColor(), EDA_3D_VIEWER::LoadSettings(), RENDER_3D_RAYTRACE::Reload(), EDA_3D_VIEWER::SaveSettings(), EDA_3D_VIEWER::Set3DSilkScreenColorFromUser(), RENDER_3D_RAYTRACE::setupMaterials(), RENDER_3D_LEGACY::setupMaterials(), and EDA_3D_VIEWER::SynchroniseColoursWithBoard().
SFVEC4F BOARD_ADAPTER::m_SolderMaskColorBot |
in realistic mode: solder mask color ( bot )
Definition at line 612 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_LEGACY::getLayerColor(), EDA_3D_VIEWER::LoadSettings(), RENDER_3D_RAYTRACE::Reload(), EDA_3D_VIEWER::Set3DSolderMaskColorFromUser(), and EDA_3D_VIEWER::SynchroniseColoursWithBoard().
SFVEC4F BOARD_ADAPTER::m_SolderMaskColorTop |
in realistic mode: solder mask color ( top )
Definition at line 613 of file board_adapter.h.