Class: 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, #heading, #options, #point, #roll, #tilt, #timespan, #timestamp

Attributes inherited from KMLObject

#comment, #id

Instance Method Summary collapse

Methods inherited from AbstractView

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

Methods inherited from KMLObject

#to_kml

Constructor Details

#initialize(point = nil, heading = 0, tilt = 0, roll = 0, altitudeMode = :clampToGround) ⇒ Camera

Returns a new instance of Camera.



440
441
442
# File 'lib/kamelopard/classes.rb', line 440

def initialize(point = nil, heading = 0, tilt = 0, roll = 0, altitudeMode = :clampToGround)
    super('Camera', point, heading, tilt, roll, nil, altitudeMode)
end

Instance Method Details

#rangeObject



444
445
446
# File 'lib/kamelopard/classes.rb', line 444

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

#range=Object



448
449
450
# File 'lib/kamelopard/classes.rb', line 448

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