Class: Kamelopard::LookAt

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

Overview

Corresponds to KML’s LookAt object

Instance Attribute Summary

Attributes inherited from AbstractView

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

Attributes inherited from Object

#comment, #kml_id

Instance Method Summary collapse

Methods inherited from AbstractView

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

Methods inherited from Object

#change, #to_kml

Constructor Details

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

Returns a new instance of LookAt.



484
485
486
# File 'lib/kamelopard/classes.rb', line 484

def initialize(point = nil, options = {})
    super('LookAt', point, options)
end

Instance Method Details

#rollObject



488
489
490
# File 'lib/kamelopard/classes.rb', line 488

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

#roll=Object



492
493
494
# File 'lib/kamelopard/classes.rb', line 492

def roll=
    # The roll element doesn't exist in LookAt objects
end