Class: Gdsii::Box
- Inherits:
-
Element
- Object
- Element
- Gdsii::Box
- Includes:
- Access::ELFlags, Access::Layer, Access::Plex, Access::XY
- Defined in:
- lib/gdsii/box.rb
Overview
Represents a GDSII box element. Most methods are from Element or from the various included Access module methods.
Instance Method Summary collapse
-
#boxtype ⇒ Object
Get the boxtype number (returns Fixnum).
-
#boxtype=(val) ⇒ Object
Set the boxtype number.
-
#boxtype_record ⇒ Object
Get the boxtype record (returns Record).
-
#initialize(layer = nil, boxtype = nil, xy = nil) {|_self| ... } ⇒ Box
constructor
Create a box record grouping given a layer, boxtype, and xy coordinates.
Methods included from Access::Plex
Methods included from Access::ELFlags
#elflags, #elflags=, #elflags_record
Methods included from Access::XY
Methods included from Access::Layer
#layer, #layer=, #layer_record
Constructor Details
#initialize(layer = nil, boxtype = nil, xy = nil) {|_self| ... } ⇒ Box
40 41 42 43 44 45 46 47 |
# File 'lib/gdsii/box.rb', line 40 def initialize(layer=nil, boxtype=nil, xy=nil) super() @records[GRT_BOX] = Record.new(GRT_BOX) self.layer = layer unless layer.nil? self.boxtype = boxtype unless boxtype.nil? self.xy = xy unless xy.nil? yield self if block_given? end |
Instance Method Details
#boxtype ⇒ Object
Get the boxtype number (returns Fixnum).
57 |
# File 'lib/gdsii/box.rb', line 57 def boxtype() @records.get_data(GRT_BOXTYPE); end |
#boxtype=(val) ⇒ Object
Set the boxtype number.
62 |
# File 'lib/gdsii/box.rb', line 62 def boxtype=(val) @records.set(GRT_BOXTYPE, val); end |
#boxtype_record ⇒ Object
Get the boxtype record (returns Record).
52 |
# File 'lib/gdsii/box.rb', line 52 def boxtype_record() @records.get(GRT_BOXTYPE); end |