Class: ViewVolume
- Inherits:
-
Object
- Object
- ViewVolume
- Defined in:
- lib/kamelopard/classes.rb
Overview
Supporting object 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
-
#initialize(near, leftFov = -45,, rightFov = 45, bottomFov = -45,, topFov = 45) ⇒ ViewVolume
constructor
A new instance of ViewVolume.
- #to_kml(indent = 0) ⇒ Object
Constructor Details
#initialize(near, leftFov = -45,, rightFov = 45, bottomFov = -45,, topFov = 45) ⇒ ViewVolume
Returns a new instance of ViewVolume.
1340 1341 1342 1343 1344 1345 1346 |
# File 'lib/kamelopard/classes.rb', line 1340 def initialize(near, leftFov = -45, rightFov = 45, bottomFov = -45, topFov = 45) @leftFov = leftFov @rightFov = rightFov @bottomFov = bottomFov @topFov = topFov @near = near end |
Instance Attribute Details
#bottomFov ⇒ Object
Returns the value of attribute bottomFov.
1339 1340 1341 |
# File 'lib/kamelopard/classes.rb', line 1339 def bottomFov @bottomFov end |
#leftFov ⇒ Object
Returns the value of attribute leftFov.
1339 1340 1341 |
# File 'lib/kamelopard/classes.rb', line 1339 def leftFov @leftFov end |
#near ⇒ Object
Returns the value of attribute near.
1339 1340 1341 |
# File 'lib/kamelopard/classes.rb', line 1339 def near @near end |
#rightFov ⇒ Object
Returns the value of attribute rightFov.
1339 1340 1341 |
# File 'lib/kamelopard/classes.rb', line 1339 def rightFov @rightFov end |
#topFov ⇒ Object
Returns the value of attribute topFov.
1339 1340 1341 |
# File 'lib/kamelopard/classes.rb', line 1339 def topFov @topFov end |
Instance Method Details
#to_kml(indent = 0) ⇒ Object
1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 |
# File 'lib/kamelopard/classes.rb', line 1348 def to_kml(indent = 0) <<-viewvolume #{ ' ' * indent }<ViewVolume> #{ ' ' * indent } <near>#{@near}</near> #{ ' ' * indent } <leftFov>#{@leftFov}</leftFov> #{ ' ' * indent } <rightFov>#{@rightFov}</rightFov> #{ ' ' * indent } <bottomFov>#{@bottomFov}</bottomFov> #{ ' ' * indent } <topFov>#{@topFov}</topFov> #{ ' ' * indent }</ViewVolume> viewvolume end |