Module: Kamelopard::ViewVolume
- Included in:
- PhotoOverlay
- Defined in:
- lib/kamelopard/classes.rb
Overview
Supporting module for the PhotoOverlay class
Instance Attribute Summary collapse
-
#bottomFov ⇒ Object
Returns the value of attribute bottomFov.
-
#leftFov ⇒ Object
Returns the value of attribute leftFov.
-
#near ⇒ Object
Returns the value of attribute near.
-
#rightFov ⇒ Object
Returns the value of attribute rightFov.
-
#topFov ⇒ Object
Returns the value of attribute topFov.
Instance Method Summary collapse
Instance Attribute Details
#bottomFov ⇒ Object
Returns the value of attribute bottomFov.
1895 1896 1897 |
# File 'lib/kamelopard/classes.rb', line 1895 def bottomFov @bottomFov end |
#leftFov ⇒ Object
Returns the value of attribute leftFov.
1895 1896 1897 |
# File 'lib/kamelopard/classes.rb', line 1895 def leftFov @leftFov end |
#near ⇒ Object
Returns the value of attribute near.
1895 1896 1897 |
# File 'lib/kamelopard/classes.rb', line 1895 def near @near end |
#rightFov ⇒ Object
Returns the value of attribute rightFov.
1895 1896 1897 |
# File 'lib/kamelopard/classes.rb', line 1895 def rightFov @rightFov end |
#topFov ⇒ Object
Returns the value of attribute topFov.
1895 1896 1897 |
# File 'lib/kamelopard/classes.rb', line 1895 def topFov @topFov end |
Instance Method Details
#viewVolume_to_kml(elem = nil) ⇒ Object
1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 |
# File 'lib/kamelopard/classes.rb', line 1897 def viewVolume_to_kml(elem = nil) p = XML::Node.new 'ViewVolume' { :near => @near, :leftFov => @leftFov, :rightFov => @rightFov, :topFov => @topFov, :bottomFov => @bottomFov }.each do |k, v| d = XML::Node.new k.to_s v = 0 if v.nil? d << v.to_s p << d end elem << p unless elem.nil? p end |