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.



2076
2077
2078
# File 'lib/kamelopard/classes.rb', line 2076

def bottomFov
  @bottomFov
end

#leftFovObject

Returns the value of attribute leftFov.



2076
2077
2078
# File 'lib/kamelopard/classes.rb', line 2076

def leftFov
  @leftFov
end

#nearObject

Returns the value of attribute near.



2076
2077
2078
# File 'lib/kamelopard/classes.rb', line 2076

def near
  @near
end

#rightFovObject

Returns the value of attribute rightFov.



2076
2077
2078
# File 'lib/kamelopard/classes.rb', line 2076

def rightFov
  @rightFov
end

#topFovObject

Returns the value of attribute topFov.



2076
2077
2078
# File 'lib/kamelopard/classes.rb', line 2076

def topFov
  @topFov
end

Instance Method Details

#viewVolume_to_kml(elem = nil) ⇒ Object



2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
# File 'lib/kamelopard/classes.rb', line 2078

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