Class: Kamelopard::Camera

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

Overview

Corresponds to KML’s Camera object

Instance Attribute Summary

Attributes inherited from AbstractView

#altitudeMode, #className, #heading, #point, #roll, #tilt, #timespan, #timestamp, #viewerOptions

Attributes inherited from Object

#comment, #kml_id, #master_only

Instance Method Summary collapse

Methods inherited from AbstractView

#[], #[]=, #altitude, #altitude=, #latitude, #latitude=, #longitude, #longitude=, #to_kml, #to_queries_txt

Methods inherited from Object

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

Constructor Details

#initialize(point = nil, options = {}) ⇒ Camera

Returns a new instance of Camera.



697
698
699
700
# File 'lib/kamelopard/classes.rb', line 697

def initialize(point = nil, options = {})
    super('Camera', point, options)
    @roll = 0 if @roll.nil?
end

Instance Method Details

#rangeObject



702
703
704
# File 'lib/kamelopard/classes.rb', line 702

def range
    raise "The range element is part of LookAt objects, not Camera objects"
end

#range=(a) ⇒ Object



706
707
708
# File 'lib/kamelopard/classes.rb', line 706

def range=(a)
    # The range element doesn't exist in Camera objects
end