Class: VORuby::STC::V1_30::Vel3VecIntervalType
- Inherits:
-
VelocityIntervalType
- Object
- STCBaseType
- CoordIntervalType
- SpatialIntervalType
- VelocityIntervalType
- VORuby::STC::V1_30::Vel3VecIntervalType
- Defined in:
- lib/voruby/stc/1.30/stc.rb
Overview
3-D coordinate interval type.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#hi_limit ⇒ Object
Returns the value of attribute hi_limit.
-
#lo_limit ⇒ Object
Returns the value of attribute lo_limit.
Attributes inherited from VelocityIntervalType
Attributes inherited from SpatialIntervalType
Attributes inherited from CoordIntervalType
#fill_factor, #frame_id, #hi_include, #lo_include
Attributes included from STCReference
#id, #idref, #ucd, #xlink_href, #xlink_type
Class Method Summary collapse
Instance Method Summary collapse
- #==(i) ⇒ Object
-
#initialize(lo_limit, hi_limit, vel_time_unit, lo_include = true, hi_include = true, options = {}) ⇒ Vel3VecIntervalType
constructor
A new instance of Vel3VecIntervalType.
- #to_xml(name = nil) ⇒ Object
Methods inherited from VelocityIntervalType
Methods inherited from SpatialIntervalType
Methods inherited from CoordIntervalType
coord_interval_from_xml, #hi_include?, #lo_include?
Methods inherited from STCBaseType
Methods included from STCReference
#stc_reference_eq, stc_reference_from_xml, #stc_reference_to_xml
Methods included from SerializableToXml
Constructor Details
#initialize(lo_limit, hi_limit, vel_time_unit, lo_include = true, hi_include = true, options = {}) ⇒ Vel3VecIntervalType
Returns a new instance of Vel3VecIntervalType.
4514 4515 4516 4517 4518 |
# File 'lib/voruby/stc/1.30/stc.rb', line 4514 def initialize(lo_limit, hi_limit, vel_time_unit, lo_include=true, hi_include=true, ={}) self.lo_limit = lo_limit self.hi_limit = hi_limit super(vel_time_unit, lo_include, hi_include, ) end |
Instance Attribute Details
#hi_limit ⇒ Object
Returns the value of attribute hi_limit.
4512 4513 4514 |
# File 'lib/voruby/stc/1.30/stc.rb', line 4512 def hi_limit @hi_limit end |
#lo_limit ⇒ Object
Returns the value of attribute lo_limit.
4512 4513 4514 |
# File 'lib/voruby/stc/1.30/stc.rb', line 4512 def lo_limit @lo_limit end |
Class Method Details
.from_xml(xml) ⇒ Object
4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 |
# File 'lib/voruby/stc/1.30/stc.rb', line 4548 def self.from_xml(xml) root = element_from(xml) lo_limit = REXML::XPath.first(root, 'x:LoLimit3Vec', {'x' => obj_ns.uri}) hi_limit = REXML::XPath.first(root, 'x:HiLimit3Vec', {'x' => obj_ns.uri}) self.new( lo_limit ? Double3Type.from_xml(lo_limit) : nil, hi_limit ? Double3Type.from_xml(hi_limit) : nil, *VelocityIntervalType.velocity_interval_from_xml(root) ) end |
Instance Method Details
#==(i) ⇒ Object
4532 4533 4534 4535 4536 |
# File 'lib/voruby/stc/1.30/stc.rb', line 4532 def ==(i) super(i) and self.lo_limit == i.lo_limit and self.hi_limit == i.hi_limit end |
#to_xml(name = nil) ⇒ Object
4538 4539 4540 4541 4542 4543 4544 4545 4546 |
# File 'lib/voruby/stc/1.30/stc.rb', line 4538 def to_xml(name=nil) el = super(name) el.add_element(self.lo_limit.to_xml('LoLimit3Vec')) if self.lo_limit el.add_element(self.hi_limit.to_xml('HiLimit3Vec')) if self.hi_limit collapse_namespaces(el) el end |