Class: Lod
- Inherits:
-
Object
- Object
- Lod
- Defined in:
- lib/kamelopard/classes.rb
Overview
Corresponds to the LOD (Level of Detail) object
Instance Attribute Summary collapse
-
#maxfade ⇒ Object
Returns the value of attribute maxfade.
-
#maxpixels ⇒ Object
Returns the value of attribute maxpixels.
-
#minfade ⇒ Object
Returns the value of attribute minfade.
-
#minpixels ⇒ Object
Returns the value of attribute minpixels.
Instance Method Summary collapse
-
#initialize(minpixels, maxpixels, minfade, maxfade) ⇒ Lod
constructor
A new instance of Lod.
- #to_kml(indent = 0) ⇒ Object
Constructor Details
#initialize(minpixels, maxpixels, minfade, maxfade) ⇒ Lod
Returns a new instance of Lod.
1525 1526 1527 1528 1529 1530 |
# File 'lib/kamelopard/classes.rb', line 1525 def initialize(minpixels, maxpixels, minfade, maxfade) @minpixels = minpixels @maxpixels = maxpixels @minfade = minfade @maxfade = maxfade end |
Instance Attribute Details
#maxfade ⇒ Object
Returns the value of attribute maxfade.
1524 1525 1526 |
# File 'lib/kamelopard/classes.rb', line 1524 def maxfade @maxfade end |
#maxpixels ⇒ Object
Returns the value of attribute maxpixels.
1524 1525 1526 |
# File 'lib/kamelopard/classes.rb', line 1524 def maxpixels @maxpixels end |
#minfade ⇒ Object
Returns the value of attribute minfade.
1524 1525 1526 |
# File 'lib/kamelopard/classes.rb', line 1524 def minfade @minfade end |
#minpixels ⇒ Object
Returns the value of attribute minpixels.
1524 1525 1526 |
# File 'lib/kamelopard/classes.rb', line 1524 def minpixels @minpixels end |
Instance Method Details
#to_kml(indent = 0) ⇒ Object
1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 |
# File 'lib/kamelopard/classes.rb', line 1532 def to_kml(indent = 0) <<-lod #{ ' ' * indent }<Lod> #{ ' ' * indent } <minLodPixels>#{ @minpixels }</minLodPixels> #{ ' ' * indent } <maxLodPixels>#{ @maxpixels }</maxLodPixels> #{ ' ' * indent } <minFadeExtent>#{ @minfade }</minFadeExtent> #{ ' ' * indent } <maxFadeExtent>#{ @maxfade }</maxFadeExtent> #{ ' ' * indent }</Lod> lod end |