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.



1519
1520
1521
# File 'lib/kamelopard/classes.rb', line 1519

def bottomFov
  @bottomFov
end

#leftFovObject

Returns the value of attribute leftFov.



1519
1520
1521
# File 'lib/kamelopard/classes.rb', line 1519

def leftFov
  @leftFov
end

#nearObject

Returns the value of attribute near.



1519
1520
1521
# File 'lib/kamelopard/classes.rb', line 1519

def near
  @near
end

#rightFovObject

Returns the value of attribute rightFov.



1519
1520
1521
# File 'lib/kamelopard/classes.rb', line 1519

def rightFov
  @rightFov
end

#topFovObject

Returns the value of attribute topFov.



1519
1520
1521
# File 'lib/kamelopard/classes.rb', line 1519

def topFov
  @topFov
end

Instance Method Details

#viewVolume_to_kml(elem = nil) ⇒ Object



1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
# File 'lib/kamelopard/classes.rb', line 1521

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