Class: VORuby::STC::V1_10::STC::CoordIntervalType
- Inherits:
-
Object
- Object
- VORuby::STC::V1_10::STC::CoordIntervalType
show all
- Includes:
- SerializableToXml
- Defined in:
- lib/voruby/stc/1.10/stc.rb
Overview
Abstact coordinate interval type
Instance Attribute Summary collapse
Instance Method Summary
collapse
#element
Constructor Details
Returns a new instance of CoordIntervalType.
1707
1708
1709
|
# File 'lib/voruby/stc/1.10/stc.rb', line 1707
def initialize(options={})
options.each { |key, value| send("#{key}=", value) }
end
|
Instance Attribute Details
#hi_include ⇒ Object
1715
1716
1717
|
# File 'lib/voruby/stc/1.10/stc.rb', line 1715
def hi_include
@hi_include == nil ? true : @hi_include
end
|
#lo_include ⇒ Object
1711
1712
1713
|
# File 'lib/voruby/stc/1.10/stc.rb', line 1711
def lo_include
@lo_include == nil ? true : @lo_include
end
|
Instance Method Details
#==(i) ⇒ Object
1728
1729
1730
1731
1732
|
# File 'lib/voruby/stc/1.10/stc.rb', line 1728
def ==(i)
self.lo_include == i.lo_include and
self.hi_include == i.hi_include and
self.fill_factor == i.fill_factor
end
|
#fill_factor ⇒ Object
1724
1725
1726
|
# File 'lib/voruby/stc/1.10/stc.rb', line 1724
def fill_factor
@fill_factor || 1.0
end
|
#fill_factor=(f) ⇒ Object
1719
1720
1721
1722
|
# File 'lib/voruby/stc/1.10/stc.rb', line 1719
def fill_factor=(f)
f = Float(f) if f and !f.is_a?(Float)
@fill_factor = f
end
|
#to_xml(name = nil) ⇒ Object
1734
1735
1736
1737
1738
1739
1740
1741
1742
|
# File 'lib/voruby/stc/1.10/stc.rb', line 1734
def to_xml(name=nil)
el = element(name)
el.attributes["#{obj_ns.prefix}:lo_include"] = self.lo_include.to_s
el.attributes["#{obj_ns.prefix}:hi_include"] = self.hi_include.to_s
el.attributes["#{obj_ns.prefix}:fill_factor"] = self.fill_factor.to_s
el
end
|