public class IlvRasterMappedBuffer3DTile extends Ilv3DTile
Ilv3DTile
based on an IlvRasterTileLoader
. This tile loader
provides a table of elevation values.Constructor and Description |
---|
IlvRasterMappedBuffer3DTile(IlvRasterTileLoader tileLoader,
Ilv3DDoubleVector center,
float tileWidth,
float tileHeight,
IlvManagerView view)
Constructs an
IlvRasterMappedBuffer3DTile from the specified parameters. |
Modifier and Type | Method and Description |
---|---|
void |
drawImageData(com.jogamp.opengl.GL2 gl,
int width1,
int height1)
Method responsible for setting up the OpenGL texture that is used to draw the terrain.
|
double |
getClipHeight()
Returns the height of the clip
|
double |
getClipWidth()
Returns the width of the clip
|
double |
getClipX()
Returns the X coordinate of the clip.
|
double |
getClipY()
Returns the Y coordinate of the clip.
|
int |
getTextureOversampling()
Returns the factor that forces higher resolution texture.
|
boolean |
isUse2DViewAsTexture()
Returns whether the associated 2D view must be used as a texture for the 3D terrain represented by this tile.
|
void |
loadDEM()
Loads and sets up the underlying
IlvTileElevationProvider . |
void |
loadImg(int imageLevel,
IlvThreadedTaskProcessor.ThreadedTask preq)
This method is responsible for generating the texture for the specified image level.
|
void |
setImageClipping(double clipX,
double clipY,
double clipWidth,
double clipHeight)
Sets a clipping on the elevation data, so that only a subpart of it is used.
|
void |
setTextureOversampling(int oversamplingFactor)
Sets the factor that forces higher resolution texture.
|
void |
setUse2DViewAsTexture(boolean useViewAsTexture)
Sets whether the associated 2D view must be used as a texture for the 3D terrain represented by this tile.
|
void |
setUseImageClipping(boolean useClipping)
Activates/deactivates use of tile clipping.
|
drawTile, drawTile, getApparentAreaFactors, getCenter, getGroundHeightAt, getTextureHeight, getTextureWidth, getTileElevationProvider, getTileHeight, getTileWidth, isKeepElevationDataCache, regenerateTexture, setImageSize, setKeepElevationDataCache, setSize, setTextureHeight, setTextureWidth, setTileElevationProvider, setupDEMLevel, setupImgLevel
public IlvRasterMappedBuffer3DTile(IlvRasterTileLoader tileLoader, Ilv3DDoubleVector center, float tileWidth, float tileHeight, IlvManagerView view)
IlvRasterMappedBuffer3DTile
from the specified parameters.tileLoader
- The IlvRasterTileLoader
containing elevation data.center
- The center of the tile in 3D space coordinates.tileWidth
- This tile's width, in 3D space coordinates.tileHeight
- This tile's height, in 3D space coordinates.view
- The IlvManagerView
used to generate the terrain texture.public void loadDEM()
IlvTileElevationProvider
.public void loadImg(int imageLevel, IlvThreadedTaskProcessor.ThreadedTask preq)
drawImageData()
method.public void drawImageData(com.jogamp.opengl.GL2 gl, int width1, int height1)
loadImg()
method.drawImageData
in class Ilv3DTile
gl
- The OpenGL context to set the texture onto.width1
- The width of the texture image.height1
- The height of the texture image.public void setImageClipping(double clipX, double clipY, double clipWidth, double clipHeight)
clipX
- The clip start X coordinate (between 0 and 1.0).clipY
- THe clip start Y coordinate (between 0 and 1.0).clipWidth
- The clip width ((between 0 and (1.0 - clipX)).clipHeight
- The clip height ((between 0 and (1.0 - clipY)).public void setUseImageClipping(boolean useClipping)
useClipping
- true
to use clippingsetImageClipping(double, double, double, double)
public double getClipHeight()
public double getClipWidth()
public double getClipX()
public double getClipY()
public boolean isUse2DViewAsTexture()
false
, the terrain texture is generated from the color model of the elevation data source.true
if the 2D view is rendered as a texture for the 3D terrain.public void setUse2DViewAsTexture(boolean useViewAsTexture)
false
, the terrain texture is generated from the color model of the elevation data source.useViewAsTexture
- true
if the 2D view is rendered as a texture for the 3D terrain.public int getTextureOversampling()
public void setTextureOversampling(int oversamplingFactor)
oversamplingFactor
- The level of oversampling.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.