Class: VORuby::STC::V1_10::STC::PixelCoordFrame

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

Overview

Element for pixel 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



1403
1404
1405
1406
1407
1408
1409
1410
1411
# File 'lib/voruby/stc/1.10/stc.rb', line 1403

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
  
  PixelCoordFrame.new(options)
end