KiCad PCB EDA Suite
Loading...
Searching...
No Matches
VIA_PROTECTION_UI_MIXIN Class Reference

#include <via_protection_ui_mixin.h>

Inheritance diagram for VIA_PROTECTION_UI_MIXIN:
DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS DIALOG_TRACK_VIA_PROPERTIES

Classes

struct  IPC4761_CONFIGURATION
 

Protected Types

enum class  IPC4761_SURFACE {
  FROM_RULES = 0 , NONE = 1 , FRONT = 2 , BACK = 3 ,
  BOTH = 4 , CUSTOM = 5
}
 
enum class  IPC4761_DRILL { FROM_RULES = 0 , NOT_SET = 1 , SET = 2 }
 
enum class  IPC4761_PRESET {
  FROM_RULES = 0 , NONE = 1 , IA = 2 , IB = 3 ,
  IA_INVERTED = 4 , IIA = 5 , IIB = 6 , IIA_INVERTED = 7 ,
  IIIA = 8 , IIIB = 9 , IIIA_INVERTED = 10 , IVA = 11 ,
  IVB = 12 , IVA_INVERTED = 13 , V = 14 , VIA = 15 ,
  VIB = 16 , VIA_INVERTED = 17 , VII = 18 , CUSTOM = 19 ,
  END = 20
}
 

Protected Member Functions

IPC4761_SURFACE getProtectionSurface (const std::optional< bool > &front, const std::optional< bool > &back)
 
IPC4761_DRILL getProtectionDrill (const std::optional< bool > &drill)
 
IPC4761_PRESET getViaConfiguration (const PCB_VIA *aVia)
 
void setSurfaceProtection (std::optional< bool > &aFront, std::optional< bool > &aBack, IPC4761_SURFACE aProtection)
 
void setDrillProtection (std::optional< bool > &aDrill, IPC4761_DRILL aProtection)
 
void setViaConfiguration (PCB_VIA *aVia, const IPC4761_PRESET &aPreset)
 

Protected Attributes

const std::map< IPC4761_PRESET, IPC4761_CONFIGURATIONm_IPC4761Presets
 
const std::map< IPC4761_PRESET, wxString > m_IPC4761Names
 

Detailed Description

Definition at line 30 of file via_protection_ui_mixin.h.

Member Enumeration Documentation

◆ IPC4761_DRILL

enum class VIA_PROTECTION_UI_MIXIN::IPC4761_DRILL
strongprotected
Enumerator
FROM_RULES 
NOT_SET 
SET 

Definition at line 43 of file via_protection_ui_mixin.h.

◆ IPC4761_PRESET

enum class VIA_PROTECTION_UI_MIXIN::IPC4761_PRESET
strongprotected
Enumerator
FROM_RULES 
NONE 
IA 
IB 
IA_INVERTED 
IIA 
IIB 
IIA_INVERTED 
IIIA 
IIIB 
IIIA_INVERTED 
IVA 
IVB 
IVA_INVERTED 
VIA 
VIB 
VIA_INVERTED 
VII 
CUSTOM 
END 

Definition at line 50 of file via_protection_ui_mixin.h.

◆ IPC4761_SURFACE

enum class VIA_PROTECTION_UI_MIXIN::IPC4761_SURFACE
strongprotected
Enumerator
FROM_RULES 
NONE 
FRONT 
BACK 
BOTH 
CUSTOM 

Definition at line 33 of file via_protection_ui_mixin.h.

Member Function Documentation

◆ getProtectionDrill()

IPC4761_DRILL VIA_PROTECTION_UI_MIXIN::getProtectionDrill ( const std::optional< bool > & drill)
inlineprotected

Definition at line 174 of file via_protection_ui_mixin.h.

References FROM_RULES, NOT_SET, and SET.

Referenced by getViaConfiguration().

◆ getProtectionSurface()

IPC4761_SURFACE VIA_PROTECTION_UI_MIXIN::getProtectionSurface ( const std::optional< bool > & front,
const std::optional< bool > & back )
inlineprotected

Definition at line 140 of file via_protection_ui_mixin.h.

References BACK, BOTH, CUSTOM, FROM_RULES, FRONT, and NONE.

Referenced by getViaConfiguration().

◆ getViaConfiguration()

◆ setDrillProtection()

void VIA_PROTECTION_UI_MIXIN::setDrillProtection ( std::optional< bool > & aDrill,
IPC4761_DRILL aProtection )
inlineprotected

Definition at line 239 of file via_protection_ui_mixin.h.

References FROM_RULES, NOT_SET, and SET.

Referenced by setViaConfiguration().

◆ setSurfaceProtection()

void VIA_PROTECTION_UI_MIXIN::setSurfaceProtection ( std::optional< bool > & aFront,
std::optional< bool > & aBack,
IPC4761_SURFACE aProtection )
inlineprotected

Definition at line 209 of file via_protection_ui_mixin.h.

References BACK, BOTH, CUSTOM, FROM_RULES, FRONT, and NONE.

Referenced by setViaConfiguration().

◆ setViaConfiguration()

Member Data Documentation

◆ m_IPC4761Names

const std::map<IPC4761_PRESET, wxString> VIA_PROTECTION_UI_MIXIN::m_IPC4761Names
protected
Initial value:
=
{
{ IPC4761_PRESET::FROM_RULES, _( "From rules" ) },
{ IPC4761_PRESET::NONE, _( "None" ) },
{ IPC4761_PRESET::IA, _( "Type I-a (tented top)" ) },
{ IPC4761_PRESET::IB, _( "Type I-b (tented both sides)" ) },
{ IPC4761_PRESET::IA_INVERTED, _( "Type I-a (tented bottom)" ) },
{ IPC4761_PRESET::IIA, _( "Type II-a (covered and tented top)" ) },
{ IPC4761_PRESET::IIB, _( "Type II-b (covered and tented both sides)" ) },
{ IPC4761_PRESET::IIA_INVERTED, _( "Type II-a (covered and tented bottom)" ) },
{ IPC4761_PRESET::IIIA, _( "Type III-a (plugged top)" ) },
{ IPC4761_PRESET::IIIB, _( "Type III-b (plugged both sides)" ) },
{ IPC4761_PRESET::IIIA_INVERTED, _( "Type III-a (plugged bottom)" ) },
{ IPC4761_PRESET::IVA, _( "Type IV-a (plugged and tented top)" ) },
{ IPC4761_PRESET::IVB, _( "Type IV-b (plugged and tented both sides)" ) },
{ IPC4761_PRESET::IVA_INVERTED, _( "Type IV-a (plugged and tented bottom)" ) },
{ IPC4761_PRESET::V, _( "Type V (filled )" ) },
{ IPC4761_PRESET::VIA, _( "Type VI-a (filled and tented top)" ) },
{ IPC4761_PRESET::VIB, _( "Type VI-b (filled and tented both sides)" ) },
{ IPC4761_PRESET::VIA_INVERTED, _( "Type VI-a (filled and tented bottom)" ) },
{ IPC4761_PRESET::VII, _( "Type VII (filled and capped)" ) },
{ IPC4761_PRESET::CUSTOM, _( "Custom" ) },
{ IPC4761_PRESET::END, _( "End" ) }
}
#define _(s)

Definition at line 115 of file via_protection_ui_mixin.h.

Referenced by DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), and DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES().

◆ m_IPC4761Presets

const std::map<IPC4761_PRESET, IPC4761_CONFIGURATION> VIA_PROTECTION_UI_MIXIN::m_IPC4761Presets
protected
Initial value:
=
{
}

Definition at line 86 of file via_protection_ui_mixin.h.

Referenced by getViaConfiguration(), and setViaConfiguration().


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