KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ARC_GEOM_SYNCER Class Reference
Inheritance diagram for ARC_GEOM_SYNCER:
GEOM_SYNCER

Public Types

enum  CTRL_IDX {
  CSA_CENTER_X = 0 , CSA_CENTER_Y , CSA_START_X , CSA_START_Y ,
  CSA_ANGLE , SME_START_X , SME_START_Y , SME_MID_X ,
  SME_MID_Y , SME_END_X , SME_END_Y , NUM_CTRLS
}
 

Public Member Functions

 ARC_GEOM_SYNCER (PCB_SHAPE &aShape, std::vector< BOUND_CONTROL > &aBoundCtrls)
 
bool Validate (wxArrayString &aErrs) const override
 
void updateAll () override
 
void OnCSAChange ()
 
void updateCSA ()
 
void OnSMEChange ()
 
void updateSME ()
 
void BindCtrls (size_t aFrom, size_t aTo, std::function< void()> aCb)
 
void SetShape (PCB_SHAPE &aShape)
 

Protected Member Functions

wxTextCtrl * GetCtrl (size_t aIndex) const
 
int GetIntValue (size_t aIndex) const
 
EDA_ANGLE GetAngleValue (size_t aIndex) const
 
void ChangeValue (size_t aIndex, int aValue)
 
void ChangeAngleValue (size_t aIndex, const EDA_ANGLE &aValue)
 
PCB_SHAPEGetShape ()
 
const PCB_SHAPEGetShape () const
 

Private Attributes

PCB_SHAPEm_shape
 
std::vector< BOUND_CONTROL > & m_boundCtrls
 

Detailed Description

Definition at line 403 of file pcbnew/dialogs/dialog_shape_properties.cpp.

Member Enumeration Documentation

◆ CTRL_IDX

Enumerator
CSA_CENTER_X 
CSA_CENTER_Y 
CSA_START_X 
CSA_START_Y 
CSA_ANGLE 
SME_START_X 
SME_START_Y 
SME_MID_X 
SME_MID_Y 
SME_END_X 
SME_END_Y 
NUM_CTRLS 

Definition at line 406 of file pcbnew/dialogs/dialog_shape_properties.cpp.

Constructor & Destructor Documentation

◆ ARC_GEOM_SYNCER()

ARC_GEOM_SYNCER::ARC_GEOM_SYNCER ( PCB_SHAPE aShape,
std::vector< BOUND_CONTROL > &  aBoundCtrls 
)
inline

Member Function Documentation

◆ BindCtrls()

void GEOM_SYNCER::BindCtrls ( size_t  aFrom,
size_t  aTo,
std::function< void()>  aCb 
)
inlineinherited

◆ ChangeAngleValue()

void GEOM_SYNCER::ChangeAngleValue ( size_t  aIndex,
const EDA_ANGLE aValue 
)
inlineprotectedinherited

◆ ChangeValue()

◆ GetAngleValue()

EDA_ANGLE GEOM_SYNCER::GetAngleValue ( size_t  aIndex) const
inlineprotectedinherited

◆ GetCtrl()

wxTextCtrl * GEOM_SYNCER::GetCtrl ( size_t  aIndex) const
inlineprotectedinherited

◆ GetIntValue()

◆ GetShape() [1/2]

◆ GetShape() [2/2]

const PCB_SHAPE & GEOM_SYNCER::GetShape ( ) const
inlineprotectedinherited

Definition at line 127 of file pcbnew/dialogs/dialog_shape_properties.cpp.

References GEOM_SYNCER::m_shape.

◆ OnCSAChange()

◆ OnSMEChange()

◆ SetShape()

void GEOM_SYNCER::SetShape ( PCB_SHAPE aShape)
inlineinherited

◆ updateAll()

void ARC_GEOM_SYNCER::updateAll ( )
inlineoverridevirtual

Implements GEOM_SYNCER.

Definition at line 483 of file pcbnew/dialogs/dialog_shape_properties.cpp.

References updateCSA(), and updateSME().

◆ updateCSA()

◆ updateSME()

◆ Validate()

bool ARC_GEOM_SYNCER::Validate ( wxArrayString &  aErrs) const
inlineoverridevirtual

Member Data Documentation

◆ m_boundCtrls

◆ m_shape

PCB_SHAPE& GEOM_SYNCER::m_shape
privateinherited

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