pcb 4.1.1
An interactive printed circuit board layout editor.

PCBType Struct Reference

The PCBType struct holds information about board layout most of which is saved with the layout. More...

#include <global.h>

Collaboration diagram for PCBType:

Data Fields

long ID
FlagType Flags
char * Name
char * Filename
char * PrintFilename
char * Netlistname
char ThermStyle
bool Changed
bool ViaOn
bool ElementOn
bool RatOn
bool InvisibleObjectsOn
bool PinOn
bool SilkActive
bool RatDraw
char * ViaColor
char * ViaSelectedColor
char * PinColor
char * PinSelectedColor
char * PinNameColor
char * ElementColor
char * RatColor
char * InvisibleObjectsColor
char * InvisibleMarkColor
char * ElementSelectedColor
char * RatSelectedColor
char * ConnectedColor
char * FoundColor
char * WarnColor
char * MaskColor
long CursorX
long CursorY
long Clipping
Coord Bloat
Coord Shrink
Coord minWid
Coord minSlk
Coord minDrill
Coord minRing
Coord GridOffsetX
Coord GridOffsetY
Coord MaxWidth
Coord MaxHeight
Coord Grid
double IsleArea
double ThermScale
FontType Font
LayerGroupType LayerGroups
RouteStyleType RouteStyle [NUM_STYLES]
LibraryType NetlistLib
AttributeListType Attributes
DataTypeData
bool is_footprint

Detailed Description

The PCBType struct holds information about board layout most of which is saved with the layout.

A new PCB layout struct is first initialized with values from the user configurable Settings struct and then reset to the saved layout values when a layout is loaded.

This struct is also used for the remove list and for buffer handling.

Definition at line 571 of file global.h.


Field Documentation

Connected color.

Definition at line 588 of file global.h.

Referenced by draw_pad(), draw_pin(), draw_via(), pcb_colors_from_settings(), rat_callback(), and set_layer_object_color().

Cursor position as saved with layout (X value).

Definition at line 603 of file global.h.

Referenced by LoadLayoutToBuffer(), and real_load_pcb().

Cursor position as saved with layout (Y value).

Definition at line 603 of file global.h.

Referenced by LoadLayoutToBuffer(), and real_load_pcb().

Entire database.

Definition at line 625 of file global.h.

Referenced by _draw_pv(), acquire_twonets(), ActionAddRats(), ActionAttributes(), ActionChangePinName(), ActionDisperseElements(), ActionDisplay(), ActionDJopt(), ActionElementList(), ActionElementSetAttr(), ActionListRotations(), ActionMinClearGap(), ActionMinMaskGap(), ActionMorphPolygon(), ActionRenumber(), ActionRipUp(), ActionSetLayertype(), ActionSetSame(), ActionToggleHideName(), AddAllRats(), AddNet(), AddObjectToCreateUndoList(), AddObjectToMoveToLayerUndoList(), AddSelectedToBuffer(), apply_vendor_map(), assign_eagle_file_suffix(), assign_hackvana_file_suffix(), assign_oshpark_file_suffix(), AssignDefaultLayerTypes(), AutoRoute(), ChangeArcAngles(), ChangeArcClearSize(), ChangeArcJoin(), ChangeArcSize(), ChangeBuriedViasAfterLayerCreate(), ChangeBuriedViasAfterLayerDelete(), ChangeBuriedViasAfterLayerMove(), ChangeElement2ndSize(), ChangeElementName(), ChangeElementNameSize(), ChangeElementSide(), ChangeGroupVisibility(), ChangeHole(), ChangeLineClearSize(), ChangeLineJoin(), ChangeLineSize(), ChangeObjectViaLayers(), ChangePadClearSize(), ChangePadMaskSize(), ChangePadSize(), ChangePadSquare(), ChangePin2ndSize(), ChangePinClearSize(), ChangePinMaskSize(), ChangePinOctagon(), ChangePinSize(), ChangePinSquare(), ChangePinThermal(), ChangePolyClear(), ChangeSelectedElementSide(), ChangeSelectedHole(), ChangeSelectedPaste(), ChangeSelectedViaLayers(), ChangeTextJoin(), ChangeTextName(), ChangeTextSize(), ChangeVia2ndSize(), ChangeViaClearSize(), ChangeViaMaskSize(), ChangeViaOctagon(), ChangeViaSize(), ChangeViaThermal(), check_line_callback(), check_pin(), CheckArcPointForRubberbandConnection(), CheckLinePointForRat(), CheckLinePointForRubberbandConnection(), CheckPadForRat(), CheckPadForRubberbandConnection(), CheckPinForRat(), CheckPolygonForRubberbandConnection(), CheckShorts(), ClearFlagOnLinesAndPolygons(), ClearFlagOnPinsViasAndPads(), ClearFromPolygon(), ClearWarnings(), collectSelectedElements(), ComputeCost(), config_layers_apply(), ConvertBufferToElement(), CopyAttachedPolygonToLayer(), CopyElement(), CopyObjectToUndoList(), CopyPolygon(), CopyVia(), CountHoles(), CountHolesEx(), create_pcb_line(), CreateNewPCB(), CreateNewPCBPost(), CreateRouteData(), Debug(), DeleteRats(), describe_location(), DestroyPolygonPoint(), doPerturb(), DrawEverything(), DrawHoles(), DrawLayerGroup(), DrawMask(), DrawNewConnections(), DrawPaste(), DrawPPV(), DrawRats(), DrawShortestRats(), DrawSilk(), drc_lines(), DRCAll(), element_name_for(), eps_hid_export_to_file(), eps_set_layer(), escape(), Export(), find_element_by_refdes(), find_pairs(), FindPad(), FindPin(), FitCrosshairIntoGrid(), FlagIsDataEmpty(), FlagLayerShown(), FontEdit(), FontSave(), FreePCBMemory(), GatherSubnets(), gcode_choose_groups(), gcode_set_layer(), gerber_do_export(), gerber_set_layer(), GetLayerGroupNumberByPointer(), GetUndoSlot(), ghid_config_groups_changed(), ghid_set_layer(), GotoError(), group_showing(), gsvit_build_net_from_selected(), gsvit_choose_groups(), gsvit_set_layer(), gsvit_write_xcentroids(), hid_restore_layer_ons(), hid_save_and_show_layer_ons(), identify_layer(), idle_proc(), import_geometry(), info(), InitComponentLookup(), InitLayoutLookup(), InsertPointIntoLine(), InsertPointIntoPolygon(), IPCD356_Netlist(), IPCD356_SanityCheck(), IPCD356_WriteNet(), IronDownAllUnfixedPaths(), IsLayerNumEmpty(), IsPasteEmpty(), layer_button_callback(), layer_name_entry_cb(), layer_process(), layer_selector_toggle_callback(), layer_type_to_file_name(), layerpick_button_callback(), LayersChanged(), LayerStringToLayerStack(), lesstif_set_layer(), lesstif_update_layer_groups(), lgbutton_expose(), ListStart(), LoadLayoutToBuffer(), LookupConnection(), LookupConnectionsToAllElements(), LookupLOConnectionsToArc(), LookupLOConnectionsToLine(), LookupLOConnectionsToPad(), LookupLOConnectionsToPolygon(), LookupLOConnectionsToPVList(), LookupLOConnectionsToRatEnd(), LookupPVConnectionsToLOList(), LookupPVConnectionsToPVList(), LookupRubberbandLines(), LookupUnusedPins(), main(), maybe_pull_1(), move_all_thermals(), MoveArc(), MoveArcToLayer(), MoveElement(), MoveElementLowLevel(), MoveElementName(), MoveLayer(), MoveLine(), moveline_callback(), MoveLinePoint(), MoveLineToLayer(), MoveObjectToRemoveUndoList(), MovePolygon(), MovePolygonPoint(), MovePolygonToLayer(), MoveText(), MoveTextToLayerLowLevel(), MoveVia(), nbcb_ripup(), nelma_choose_groups(), nelma_set_layer(), netlist_rip_up_cb(), netnode_browse(), NotifyMode(), padcleaner(), Parse(), parse_arguments(), pcb_colors_from_settings(), PCBFileVersionNeeded(), place(), png_do_export(), png_hid_export_to_file(), png_set_layer(), Print(), PrintBOM(), PrintFab(), PrintFab_overhang(), ProcNetlist(), ps_hid_export_to_file(), ps_set_layer(), RD_DrawVia(), read_pads(), read_points(), relocate(), remove_line(), RemoveDegradedVias(), RemovePolygonContour(), RemovePolygonPoint(), renumber_block(), ReportAllNetLengths(), ReportDialog(), ReportDrills(), ReportFoundPins(), ReportNetLength(), ResetStackAndVisibility(), ResetVisitPinsViasAndPads(), RestoreStackAndVisibility(), RestoreToPolygon(), ripout_livedraw_obj(), RotateArc(), RotateElement(), RotateElementName(), RotateLinePoint(), RotateObject(), RotateText(), SaveStackAndVisibility(), SearchElementByLocation(), SearchElementNameByLocation(), SearchObjectByLocation(), SearchPadByLocation(), SearchPinByLocation(), SearchRatLineByLocation(), SearchViaByLocation(), SelectBlock(), SelectBuriedVias(), SelectByFlag(), SelectedOperation(), selection_changed_cb(), SelectLayer(), smartdisperse(), teardrops(), text_callback(), ToggleView(), UndoChange2ndSize(), UndoChangeAngles(), UndoChangeClearSize(), UndoChangeMaskSize(), UndoChangeName(), UndoChangeSize(), UndoClearPoly(), UndoCopyOrCreate(), UndoFlag(), UndoInsertPoint(), UndoMirror(), UndoMove(), UndoMoveToLayer(), UndoRemove(), UndoRemovePoint(), UndoRotate(), UndoSetViaLayers(), UndoSwapCopiedObject(), UnsubtractArc(), UnsubtractLine(), UnsubtractPad(), UnsubtractPin(), UnsubtractText(), ViaIsOnAnyVisibleLayer(), WritePCB(), WritePCBRatData(), WritePipe(), XORDrawBuffer(), and XYtoNetLength().

Selected elements color.

Definition at line 588 of file global.h.

Referenced by draw_element_name(), draw_element_package(), and pcb_colors_from_settings().

See macro.h.

Definition at line 573 of file global.h.

Referenced by CreateNewPCB().

Invisible mark color.

Definition at line 588 of file global.h.

Referenced by DrawEMark(), and pcb_colors_from_settings().

If set, the user has loaded a footprint, not a pcb.

Definition at line 627 of file global.h.

Referenced by WritePipe().

Minimum poly island to retain.

Definition at line 618 of file global.h.

Referenced by biggest(), config_sizes_apply(), CreateNewPCB(), MorphPolygon(), and WritePCBDataHeader().

Definition at line 621 of file global.h.

Referenced by AddIrregularObstacle(), AddLine(), AddPad(), assign_eagle_file_suffix(), assign_hackvana_file_suffix(), assign_oshpark_file_suffix(), ChangeGroupVisibility(), config_layers_apply(), CreateNewPCB(), CreateNewPCBPost(), CreateRouteData(), DrawLayerGroup(), eps_set_layer(), export_oproutes(), extents_set_layer(), gcode_do_export(), gcode_set_layer(), gerber_set_layer(), GetLayerGroupNumberByNumber(), GetMaxBottomLayer(), ghid_config_groups_changed(), ghid_config_layer_name_update(), ghid_set_layer(), grok_layer_groups(), group_showing(), groupcount(), gsvit_do_export(), gsvit_lookup_net_from_arc(), gsvit_lookup_net_from_line(), gsvit_lookup_net_from_polygon(), gsvit_set_layer(), gsvit_write_xnets(), gsvit_write_xspace(), import_geometry(), IronDownAllUnfixedPaths(), IsLayerGroupEmpty(), LastNormalLayerInSideGroup(), layer_button_callback(), layer_type_to_file_name(), LayerGroupsToString(), lesstif_set_layer(), lesstif_update_layer_groups(), LookupLOConnectionsToArc(), LookupLOConnectionsToLine(), LookupLOConnectionsToLOList(), LookupLOConnectionsToPad(), LookupLOConnectionsToPolygon(), LookupLOConnectionsToRatEnd(), main(), MoveLayer(), MoveLayerToGroup(), nelma_do_export(), nelma_set_layer(), nelma_write_layers(), nelma_write_nets(), nelma_write_object(), nelma_write_space(), parse_arguments(), png_set_layer(), ps_set_layer(), RD_DrawLine(), ResetStackAndVisibility(), ripout_livedraw_obj(), SmashBufferElement(), SwapBuffer(), SwapSides(), and WritePCBDataHeader().

Mask color.

Definition at line 588 of file global.h.

Referenced by DrawMask(), DrawMaskBoardArea(), LayersChanged(), and pcb_colors_from_settings().

Maximum allowed height size.

Definition at line 612 of file global.h.

Referenced by ActionElementList(), ActionFlip(), ActionNew(), Benchmark(), ChangePCBSize(), ComputeCost(), config_sizes_apply(), config_sizes_tab_create(), CreateNewPCB(), createPerturbation(), CreateRouteData(), crosshair_update_range(), CursorAction(), draw_dozen_cross(), draw_right_cross(), draw_slanted_cross(), DrawBackgroundImage(), DrawLayer(), DrawMaskBoardArea(), eps_hid_export_to_file(), Expand(), FontEdit(), gcode_do_export(), gcode_fill_circle(), gcode_start_gcode(), gcode_start_png(), gcode_start_png_export(), gerber_do_export(), gerber_set_layer(), ghid_draw_bg_image(), ghid_drawing_area_expose_cb(), ghid_pinout_preview_expose(), ghid_port_ranges_scale(), ghid_render_pixmap(), ghid_request_debug_draw(), ghid_zoom_view_abs(), ghid_zoom_view_fit(), gsvit_start_png(), gsvit_start_png_export(), gsvit_write_xcentroids(), gsvit_write_xspace(), hidgl_draw_grid(), idle_proc(), info(), InitCrosshair(), IPCD356_WriteNet(), lesstif_do_export(), lesstif_invalidate_all(), lesstif_pan_fixup(), lesstif_sizes_reset(), moveable_edge(), nelma_start_png(), nelma_start_png_export(), Pan(), pan_common(), PCBChanged(), pinout_callback(), png_do_export(), png_draw_line(), png_hid_export_to_file(), PrintBOM(), PrintFab(), ps_hid_export_to_file(), ps_set_layer(), Py(), r_find_neighbor(), read_board_constraints(), real_load_pcb(), redraw_region(), SetCrosshairRange(), sizes_set(), toporouter_output_init(), Vy(), WritePCBDataHeader(), zoom_max(), and zoom_to().

Maximum allowed width size.

Definition at line 612 of file global.h.

Referenced by ActionDisperseElements(), ActionElementList(), ActionNew(), Benchmark(), ChangePCBSize(), ComputeCost(), config_sizes_apply(), config_sizes_tab_create(), CreateNewPCB(), createPerturbation(), CreateRouteData(), crosshair_update_range(), CursorAction(), draw_dozen_cross(), draw_right_cross(), draw_slanted_cross(), DrawBackgroundImage(), DrawLayer(), DrawMaskBoardArea(), eps_hid_export_to_file(), Expand(), FontEdit(), gcode_do_export(), gcode_fill_circle(), gcode_start_gcode(), gcode_start_png(), gcode_start_png_export(), gerber_do_export(), gerber_set_layer(), ghid_draw_bg_image(), ghid_drawing_area_expose_cb(), ghid_pinout_preview_expose(), ghid_port_ranges_scale(), ghid_render_pixmap(), ghid_request_debug_draw(), ghid_zoom_view_abs(), ghid_zoom_view_fit(), gsvit_start_png(), gsvit_start_png_export(), gsvit_write_xspace(), hidgl_draw_grid(), idle_proc(), info(), InitCrosshair(), lesstif_do_export(), lesstif_invalidate_all(), lesstif_pan_fixup(), lesstif_sizes_reset(), moveable_edge(), nelma_start_png(), nelma_start_png_export(), Pan(), pan_common(), PCBChanged(), pinout_callback(), place(), png_do_export(), png_draw_line(), png_hid_export_to_file(), PrintFab(), ps_hid_export_to_file(), ps_set_layer(), Px(), r_find_neighbor(), read_board_constraints(), real_load_pcb(), redraw_region(), SetCrosshairRange(), sizes_set(), toporouter_output_init(), Vx(), WritePCBDataHeader(), zoom_max(), and zoom_to().

Name of netlist file.

Definition at line 575 of file global.h.

Referenced by ActionLoadFrom().

Pin color.

Definition at line 588 of file global.h.

Referenced by draw_pad(), draw_pin(), LayersChanged(), pcb_colors_from_settings(), and PrintFab().

Pin name color.

Definition at line 588 of file global.h.

Referenced by _draw_pv_name(), draw_pad_name(), and pcb_colors_from_settings().

Selected pin color.

Definition at line 588 of file global.h.

Referenced by draw_pad(), draw_pin(), and pcb_colors_from_settings().

From print dialog.

Definition at line 575 of file global.h.

Referenced by FreePCBMemory().

Rat line color.

Definition at line 588 of file global.h.

Referenced by LayersChanged(), pcb_colors_from_settings(), and rat_callback().

Selected rat line color.

Definition at line 588 of file global.h.

Referenced by pcb_colors_from_settings(), and rat_callback().

Scale factor used with thermals.

Definition at line 618 of file global.h.

Referenced by CreateNewPCB(), oct_therm(), square_therm(), ThermPoly(), and WritePCBDataHeader().

Type of thermal to place with thermal tool.

Definition at line 575 of file global.h.

Referenced by ActionSetThermal(), CreateNewPCB(), IronDownAllUnfixedPaths(), and NotifyMode().

Via color.

Definition at line 588 of file global.h.

Referenced by draw_via(), LayersChanged(), and pcb_colors_from_settings().

Selected via color.

Definition at line 588 of file global.h.

Referenced by draw_via(), hole_callback(), and pcb_colors_from_settings().

Warning color.

Definition at line 588 of file global.h.

Referenced by draw_pad(), draw_pin(), draw_via(), hole_callback(), and pcb_colors_from_settings().


The documentation for this struct was generated from the following file: