Class: Camera
- Inherits:
-
AbstractView
- Object
- KMLObject
- AbstractView
- Camera
- 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
Instance Method Summary collapse
-
#initialize(point = nil, heading = 0, tilt = 0, roll = 0, altitudeMode = :clampToGround) ⇒ Camera
constructor
A new instance of Camera.
- #range ⇒ Object
- #range= ⇒ 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, 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
#range ⇒ Object
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 |