Class: VORuby::STC::V1_10::STC::GenericCoordFrame

Inherits:
CoordFrameType show all
Includes:
CoordFrame
Defined in:
lib/voruby/stc/1.10/stc.rb

Overview

Element for generic Coordinate Frames

Instance Attribute Summary

Attributes inherited from CoordFrameType

#name

Class Method Summary collapse

Methods included from SerializableToXml

#element

Methods inherited from CoordFrameType

#==, #initialize, #to_xml

Constructor Details

This class inherits a constructor from VORuby::STC::V1_10::STC::CoordFrameType

Class Method Details

.from_xml(xml) ⇒ Object



1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
# File 'lib/voruby/stc/1.10/stc.rb', line 1418

def self.from_xml(xml)
  root = element_from(xml)
  
  options = {}
  
  name = REXML::XPath.first(root, 'x:Name', {'x' => obj_ns.uri})
  options[:name] = name.text if name
  
  GenericCoordFrame.new(options)
end