KiCad PCB EDA Suite
|
Public Types | |
enum | CTRL_IDX { CENTER_X = 0 , CENTER_Y , RADIUS , CENTER_PT_X , CENTER_PT_Y , PT_PT_X , PT_PT_Y , NUM_CTRLS } |
Public Member Functions | |
CIRCLE_GEOM_SYNCER (PCB_SHAPE &aShape, std::vector< BOUND_CONTROL > &aBoundCtrls) | |
void | updateAll () override |
bool | Validate (wxArrayString &aErrs) const override |
void | OnCenterRadiusChange () |
void | updateCenterRadius () |
void | OnCenterPointChange () |
void | updateCenterPoint () |
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_SHAPE & | GetShape () |
const PCB_SHAPE & | GetShape () const |
Private Attributes | |
PCB_SHAPE & | m_shape |
std::vector< BOUND_CONTROL > & | m_boundCtrls |
Definition at line 541 of file pcbnew/dialogs/dialog_shape_properties.cpp.
Enumerator | |
---|---|
CENTER_X | |
CENTER_Y | |
RADIUS | |
CENTER_PT_X | |
CENTER_PT_Y | |
PT_PT_X | |
PT_PT_Y | |
NUM_CTRLS |
Definition at line 544 of file pcbnew/dialogs/dialog_shape_properties.cpp.
|
inline |
Definition at line 557 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::BindCtrls(), CENTER_PT_X, CENTER_X, GEOM_SYNCER::GetShape(), NUM_CTRLS, OnCenterPointChange(), OnCenterRadiusChange(), PT_PT_Y, and RADIUS.
|
inlineinherited |
Definition at line 69 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::m_boundCtrls.
Referenced by ARC_GEOM_SYNCER::ARC_GEOM_SYNCER(), BEZIER_GEOM_SYNCER::BEZIER_GEOM_SYNCER(), CIRCLE_GEOM_SYNCER(), LINE_GEOM_SYNCER::LINE_GEOM_SYNCER(), and RECTANGLE_GEOM_SYNCER::RECTANGLE_GEOM_SYNCER().
|
inlineprotectedinherited |
Definition at line 119 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::m_boundCtrls.
Referenced by ARC_GEOM_SYNCER::updateCSA(), and LINE_GEOM_SYNCER::updatePolar().
|
inlineprotectedinherited |
Definition at line 113 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::m_boundCtrls.
Referenced by BEZIER_GEOM_SYNCER::updateBezier(), updateCenterPoint(), updateCenterRadius(), RECTANGLE_GEOM_SYNCER::updateCenterSize(), RECTANGLE_GEOM_SYNCER::updateCorners(), RECTANGLE_GEOM_SYNCER::updateCornerSize(), ARC_GEOM_SYNCER::updateCSA(), LINE_GEOM_SYNCER::updateEnds(), LINE_GEOM_SYNCER::updatePolar(), ARC_GEOM_SYNCER::updateSME(), and LINE_GEOM_SYNCER::updateStartMidpoint().
|
inlineprotectedinherited |
Definition at line 107 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::m_boundCtrls.
Referenced by LINE_GEOM_SYNCER::OnPolarChange(), and ARC_GEOM_SYNCER::Validate().
|
inlineprotectedinherited |
Definition at line 95 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::m_boundCtrls.
|
inlineprotectedinherited |
Definition at line 101 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::m_boundCtrls.
Referenced by BEZIER_GEOM_SYNCER::OnBezierChange(), OnCenterPointChange(), OnCenterRadiusChange(), RECTANGLE_GEOM_SYNCER::OnCenterSizeChange(), RECTANGLE_GEOM_SYNCER::OnCornersChange(), RECTANGLE_GEOM_SYNCER::OnCornerSizeChange(), ARC_GEOM_SYNCER::OnCSAChange(), LINE_GEOM_SYNCER::OnEndsChange(), LINE_GEOM_SYNCER::OnPolarChange(), ARC_GEOM_SYNCER::OnSMEChange(), LINE_GEOM_SYNCER::OnStartMidpointChange(), RECTANGLE_GEOM_SYNCER::Validate(), ARC_GEOM_SYNCER::Validate(), and Validate().
|
inlineprotectedinherited |
Definition at line 125 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::m_shape.
Referenced by ARC_GEOM_SYNCER::ARC_GEOM_SYNCER(), BEZIER_GEOM_SYNCER::BEZIER_GEOM_SYNCER(), CIRCLE_GEOM_SYNCER(), LINE_GEOM_SYNCER::LINE_GEOM_SYNCER(), BEZIER_GEOM_SYNCER::OnBezierChange(), OnCenterPointChange(), OnCenterRadiusChange(), RECTANGLE_GEOM_SYNCER::OnCenterSizeChange(), RECTANGLE_GEOM_SYNCER::OnCornersChange(), RECTANGLE_GEOM_SYNCER::OnCornerSizeChange(), ARC_GEOM_SYNCER::OnCSAChange(), LINE_GEOM_SYNCER::OnEndsChange(), LINE_GEOM_SYNCER::OnPolarChange(), ARC_GEOM_SYNCER::OnSMEChange(), LINE_GEOM_SYNCER::OnStartMidpointChange(), RECTANGLE_GEOM_SYNCER::RECTANGLE_GEOM_SYNCER(), BEZIER_GEOM_SYNCER::updateBezier(), updateCenterPoint(), updateCenterRadius(), RECTANGLE_GEOM_SYNCER::updateCenterSize(), RECTANGLE_GEOM_SYNCER::updateCorners(), RECTANGLE_GEOM_SYNCER::updateCornerSize(), ARC_GEOM_SYNCER::updateCSA(), LINE_GEOM_SYNCER::updateEnds(), LINE_GEOM_SYNCER::updatePolar(), ARC_GEOM_SYNCER::updateSME(), and LINE_GEOM_SYNCER::updateStartMidpoint().
|
inlineprotectedinherited |
Definition at line 127 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::m_shape.
|
inline |
Definition at line 613 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References CENTER_PT_X, CENTER_PT_Y, GEOM_SYNCER::GetIntValue(), GEOM_SYNCER::GetShape(), PT_PT_X, PT_PT_Y, EDA_SHAPE::SetCenter(), EDA_SHAPE::SetEnd(), and updateCenterRadius().
Referenced by CIRCLE_GEOM_SYNCER().
|
inline |
Definition at line 593 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References CENTER_X, CENTER_Y, GEOM_SYNCER::GetIntValue(), GEOM_SYNCER::GetShape(), RADIUS, EDA_SHAPE::SetCenter(), EDA_SHAPE::SetRadius(), and updateCenterPoint().
Referenced by CIRCLE_GEOM_SYNCER().
|
inlineinherited |
Definition at line 84 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References GEOM_SYNCER::m_shape, and GEOM_SYNCER::updateAll().
|
inlineoverridevirtual |
Implements GEOM_SYNCER.
Definition at line 576 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References updateCenterPoint(), and updateCenterRadius().
|
inline |
Definition at line 624 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References CENTER_PT_X, CENTER_PT_Y, GEOM_SYNCER::ChangeValue(), PCB_SHAPE::GetCenter(), EDA_SHAPE::GetEnd(), GEOM_SYNCER::GetShape(), PT_PT_X, PT_PT_Y, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by OnCenterRadiusChange(), and updateAll().
|
inline |
Definition at line 604 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References CENTER_X, CENTER_Y, GEOM_SYNCER::ChangeValue(), PCB_SHAPE::GetCenter(), GEOM_SYNCER::GetShape(), RADIUS, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by OnCenterPointChange(), and updateAll().
|
inlineoverridevirtual |
Reimplemented from GEOM_SYNCER.
Definition at line 582 of file pcbnew/dialogs/dialog_shape_properties.cpp.
References _, GEOM_SYNCER::GetIntValue(), and RADIUS.
|
privateinherited |
Definition at line 131 of file pcbnew/dialogs/dialog_shape_properties.cpp.
Referenced by GEOM_SYNCER::BindCtrls(), GEOM_SYNCER::ChangeAngleValue(), GEOM_SYNCER::ChangeValue(), GEOM_SYNCER::GetAngleValue(), GEOM_SYNCER::GetCtrl(), and GEOM_SYNCER::GetIntValue().
|
privateinherited |
Definition at line 130 of file pcbnew/dialogs/dialog_shape_properties.cpp.
Referenced by GEOM_SYNCER::GetShape(), and GEOM_SYNCER::SetShape().