Class: 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, #heading, #options, #point, #range, #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, range = 0, altitudeMode = :clampToGround) ⇒ LookAt

Returns a new instance of LookAt.



455
456
457
# File 'lib/kamelopard/classes.rb', line 455

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

Instance Method Details

#rollObject



459
460
461
# File 'lib/kamelopard/classes.rb', line 459

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

#roll=Object



463
464
465
# File 'lib/kamelopard/classes.rb', line 463

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