Class: Kamelopard::PhotoOverlay
- Includes:
- ImagePyramid, ViewVolume
- Defined in:
- lib/kamelopard/classes.rb
Overview
Corresponds to KML’s PhotoOverlay class
Instance Attribute Summary collapse
-
#point ⇒ Object
Returns the value of attribute point.
-
#rotation ⇒ Object
Returns the value of attribute rotation.
-
#shape ⇒ Object
Returns the value of attribute shape.
Attributes included from ImagePyramid
#gridOrigin, #maxHeight, #maxWidth, #tileSize
Attributes included from ViewVolume
#bottomFov, #leftFov, #near, #rightFov, #topFov
Attributes inherited from Overlay
Attributes included from Icon
#h, #href, #httpQuery, #refreshInterval, #refreshMode, #viewBoundScale, #viewFormat, #viewRefreshMode, #viewRefreshTime, #w, #x, #y
Attributes inherited from Feature
#abstractView, #addressDetails, #atom_author, #atom_link, #description, #extendedData, #metadata, #name, #open, #phoneNumber, #region, #snippet, #styleSelector, #styleUrl, #styles, #timeprimitive, #visibility
Attributes included from Snippet
Attributes inherited from Object
#comment, #kml_id, #master_only
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PhotoOverlay
constructor
A new instance of PhotoOverlay.
- #to_kml(elem = nil) ⇒ Object
Methods included from ImagePyramid
Methods included from ViewVolume
Methods included from Icon
Methods inherited from Feature
add_author, #extended_data_to_kml, #hide, #show, #styles_to_kml, #timespan, #timespan=, #timestamp, #timestamp=
Methods included from Snippet
Methods inherited from Object
#_alternate_to_kml, #change, #master_only?
Constructor Details
#initialize(options = {}) ⇒ PhotoOverlay
Returns a new instance of PhotoOverlay.
1946 1947 1948 |
# File 'lib/kamelopard/classes.rb', line 1946 def initialize( = {}) super end |
Instance Attribute Details
#point ⇒ Object
Returns the value of attribute point.
1941 1942 1943 |
# File 'lib/kamelopard/classes.rb', line 1941 def point @point end |
#rotation ⇒ Object
Returns the value of attribute rotation.
1941 1942 1943 |
# File 'lib/kamelopard/classes.rb', line 1941 def rotation @rotation end |
#shape ⇒ Object
Returns the value of attribute shape.
1941 1942 1943 |
# File 'lib/kamelopard/classes.rb', line 1941 def shape @shape end |
Instance Method Details
#to_kml(elem = nil) ⇒ Object
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 |
# File 'lib/kamelopard/classes.rb', line 1958 def to_kml(elem = nil) p = XML::Node.new 'PhotoOverlay' super p viewVolume_to_kml p imagePyramid_to_kml p p << @point.to_kml(nil, true) { :rotation => @rotation, :shape => @shape }.each do |k, v| d = XML::Node.new k.to_s d << v.to_s p << d end elem << p unless elem.nil? p end |