Add a RoutingLayerGauge.setType() and export to Python (finally unused).

This commit is contained in:
Jean-Paul Chaput 2021-04-24 12:55:17 +02:00
parent 0640586cbc
commit decc4745d2
2 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,7 @@ namespace CRL {
inline DbU::Unit getTrackPosition ( DbU::Unit start, DbU::Unit stop, DbU::Unit position, unsigned mode ) const;
DbU::Unit getTrackPosition ( DbU::Unit start, long index ) const;
inline void setPWireWidth ( DbU::Unit );
inline void setType ( uint32_t );
// Hurricane Managment.
void toJson ( JsonWriter* ) const;
virtual string _getTypeName () const;
@ -190,6 +191,7 @@ namespace CRL {
inline DbU::Unit RoutingLayerGauge::getTrackPosition ( DbU::Unit start, DbU::Unit stop, DbU::Unit position, unsigned mode ) const
{ return getTrackPosition( start, getTrackIndex(start,stop,position,mode) ); }
inline void RoutingLayerGauge::setPWireWidth ( DbU::Unit pwidth ) { _pwireWidth = pwidth; }
inline void RoutingLayerGauge::setType ( uint32_t type ) { _type = (Constant::LayerGaugeType)type; }
// -------------------------------------------------------------------

View File

@ -275,6 +275,7 @@ extern "C" {
DirectGetLongAttribute (PyRoutingLayerGauge_getHalfViaWidth ,getHalfViaWidth ,PyRoutingLayerGauge,RoutingLayerGauge)
DirectGetLongAttribute (PyRoutingLayerGauge_getObstacleDw ,getObstacleDw ,PyRoutingLayerGauge,RoutingLayerGauge)
DirectSetLongAttribute (PyRoutingLayerGauge_setPWireWidth ,setPWireWidth ,PyRoutingLayerGauge,RoutingLayerGauge)
DirectSetLongAttribute (PyRoutingLayerGauge_setType ,setType ,PyRoutingLayerGauge,RoutingLayerGauge)
// Standart Destroy (Attribute).
@ -321,6 +322,8 @@ extern "C" {
, "Compute the position of track number <depth>." }
, { "setPWireWidth" , (PyCFunction)PyRoutingLayerGauge_setPWireWidth , METH_VARARGS
, "Sets the perpandicular wire width (same layer)." }
, { "setType" , (PyCFunction)PyRoutingLayerGauge_setType , METH_VARARGS
, "Sets the kind of gauge." }
//, { "destroy" , (PyCFunction)PyRoutingLayerGauge_destroy , METH_VARARGS
// , "Destroy the associated hurricane object. The python object remains." }
, {NULL, NULL, 0, NULL} /* sentinel */