Module: Kamelopard::ViewVolume

Included in:
PhotoOverlay
Defined in:
lib/kamelopard/classes.rb

Overview

Supporting module for the PhotoOverlay class

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bottomFovObject

Returns the value of attribute bottomFov.



1858
1859
1860
# File 'lib/kamelopard/classes.rb', line 1858

def bottomFov
  @bottomFov
end

#leftFovObject

Returns the value of attribute leftFov.



1858
1859
1860
# File 'lib/kamelopard/classes.rb', line 1858

def leftFov
  @leftFov
end

#nearObject

Returns the value of attribute near.



1858
1859
1860
# File 'lib/kamelopard/classes.rb', line 1858

def near
  @near
end

#rightFovObject

Returns the value of attribute rightFov.



1858
1859
1860
# File 'lib/kamelopard/classes.rb', line 1858

def rightFov
  @rightFov
end

#topFovObject

Returns the value of attribute topFov.



1858
1859
1860
# File 'lib/kamelopard/classes.rb', line 1858

def topFov
  @topFov
end

Instance Method Details

#viewVolume_to_kml(elem = nil) ⇒ Object



1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
# File 'lib/kamelopard/classes.rb', line 1860

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