MCPcopy
hub / github.com/scottbez1/splitflap / Via

Class Via

thirdparty/panelize.py:703–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701
702
703class Via( KicadFatObj ):
704
705 def __init__( self, name ):
706 KicadFatObj.__init__( self, name, (
707 Vector( "at" ),
708 Float( "size" ),
709 Float( "drill" ),
710 List( "layers" ),
711 Int( "net" ),
712 Text( "tstamp" ),
713 Text( "status" ),
714 ) )
715
716 def is_inside( self, area ):
717 return area.is_inside( self.at )
718
719 def copy( self, trans ):
720 obj = Via( self.obj_name )
721 obj.set( "at", trans.vector( self.at ) )
722 obj.set( "size", self.size.clone() )
723 obj.set( "drill", self.drill.clone() )
724 obj.set( "layers", self.layers.clone() )
725 obj.set( "net", trans.net( self.net ) )
726 obj.set( "tstamp", self.tstamp.clone() )
727 obj.set( "status", self.status.clone() )
728 return obj
729
730
731class Segment( KicadFatObj ):

Callers 1

copyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected