Class: Kamelopard::TourControl
- Inherits:
-
TourPrimitive
- Object
- Object
- TourPrimitive
- Kamelopard::TourControl
- Defined in:
- lib/kamelopard/classes.rb
Overview
Corresponds to a KML gx:TourControl object
Instance Attribute Summary
Attributes inherited from TourPrimitive
Attributes inherited from Object
#comment, #kml_id, #master_only
Instance Method Summary collapse
Methods inherited from TourPrimitive
Methods inherited from Object
#_alternate_to_kml, #change, #initialize, #master_only?
Constructor Details
This class inherits a constructor from Kamelopard::TourPrimitive
Instance Method Details
#to_kml(elem = nil) ⇒ Object
1756 1757 1758 1759 1760 1761 1762 1763 1764 |
# File 'lib/kamelopard/classes.rb', line 1756 def to_kml(elem = nil) k = XML::Node.new 'gx:TourControl' super(k) q = XML::Node.new 'gx:playMode' q << 'pause' k << q elem << k unless elem.nil? k end |