Class: VORuby::STC::V1_30::PixelCoordSystemType
- Inherits:
-
CoordSysType
- Object
- STCBaseType
- CoordSysType
- VORuby::STC::V1_30::PixelCoordSystemType
- Defined in:
- lib/voruby/stc/1.30/stc.rb
Overview
The pixel coordinate system definition.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#coord_frames ⇒ Object
Returns the value of attribute coord_frames.
Attributes included from STCReference
#id, #idref, #ucd, #xlink_href, #xlink_type
Class Method Summary collapse
Methods inherited from CoordSysType
#==, coord_sys_from_xml, #initialize, #to_xml
Methods inherited from STCBaseType
#==, #initialize, stc_base_from_xml, #to_xml
Methods included from STCReference
#stc_reference_eq, stc_reference_from_xml, #stc_reference_to_xml
Methods included from SerializableToXml
Constructor Details
This class inherits a constructor from VORuby::STC::V1_30::CoordSysType
Instance Attribute Details
#coord_frames ⇒ Object
Returns the value of attribute coord_frames.
8071 8072 8073 |
# File 'lib/voruby/stc/1.30/stc.rb', line 8071 def coord_frames @coord_frames end |
Class Method Details
.from_xml(xml) ⇒ Object
8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 |
# File 'lib/voruby/stc/1.30/stc.rb', line 8081 def self.from_xml(xml) root = element_from(xml) cfs, = CoordSysType.coord_sys_from_xml(root) coord_frames = xml_to_obj(root, PixelCoordFrame) self.new( coord_frames ? (coord_frames.size == 0 ? nil : PixelCoordFrameList.new(coord_frames)) : nil, || {} ) end |