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. More... | |
S3D_CACHE * | Get3dCacheManager () const noexcept |
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 |
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 | GetBoardBodyThickness () const noexcept |
Get the board body thickness, including internal copper layers (in 3D units). More... | |
float | GetNonCopperLayerThickness () const noexcept |
Get the non copper layers thickness (in 3D units). More... | |
float | GetFrontCopperThickness () const noexcept |
Get the copper layer thicknesses (in 3D units). More... | |
float | GetBackCopperThickness () const noexcept |
int | GetHolePlatingThickness () const noexcept |
Get the hole plating thickness (NB: in BOARD UNITS!). More... | |
VECTOR2I | GetBoardSize () const noexcept |
Get the board size. More... | |
VECTOR2I | 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... | |
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 (const COLOR4D &aColor) const |
SFVEC2F | GetSphericalCoord (int i) 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 |
const BVH_CONTAINER_2D & | GetThroughHoleIds () const noexcept |
const BVH_CONTAINER_2D & | GetThroughHoleOds () const noexcept |
const SHAPE_POLY_SET & | GetThroughHoleOdPolys () const noexcept |
Get through hole outside diameter 2D polygons. More... | |
const BVH_CONTAINER_2D & | GetThroughHoleAnnularRings () const noexcept |
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 |
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. More... | |
const SHAPE_POLY_SET * | GetFrontPlatedPadPolys () |
const SHAPE_POLY_SET * | GetBackPlatedPadPolys () |
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 the board adaptater is living in a 3D preview panel, false for the standard 3D viewer More... | |
SFVEC4F | m_BgColorBot |
background bottom color More... | |
SFVEC4F | m_BgColorTop |
background top color More... | |
SFVEC4F | m_BoardBodyColor |
in realistic mode: FR4 board color More... | |
SFVEC4F | m_SolderMaskColorBot |
in realistic mode: solder mask color ( bot ) More... | |
SFVEC4F | m_SolderMaskColorTop |
in realistic mode: solder mask color ( top ) More... | |
SFVEC4F | m_SolderPasteColor |
in realistic mode: solder paste color More... | |
SFVEC4F | m_SilkScreenColorBot |
in realistic mode: SilkScreen color ( bot ) More... | |
SFVEC4F | m_SilkScreenColorTop |
in realistic mode: SilkScreen color ( top ) More... | |
SFVEC4F | m_CopperColor |
in realistic mode: copper color More... | |
Static Public Attributes | |
static CUSTOM_COLORS_LIST | g_SilkscreenColors |
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 |
Private Member Functions | |
bool | createBoardPolygon (wxString *aErrorMsg) |
Create the board outline polygon. More... | |
void | createLayers (REPORTER *aStatusReporter) |
void | destroyLayers () |
void | createTrack (const PCB_TRACK *aTrack, CONTAINER_2D_BASE *aDstContainer) |
void | createPadWithMargin (const PAD *aPad, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayer, const VECTOR2I &aMargin) const |
OBJECT_2D * | createPadWithDrill (const PAD *aPad, int aInflateValue) |
void | addPads (const FOOTPRINT *aFootprint, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId, bool aSkipNPTHPadsWihNoCopper, bool aSkipPlatedPads, bool aSkipNonPlatedPads) |
void | addFootprintShapes (const FOOTPRINT *aFootprint, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId) |
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) |
void | addShape (const PCB_DIMENSION_BASE *aDimension, CONTAINER_2D_BASE *aDstContainer, const BOARD_ITEM *aOwner) |
void | addSolidAreasShapes (const ZONE *aZone, CONTAINER_2D_BASE *aDstContainer, PCB_LAYER_ID aLayerId) |
void | transformArcToSegments (const VECTOR2I &aCentre, const VECTOR2I &aStart, const EDA_ANGLE &aArcAngle, int aCircleToSegmentsCount, int aWidth, CONTAINER_2D_BASE *aDstContainer, const BOARD_ITEM &aOwner) |
void | buildPadOutlineAsSegments (const PAD *aPad, CONTAINER_2D_BASE *aDstContainer, int aWidth) |
void | buildPadOutlineAsPolygon (const PAD *aPad, SHAPE_POLY_SET &aBuffer, int aWidth) const |
void | transformFPShapesToPolySet (const FOOTPRINT *aFootprint, PCB_LAYER_ID aLayer, SHAPE_POLY_SET &aBuffer) const |
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. More... | |
Helper class to handle information needed to display 3D board.
Definition at line 68 of file board_adapter.h.
BOARD_ADAPTER::BOARD_ADAPTER | ( | ) |
Definition at line 81 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_DefaultSilkscreen, g_DefaultSolderMask, g_DefaultSolderPaste, g_DefaultSurfaceFinish, g_FinishColors, g_MaskColors, g_PasteColors, g_SilkscreenColors, m_averageHoleDiameter, m_averageTrackWidth, m_averageViaHoleDiameter, m_backCopperThickness3DU, m_backPlatedPadPolys, m_BgColorBot, m_BgColorTop, m_biuTo3Dunits, m_BoardBodyColor, m_boardBodyThickness3DU, m_boardBoundingBox, m_boardCenter, m_boardPos, m_boardSize, m_colors, m_CopperColor, m_copperLayersCount, m_frontCopperThickness3DU, m_frontPlatedPadPolys, m_holeCount, m_logTrace, m_nonCopperLayerThickness3DU, m_platedPadsBack, m_platedPadsFront, m_SilkScreenColorBot, m_SilkScreenColorTop, m_SolderMaskColorBot, m_SolderMaskColorTop, m_SolderPasteColor, m_solderPasteLayerThickness3DU, m_throughHoleAnnularRings, m_throughHoleIds, m_throughHoleOds, m_trackCount, m_viaCount, NotSpecifiedPrm(), Pgm(), PgmOrNull(), BBOX_3D::Reset(), and SOLDERPASTE_LAYER_THICKNESS.
BOARD_ADAPTER::~BOARD_ADAPTER | ( | ) |
Definition at line 205 of file board_adapter.cpp.
References destroyLayers().
|
private |
Definition at line 182 of file create_3Dgraphic_brd_items.cpp.
References addShape(), addText(), BOARD_ITEM::GetLayer(), FOOTPRINT::GraphicalItems(), EDA_TEXT::IsVisible(), PCB_FP_DIM_ALIGNED_T, PCB_FP_DIM_CENTER_T, PCB_FP_DIM_LEADER_T, PCB_FP_DIM_ORTHOGONAL_T, PCB_FP_DIM_RADIAL_T, PCB_FP_SHAPE_T, PCB_FP_TEXT_T, PCB_FP_TEXTBOX_T, FOOTPRINT::Reference(), text, and FOOTPRINT::Value().
Referenced by createLayers().
|
private |
Definition at line 490 of file create_3Dgraphic_brd_items.cpp.
References B_Cu, B_Mask, B_Paste, CIRCLE, createPadWithMargin(), F_Cu, F_Mask, F_Paste, IsCopperLayer(), NPTH, OVAL, pad, PAD_DRILL_SHAPE_CIRCLE, FOOTPRINT::Pads(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by createLayers().
|
private |
Definition at line 145 of file create_3Dgraphic_brd_items.cpp.
References SEG::A, CONTAINER_2D_BASE::Add(), addText(), SEG::B, delta, PCB_DIMENSION_BASE::GetLineThickness(), PCB_DIMENSION_BASE::GetShapes(), SH_CIRCLE, SH_SEGMENT, TO_3DU, and TO_SFVEC2F.
|
private |
Definition at line 629 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), ARC, ARC_HIGH_DEF, BEZIER, CIRCLE, ConvertPolygonToTriangles(), ERROR_INSIDE, FIRST_TYPE, EDA_SHAPE::GetArcAngle(), BOARD_ITEM::GetBoard(), PCB_SHAPE::GetBoundingBox(), PCB_SHAPE::GetCenter(), GetCircleSegmentCount(), PCB_PLOT_PARAMS::GetDashedLineDashRatio(), PCB_PLOT_PARAMS::GetDashedLineGapRatio(), EDA_SHAPE::GetEnd(), BOARD::GetPlotOptions(), STROKE_PARAMS::GetPlotStyle(), EDA_SHAPE::GetRadius(), EDA_SHAPE::GetRectCorners(), EDA_SHAPE::GetShape(), BOX2< Vec >::GetSizeMax(), EDA_SHAPE::GetStart(), PCB_SHAPE::GetStroke(), EDA_SHAPE::GetWidth(), Is_segment_a_circle(), SHAPE_POLY_SET::IsEmpty(), EDA_SHAPE::IsFilled(), m_biuTo3Dunits, EDA_SHAPE::MakeEffectiveShapes(), SHAPE_POLY_SET::PM_FAST, POLY, RECT, SEGMENT, KIGFX::RENDER_SETTINGS::SetDashLengthRatio(), KIGFX::RENDER_SETTINGS::SetGapLengthRatio(), EDA_SHAPE::SHAPE_T_asString(), SHAPE_POLY_SET::Simplify(), STROKE_PARAMS::Stroke(), TO_3DU, TO_SFVEC2F, transformArcToSegments(), PCB_SHAPE::TransformShapeToPolygon(), and UNDEFINED_LAYER.
Referenced by addFootprintShapes(), and createLayers().
|
private |
Definition at line 782 of file create_3Dgraphic_brd_items.cpp.
References ConvertPolygonToTriangles(), ZONE::GetFilledPolysList(), and m_biuTo3Dunits.
|
private |
Definition at line 66 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), SHAPE_POLY_SET::AddOutline(), SHAPE_POLY_SET::BooleanSubtract(), ConvertPolygonToTriangles(), KIFONT::FONT::Draw(), SHAPE_POLY_SET::Fracture(), EDA_TEXT::GetAttributes(), EDA_TEXT::GetDrawPos(), EDA_TEXT::GetDrawRotation(), EDA_TEXT::GetEffectiveTextPenWidth(), EDA_TEXT::GetFont(), KIFONT::FONT::GetFont(), GetKnockoutTextMargin(), EDA_TEXT::GetShownText(), Is_segment_a_circle(), EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), BOARD_ITEM::IsKnockout(), KIFONT::FONT::IsOutline(), KIFONT::FONT::IsStroke(), TEXT_ATTRIBUTES::m_Angle, m_biuTo3Dunits, TEXT_ATTRIBUTES::m_Size, TEXT_ATTRIBUTES::m_StrokeWidth, SHAPE_POLY_SET::PM_FAST, TO_3DU, TO_SFVEC2F, and EDA_TEXT::TransformBoundingBoxToPolygon().
Referenced by addFootprintShapes(), addShape(), and createLayers().
|
inlinenoexcept |
Board integer units To 3D units.
Definition at line 118 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::insertHole(), RENDER_3D_RAYTRACE::load3DModels(), RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_RAYTRACE::setupMaterials().
|
private |
Definition at line 41 of file create_layer_poly.cpp.
References CIRCLE, ERROR_INSIDE, BOARD::GetDesignSettings(), PAD::GetEffectivePolygon(), PAD::GetShape(), PAD::GetSize(), m_board, BOARD_DESIGN_SETTINGS::m_MaxError, path, PAD::ShapePos(), TransformOvalToPolygon(), TransformRingToPolygon(), and VECTOR2< T >::x.
|
private |
Definition at line 791 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), CIRCLE, PAD::GetEffectivePolygon(), PAD::GetShape(), PAD::GetSize(), Is_segment_a_circle(), path, PAD::ShapePos(), TO_3DU, TO_SFVEC2F, and VECTOR2< T >::x.
|
private |
Create the board outline polygon.
Definition at line 655 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 124 of file create_layer_items.cpp.
References _, CONTAINER_2D_BASE::Add(), addFootprintShapes(), addPads(), addShape(), addText(), LSET::AllCuMask(), arrayDim(), B_Cu, BiuTo3dUnits(), BVH_CONTAINER_2D::BuildBVH(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::clip_silk_on_via_annulus, createPadWithDrill(), createTrack(), destroyLayers(), BOARD::Drawings(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::engine, ERROR_INSIDE, F_Cu, BOARD::Footprints(), BOARD::GetDesignSettings(), GetHolePlatingThickness(), GetRunningMicroSecs(), Is3dLayerEnabled(), IsCopperLayer(), BOARD_ITEM::IsOnLayer(), m_averageHoleDiameter, m_averageTrackWidth, m_averageViaHoleDiameter, m_backPlatedPadPolys, m_biuTo3Dunits, m_board, m_Cfg, m_copperLayersCount, m_frontPlatedPadPolys, m_holeCount, m_layerHoleIdPolys, m_layerHoleMap, m_layerHoleOdPolys, m_layerMap, m_layers_poly, m_logTrace, BOARD_DESIGN_SETTINGS::m_MaxError, m_nonPlatedThroughHoleOdPolys, m_platedPadsBack, m_platedPadsFront, EDA_3D_VIEWER_SETTINGS::m_Render, m_throughHoleAnnularRingPolys, m_throughHoleAnnularRings, m_throughHoleIds, m_throughHoleOdPolys, m_throughHoleOds, m_throughHoleViaOdPolys, m_throughHoleViaOds, m_trackCount, m_viaCount, MAX_CU_LAYERS, NPTH, OPENGL, 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_TEXT_T, PCB_TEXTBOX_T, PCB_VIA_T, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::realistic, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::renderPlatedPadsAsPlated, REPORTER::Report(), LSET::Seq(), EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_zones, text, THROUGH, ToLAYER_ID(), BOARD::Tracks(), TransformCircleToPolygon(), transformFPShapesToPolySet(), PCB_TRACK::TransformShapeToPolygon(), PCB_TEXTBOX::TransformTextToPolySet(), EDA_ITEM::Type(), via, VECTOR2< T >::x, and BOARD::Zones().
Referenced by InitSettings().
Definition at line 464 of file create_3Dgraphic_brd_items.cpp.
References PAD::GetEffectiveHoleShape(), PAD::HasHole(), m_logTrace, TO_3DU, and TO_SFVEC2F.
Referenced by createLayers().
|
private |
Definition at line 322 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(), CUSTOM, 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(), Is_segment_a_circle(), 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, UNIMPLEMENTED_FOR, SHAPE_SIMPLE::Vertices(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by addPads().
|
private |
Definition at line 251 of file create_3Dgraphic_brd_items.cpp.
References std::abs(), CONTAINER_2D_BASE::Add(), ARC_HIGH_DEF, EDA_ANGLE::AsDegrees(), PCB_ARC::GetAngle(), GetArcToSegmentCount(), PCB_ARC::GetCenter(), PCB_TRACK::GetEnd(), PCB_ARC::GetRadius(), PCB_TRACK::GetStart(), PCB_TRACK::GetWidth(), Is_segment_a_circle(), KiROUND(), PCB_ARC_T, PCB_TRACE_T, PCB_VIA_T, TO_3DU, TO_SFVEC2F, transformArcToSegments(), EDA_ITEM::Type(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by createLayers().
|
private |
Definition at line 57 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 |
Definition at line 81 of file board_adapter.h.
References m_3dModelManager.
Referenced by RENDER_3D_RAYTRACE::load3DModels(), and RENDER_3D_OPENGL::load3dModels().
|
inlinenoexcept |
Definition at line 295 of file board_adapter.h.
References m_averageHoleDiameter.
Referenced by RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Definition at line 300 of file board_adapter.h.
References m_averageTrackWidth.
|
inlinenoexcept |
Definition at line 290 of file board_adapter.h.
References m_averageViaHoleDiameter.
Referenced by RENDER_3D_OPENGL::generateViasAndPads(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Definition at line 141 of file board_adapter.h.
References m_backCopperThickness3DU.
Referenced by RENDER_3D_RAYTRACE::insertHole(), and RENDER_3D_RAYTRACE::Reload().
|
inline |
Definition at line 322 of file board_adapter.h.
References m_backPlatedPadPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Get the board outling bounding box.
Definition at line 125 of file board_adapter.h.
References m_boardBoundingBox.
Referenced by NL_3D_VIEWER_PLUGIN_IMPL::GetHitLookAt(), NL_3D_VIEWER_PLUGIN_IMPL::GetModelExtents(), EDA_3D_CANVAS::move_pivot_based_on_cur_mouse_position(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Definition at line 101 of file board_adapter.h.
References m_board.
Referenced by RENDER_3D_RAYTRACE::addPadsAndVias(), RENDER_3D_OPENGL::createBoard(), createPadWithMargin(), RENDER_3D_OPENGL::generateViasAndPads(), RENDER_3D_OPENGL::get3dModelsSelected(), RENDER_3D_RAYTRACE::load3DModels(), RENDER_3D_OPENGL::load3dModels(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Get the board body thickness, including internal copper layers (in 3D units).
Definition at line 130 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 167 of file board_adapter.h.
References m_boardCenter.
Referenced by RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Get the current polygon of the epoxy board.
Definition at line 183 of file board_adapter.h.
References m_board_poly.
Referenced by RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Get the board center.
Definition at line 160 of file board_adapter.h.
References m_boardPos.
Referenced by RENDER_3D_OPENGL::generate3dGrid().
|
inlinenoexcept |
Get the board size.
Definition at line 153 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 291 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 299 of file board_adapter.cpp.
References ARC_HIGH_DEF, FULL_CIRCLE, and GetArcToSegmentCount().
[in] | aColor | is the color mapped. |
Definition at line 737 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::Reload(), RENDER_3D_OPENGL::renderOpaqueModels(), and RENDER_3D_OPENGL::renderTransparentModels().
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 702 of file board_adapter.cpp.
References B_Paste, B_SilkS, F_Paste, F_SilkS, m_Cfg, m_layerZcoordBottom, m_layerZcoordTop, EDA_3D_VIEWER_SETTINGS::m_Render, and EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_solderpaste.
Referenced by RENDER_3D_OPENGL::get3dModelsFromFootprint(), and RENDER_3D_RAYTRACE::load3DModels().
|
inlinenoexcept |
Get the copper layer thicknesses (in 3D units).
Definition at line 140 of file board_adapter.h.
References m_frontCopperThickness3DU.
Referenced by RENDER_3D_RAYTRACE::insertHole(), and RENDER_3D_RAYTRACE::Reload().
|
inline |
Definition at line 321 of file board_adapter.h.
References m_frontPlatedPadPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 285 of file board_adapter.h.
References m_holeCount.
Referenced by RENDER_3D_OPENGL::generateViasAndPads(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Definition at line 323 of file board_adapter.h.
References m_layerHoleIdPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 324 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 284 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::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 731 of file board_adapter.cpp.
References GetColor(), COLOR_SETTINGS::GetColor(), and m_colors.
Referenced by RENDER_3D_RAYTRACE::insertHole().
|
inlinenoexcept |
Get the bottom z position.
aLayerId | layer id. |
Definition at line 226 of file board_adapter.h.
References m_layerZcoordBottom.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), RENDER_3D_OPENGL::getLayerZPos(), RENDER_3D_RAYTRACE::insertHole(), RENDER_3D_OPENGL::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 721 of file board_adapter.cpp.
References color, COLOR_SETTINGS::GetColor(), m_colors, and PCB_LAYER_ID_COUNT.
Referenced by RENDER_3D_OPENGL::getLayerColor(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Definition at line 240 of file board_adapter.h.
References m_layerHoleMap.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), and RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Get the map of containers that have the objects per layer.
Definition at line 236 of file board_adapter.h.
References m_layerMap.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Get the top z position.
aLayerId | layer id. |
Definition at line 215 of file board_adapter.h.
References m_layerZcoordTop.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), RENDER_3D_OPENGL::getLayerZPos(), RENDER_3D_OPENGL::Redraw(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Get the non copper layers thickness (in 3D units).
Definition at line 135 of file board_adapter.h.
References m_nonCopperLayerThickness3DU.
Referenced by RENDER_3D_OPENGL::renderSolderMaskLayer(), and RENDER_3D_RAYTRACE::shadeHit().
|
inlinenoexcept |
Definition at line 266 of file board_adapter.h.
References m_nonPlatedThroughHoleOdPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 238 of file board_adapter.h.
References m_platedPadsBack.
Referenced by RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Definition at line 237 of file board_adapter.h.
References m_platedPadsFront.
Referenced by RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Get map of polygon's layers.
Definition at line 319 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 743 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::Reload().
|
inlinenoexcept |
Definition at line 261 of file board_adapter.h.
References m_throughHoleAnnularRingPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 256 of file board_adapter.h.
References m_throughHoleAnnularRings.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), and RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 241 of file board_adapter.h.
References m_throughHoleIds.
Referenced by RENDER_3D_RAYTRACE::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 251 of file board_adapter.h.
References m_throughHoleOdPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 242 of file board_adapter.h.
References m_throughHoleOds.
Referenced by RENDER_3D_RAYTRACE::createItemsFromContainer(), RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE::Reload().
|
inlinenoexcept |
Definition at line 279 of file board_adapter.h.
References m_throughHoleViaOdPolys.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 274 of file board_adapter.h.
References m_throughHoleViaOds.
Referenced by RENDER_3D_OPENGL::reload().
|
inlinenoexcept |
Definition at line 284 of file board_adapter.h.
References m_viaCount.
Referenced by RENDER_3D_OPENGL::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 307 of file board_adapter.cpp.
References _, KIGFX::COLOR4D::a, B_Adhes, B_Cu, B_Mask, B_Paste, B_SilkS, BS_ITEM_TYPE_COPPER, BS_ITEM_TYPE_DIELECTRIC, BS_ITEM_TYPE_SILKSCREEN, BS_ITEM_TYPE_SOLDERMASK, BOX2< Vec >::Centre(), color, 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, g_BoardColors, g_DefaultBoardBody, g_DefaultSilkscreen, g_DefaultSolderMask, g_DefaultSurfaceFinish, g_FinishColors, g_MaskColors, g_SilkscreenColors, ADVANCED_CFG::GetCfg(), COLOR_SETTINGS::GetColor(), BOARD::GetCopperLayerCount(), BOARD_STACKUP::GetCount(), BOARD::GetDesignSettings(), BOX2< Vec >::GetHeight(), BOARD_STACKUP::GetList(), GetRunningMicroSecs(), BOX2< Vec >::GetSize(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), COLOR_SETTINGS::GetUseBoardStackupColors(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Inflate(), BOARD::IsFootprintHolder(), LAYER_3D_BACKGROUND_BOTTOM, LAYER_3D_BACKGROUND_TOP, LAYER_3D_BOARD, LAYER_3D_COPPER, LAYER_3D_SILKSCREEN_BOTTOM, LAYER_3D_SILKSCREEN_TOP, LAYER_3D_SOLDERMASK_BOTTOM, LAYER_3D_SOLDERMASK_TOP, LAYER_3D_SOLDERPASTE, layerThicknessMargin, m_backCopperThickness3DU, m_BgColorBot, m_BgColorTop, m_biuTo3Dunits, m_board, m_BoardBodyColor, m_boardBodyThickness3DU, m_boardBoundingBox, m_boardCenter, m_boardPos, m_boardSize, m_Cfg, m_CopperColor, m_copperLayersCount, BOARD_STACKUP::m_FinishType, m_frontCopperThickness3DU, m_layerZcoordBottom, m_layerZcoordTop, m_logTrace, m_nonCopperLayerThickness3DU, EDA_3D_VIEWER_SETTINGS::m_Render, m_SilkScreenColorBot, m_SilkScreenColorTop, m_SolderMaskColorBot, m_SolderMaskColorTop, m_SolderPasteColor, m_solderPasteLayerThickness3DU, MAX_CU_LAYERS, KIGFX::COLOR4D::Mix(), EDA_IU_SCALE::mmToIU(), PCB_LAYER_ID_COUNT, pcbIUScale, Pgm(), RANGE_SCALE_3D, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::realistic, REPORTER::Report(), RPT_SEVERITY_WARNING, SOLDERPASTE_LAYER_THICKNESS, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by RENDER_3D_OPENGL::reload(), and RENDER_3D_RAYTRACE::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 211 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, BOARD::IsLayerEnabled(), BOARD::IsLayerVisible(), m_board, m_Cfg, EDA_3D_VIEWER_SETTINGS::m_Render, Margin, PCB_LAYER_ID_COUNT, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::realistic, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_adhesive, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_board_body, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_comments, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_eco, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_silkscreen, EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_soldermask, and EDA_3D_VIEWER_SETTINGS::RENDER_SETTINGS::show_solderpaste.
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 263 of file board_adapter.cpp.
References 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_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::load3DModels().
|
inlinenoexcept |
Update the cache manager pointer.
aCachePointer | the pointer to the 3D cache manager. |
Definition at line 80 of file board_adapter.h.
References m_3dModelManager.
Referenced by EDA_3D_CANVAS::ReloadRequest().
|
inlinenoexcept |
Set current board to be rendered.
aBoard | board to process. |
Definition at line 100 of file board_adapter.h.
References m_board.
Referenced by PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), and EDA_3D_CANVAS::ReloadRequest().
|
inlinenoexcept |
Definition at line 103 of file board_adapter.h.
References m_colors.
Referenced by EDA_3D_CANVAS::ReloadRequest().
|
private |
Definition at line 572 of file create_3Dgraphic_brd_items.cpp.
References CONTAINER_2D_BASE::Add(), ANGLE_0, ANGLE_360, delta, Is_segment_a_circle(), RotatePoint(), TO_3DU, and TO_SFVEC2F.
Referenced by addShape(), and createTrack().
|
private |
Definition at line 67 of file create_layer_poly.cpp.
References BaseType(), ERROR_INSIDE, BOARD::GetDesignSettings(), BOARD_ITEM::GetLayer(), FOOTPRINT::GraphicalItems(), m_board, BOARD_DESIGN_SETTINGS::m_MaxError, PCB_DIMENSION_T, PCB_FP_SHAPE_T, PCB_DIMENSION_BASE::TransformShapeToPolygon(), and PCB_SHAPE::TransformShapeToPolygon().
Referenced by createLayers().
|
static |
Definition at line 380 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 383 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 382 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 388 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 384 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 385 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 386 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 387 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 379 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 377 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 378 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
static |
Definition at line 376 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), and PANEL_3D_COLORS::PANEL_3D_COLORS().
|
private |
Definition at line 410 of file board_adapter.h.
Referenced by Get3dCacheManager(), and Set3dCacheManager().
|
private |
Definition at line 469 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageHoleDiameter().
|
private |
Definition at line 465 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageTrackWidth().
|
private |
Definition at line 467 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetAverageViaHoleDiameter().
|
private |
Definition at line 459 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBackCopperThickness(), and InitSettings().
|
private |
Definition at line 423 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetBackPlatedPadPolys().
SFVEC4F BOARD_ADAPTER::m_BgColorBot |
background bottom color
Definition at line 398 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), RENDER_3D_OPENGL::Redraw(), RENDER_3D_RAYTRACE::Redraw(), and RENDER_3D_RAYTRACE::render().
SFVEC4F BOARD_ADAPTER::m_BgColorTop |
background top color
Definition at line 399 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), RENDER_3D_OPENGL::Redraw(), RENDER_3D_RAYTRACE::Redraw(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_RAYTRACE::render(), and RENDER_3D_RAYTRACE::setupMaterials().
|
private |
Scale factor to convert board internal units to 3D units normalized between -1.0 and 1.0.
Definition at line 449 of file board_adapter.h.
Referenced by addShape(), addSolidAreasShapes(), addText(), BiuTo3dUnits(), BOARD_ADAPTER(), createLayers(), createPadWithMargin(), GetCircleSegmentCount(), and InitSettings().
|
private |
Definition at line 409 of file board_adapter.h.
Referenced by buildPadOutlineAsPolygon(), createBoardPolygon(), createLayers(), GetBoard(), GetHolePlatingThickness(), InitSettings(), Is3dLayerEnabled(), SetBoard(), and transformFPShapesToPolySet().
|
private |
Board outline polygon.
Definition at line 433 of file board_adapter.h.
Referenced by createBoardPolygon(), and GetBoardPoly().
SFVEC4F BOARD_ADAPTER::m_BoardBodyColor |
in realistic mode: FR4 board color
Definition at line 400 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), InitSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), RENDER_3D_OPENGL::Redraw(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_OPENGL::renderBoardBody(), and RENDER_3D_RAYTRACE::setupMaterials().
|
private |
Definition at line 460 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardBodyThickness(), and InitSettings().
|
private |
3D bounding box of the board in 3D units.
Definition at line 417 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 416 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardCenter(), and InitSettings().
|
private |
Board center position in board internal units.
Definition at line 414 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardPos(), and InitSettings().
|
private |
Board size in board internal units.
Definition at line 415 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetBoardSize(), and InitSettings().
EDA_3D_VIEWER_SETTINGS* BOARD_ADAPTER::m_Cfg |
Definition at line 391 of file board_adapter.h.
Referenced by RENDER_3D_RAYTRACE::addModels(), EDA_3D_VIEWER_FRAME::applyViewport(), RENDER_3D_RAYTRACE::createItemsFromContainer(), createLayers(), EDA_3D_CANVAS::DoRePaint(), RENDER_3D_OPENGL::generateViasAndPads(), RENDER_3D_OPENGL::get3dModelsSelected(), GetFootprintZPos(), RENDER_3D_OPENGL::getLayerColor(), RENDER_3D_RAYTRACE::getModelMaterial(), GetSphericalCoord(), EDA_3D_CONDITIONS::gridSizeFunction(), InitSettings(), RENDER_3D_RAYTRACE::insertHole(), Is3dLayerEnabled(), IsFootprintShown(), RENDER_3D_RAYTRACE::load3DModels(), RENDER_3D_OPENGL::load3dModels(), PANEL_PREVIEW_3D_MODEL::loadSettings(), EDA_3D_VIEWER_FRAME::LoadSettings(), EDA_3D_CONTROLLER::On3DGridSelection(), EDA_3D_VIEWER_FRAME::onDisableRayTracing(), EDA_3D_CANVAS::OnMouseMove(), EDA_3D_VIEWER_FRAME::onRenderEngineSelection(), RENDER_3D_RAYTRACE::postProcessBlurFinish(), RENDER_3D_RAYTRACE::postProcessShading(), EDA_3D_VIEWER_FRAME::Redraw(), RENDER_3D_OPENGL::Redraw(), EDA_3D_VIEWER_FRAME::refreshRender(), RENDER_3D_OPENGL::reload(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_RAYTRACE::render(), RENDER_3D_RAYTRACE::renderAntiAliasPackets(), RENDER_3D_RAYTRACE::renderBlockTracing(), RENDER_3D_OPENGL::renderModel(), RENDER_3D_OPENGL::renderOpaqueModels(), RENDER_3D_OPENGL::renderTransparentModels(), EDA_3D_CONTROLLER::RotateView(), EDA_3D_VIEWER_FRAME::SaveSettings(), RENDER_3D_OPENGL::setLayerMaterial(), EDA_3D_CONTROLLER::SetMaterial(), RENDER_3D_OPENGL::setupMaterials(), RENDER_3D_RAYTRACE::setupMaterials(), EDA_3D_VIEWER_FRAME::setupUIConditions(), RENDER_3D_RAYTRACE::shadeHit(), EDA_3D_CONTROLLER::ToggleOrtho(), and EDA_3D_CONTROLLER::ToggleVisibility().
|
private |
Definition at line 412 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 406 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_OPENGL::getLayerColor(), InitSettings(), RENDER_3D_RAYTRACE::insertHole(), PANEL_PREVIEW_3D_MODEL::loadSettings(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_OPENGL::setupMaterials(), and RENDER_3D_RAYTRACE::setupMaterials().
|
private |
Definition at line 447 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and InitSettings().
|
private |
Definition at line 458 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetFrontCopperThickness(), and InitSettings().
|
private |
Definition at line 422 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetFrontPlatedPadPolys().
|
private |
Definition at line 468 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetHoleCount().
bool BOARD_ADAPTER::m_IsBoardView |
Definition at line 393 of file board_adapter.h.
Referenced by RENDER_3D_OPENGL::get3dModelsSelected(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), RENDER_3D_OPENGL::renderOpaqueModels(), and RENDER_3D_OPENGL::renderTransparentModels().
bool BOARD_ADAPTER::m_IsPreviewer |
true if the board adaptater is living in a 3D preview panel, false for the standard 3D viewer
Definition at line 395 of file board_adapter.h.
Referenced by IsFootprintShown(), and PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL().
|
private |
Hole inner diameters (per layer)
Definition at line 426 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleIdPolysMap().
|
private |
Holes for each layer.
Definition at line 436 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerHoleMap().
|
private |
Hole outer diameters (per layer)
Definition at line 425 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetHoleOdPolysMap().
|
private |
2D elements for each layer.
Definition at line 435 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetLayerMap().
|
private |
Amalgamated polygon contours for various types of items.
Definition at line 419 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 455 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 452 of file board_adapter.h.
Referenced by GetFootprintZPos(), GetLayerTopZPos(), and InitSettings().
bool BOARD_ADAPTER::m_MousewheelPanning |
Definition at line 394 of file board_adapter.h.
Referenced by EDA_3D_VIEWER_FRAME::loadCommonSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), and EDA_3D_CANVAS::OnMouseWheel().
|
private |
Definition at line 461 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), GetNonCopperLayerThickness(), and InitSettings().
|
private |
NPTH outer diameters.
Definition at line 428 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetOuterNonPlatedThroughHolePoly().
|
private |
Definition at line 439 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetPlatedPadsBack().
|
private |
Definition at line 438 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetPlatedPadsFront().
|
private |
Definition at line 411 of file board_adapter.h.
SFVEC4F BOARD_ADAPTER::m_SilkScreenColorBot |
in realistic mode: SilkScreen color ( bot )
Definition at line 404 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_OPENGL::getLayerColor(), InitSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_OPENGL::setupMaterials().
SFVEC4F BOARD_ADAPTER::m_SilkScreenColorTop |
in realistic mode: SilkScreen color ( top )
Definition at line 405 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_OPENGL::getLayerColor(), InitSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_OPENGL::setupMaterials(), and RENDER_3D_RAYTRACE::setupMaterials().
SFVEC4F BOARD_ADAPTER::m_SolderMaskColorBot |
in realistic mode: solder mask color ( bot )
Definition at line 401 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_OPENGL::getLayerColor(), InitSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), and RENDER_3D_RAYTRACE::Reload().
SFVEC4F BOARD_ADAPTER::m_SolderMaskColorTop |
in realistic mode: solder mask color ( top )
Definition at line 402 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_OPENGL::getLayerColor(), InitSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), RENDER_3D_RAYTRACE::Reload(), and RENDER_3D_RAYTRACE::setupMaterials().
SFVEC4F BOARD_ADAPTER::m_SolderPasteColor |
in realistic mode: solder paste color
Definition at line 403 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), RENDER_3D_OPENGL::getLayerColor(), InitSettings(), PANEL_PREVIEW_3D_MODEL::loadSettings(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_OPENGL::setupMaterials(), and RENDER_3D_RAYTRACE::setupMaterials().
|
private |
Definition at line 462 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and InitSettings().
|
private |
Via annular ring outer diameters.
Definition at line 431 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetThroughHoleAnnularRingPolys().
|
private |
List of via annular rings.
Definition at line 443 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetThroughHoleAnnularRings().
|
private |
List of PTH inner diameters.
Definition at line 442 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetThroughHoleIds().
|
private |
PTH outer diameters.
Definition at line 429 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetThroughHoleOdPolys().
|
private |
List of PTH outer diameters.
Definition at line 441 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), destroyLayers(), and GetThroughHoleOds().
|
private |
List of via hole inner diameters.
Definition at line 445 of file board_adapter.h.
Referenced by destroyLayers().
|
private |
Via hole outer diameters.
Definition at line 430 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetThroughHoleViaOdPolys().
|
private |
List of via hole outer diameters.
Definition at line 444 of file board_adapter.h.
Referenced by createLayers(), destroyLayers(), and GetThroughHoleViaOds().
|
private |
Definition at line 464 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), and createLayers().
|
private |
Definition at line 466 of file board_adapter.h.
Referenced by BOARD_ADAPTER(), createLayers(), and GetViaCount().