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.



1809
1810
1811
1812
# File 'lib/kamelopard/classes.rb', line 1809

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.



1807
1808
1809
# File 'lib/kamelopard/classes.rb', line 1807

def standalone
  @standalone
end