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.



1749
1750
1751
1752
# File 'lib/kamelopard/classes.rb', line 1749

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

Instance Attribute Details

#standaloneObject

Returns the value of attribute standalone.



1747
1748
1749
# File 'lib/kamelopard/classes.rb', line 1747

def standalone
  @standalone
end