Class: LookAt
- Inherits:
-
AbstractView
- Object
- KMLObject
- AbstractView
- LookAt
- 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
Instance Method Summary collapse
-
#initialize(point = nil, heading = 0, tilt = 0, range = 0, altitudeMode = :clampToGround) ⇒ LookAt
constructor
A new instance of LookAt.
- #roll ⇒ Object
- #roll= ⇒ Object
Methods inherited from AbstractView
#[], #[]=, #altitude, #altitude=, #latitude, #latitude=, #longitude, #longitude=, #to_kml
Methods inherited from KMLObject
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
#roll ⇒ Object
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 |