Class: Kamelopard::TourPrimitive

Inherits:
Object
  • Object
show all
Defined in:
lib/kamelopard/classes.rb

Overview

Abstract class corresponding to KML's gx:TourPrimitive object. Tours are made up of descendants of these. The :standalone option affects only initialization; there's no point in doing anything with it after initialization. It determines whether the TourPrimitive object is added to the current tour or not

Direct Known Subclasses

AnimatedUpdate, FlyTo, SoundCue, TourControl, Wait

Instance Attribute Summary collapse

Attributes inherited from Object

#comment, #kml_id, #master_only

Instance Method Summary collapse

Methods inherited from Object

#_alternate_to_kml, #change, #master_only?, parse, #to_kml

Constructor Details

#initialize(options = {}) ⇒ TourPrimitive

Returns a new instance of TourPrimitive.



1645
1646
1647
1648
# File 'lib/kamelopard/classes.rb', line 1645

def initialize(options = {})
    DocumentHolder.instance.current_document.tour << self unless options.has_key?(:standalone)
    super
end

Instance Attribute Details

#standalone ⇒ Object

Returns the value of attribute standalone.



1643
1644
1645
# File 'lib/kamelopard/classes.rb', line 1643

def standalone
  @standalone
end