public class DTM extends AbstractDTMLayer
Modifier and Type | Field and Description |
---|---|
protected Color4f[] |
color4fShade |
static double |
CONSTANT_OFFSET |
int |
echantillonage |
protected double |
noDataValue |
protected int |
nX |
protected int |
nY |
protected int |
sampling |
protected double |
stepX |
protected double |
stepY |
protected TriangleStripArray |
strip |
protected double |
xIni |
protected double |
yIni |
protected double |
zMax |
protected double |
zMin |
bgLayer, layerName, selectable, visible
colorShade, emprise, exageration, imageEnvelope, imagePath, isFilled, path
Modifier | Constructor and Description |
---|---|
protected |
DTM() |
|
DTM(InputStream is,
String layerName,
boolean fill,
int exager,
Color[] colorGradation)
Permet de créer un MNT en utilisant un InputStream
|
|
DTM(InputStream is,
String layerName,
boolean fill,
int exager,
String imageFileName,
IEnvelope imageEnvelope)
Permet de créer un MNT en utilisant un InputStream
|
|
DTM(String file,
String layerName,
boolean fill,
int exager,
Color[] colorGradation)
Permet de créer un MNT en appliquant un dégradé de couleur.
|
|
DTM(String file,
String layerName,
boolean fill,
int exager,
String imageFileName,
IEnvelope imageEnvelope)
Ajoute à la carte un MNT avec orthophoto.
|
Modifier and Type | Method and Description |
---|---|
Coordinate |
castCoordinate(double x,
double y)
Cette fonction permet de projeter un point sur un MNT en lui ajoutant un
altitude offsetting
|
Box3D |
get3DEnvelope()
Fournit l'emprise 3D de la couche (Pavé englobant parallèle aux axes)
|
double |
getAverageAltitude()
Method to get average value Input : none Output : double
|
Color4f |
getColor4f(double z)
Permet de faire une petite classification sur les altitudes des points Il
faut modifier le code pour influer sur cette classification, pour l'instant
Cette classification utilise les véritables altitudes et non les altitudes
exaggarees On utilise une classification linéaire en fonction du tableau de
dégradé utilisé
|
GM_Object |
getGeometryAt(double x,
double y)
Permet de renvoyer la géométrie du modèle se trouvant aux coordonnées x,y
|
DirectPosition |
getHighestPoint()
Method to get highest position Input : none Output : DirectPosition
|
DirectPosition |
getLowestPoint()
Method to get lowest position Input : none Output : DirectPosition
|
int |
getNX() |
int |
getNY() |
IDirectPosition |
getPMaxImage() |
IDirectPosition |
getPMinImage() |
double |
getRatioUnder(double threshold)
Method to get surface ratio under threshold altitude Input : none Output :
double
|
TriangleStripArray |
getRepresentation() |
Component |
getRepresentationComponent() |
double |
getStdAltitude()
Method to get standard deviation value Input : none Output : double
|
double |
getStepX() |
double |
getStepY() |
DirectPositionList |
getTriangle(int indexX,
int indexY,
boolean inferior)
Renvoie le triangle qui se trouve dans la maille indexX, indexY et dans le
bas de la maille si inferior est true et dans le haut de celle-ci sinon
Renvoie null si les indices ne correspondent pas à un triangle existant
|
double |
getXIni() |
double |
getYIni() |
MultiLineString |
processLinearGrid(double xmin,
double ymin,
double xmax,
double ymax)
Cette fonction renvoie les lignes comprises dans le rectangles ayant dpMin
et dpMax comme points extrémités
|
MultiPolygon |
processSurfacicGrid(double xmin,
double xmax,
double ymin,
double ymax)
Cette fonction permet d'extraire en géométrie géoxygene les triangles du
MNT compris dans le rectangle formé par dpMin et dpMax en 2D
|
void |
refresh()
Met à jour la représentation de la carte dans la vue
|
void |
refresh(String file,
String layerName,
boolean fill,
int exager,
Color[] colorGradation)
Rafraichit la représentation d'un MNT en appliquer un dégradé
|
void |
refresh(String file,
String layerName,
boolean fill,
int exager,
String imageFileName,
IEnvelope imageEnvelope)
Permet de rafraichir un MNT en appliquant les paramètres nécessaires pour
l'utilisation d'un MNT
|
getBranchGroup, getLayerName, isSelectable, isVisible, setLayerName, setSelectable, setVisible
cast, cast, castCoordinate, castCoordinate, getColorShade, getExageration, getImageEnvelope, getImagePath, getPath, isFilled, mapCurve, mapCurve, mapFeatureCollection, mapGeom, mapGeom, mapShapeFile, mapSurface, mapSurface
public int echantillonage
public static double CONSTANT_OFFSET
protected double xIni
protected double yIni
protected double zMax
protected double zMin
protected double stepX
protected double stepY
protected int nX
protected int nY
protected TriangleStripArray strip
protected double noDataValue
protected int sampling
protected Color4f[] color4fShade
protected DTM()
public DTM(String file, String layerName, boolean fill, int exager, String imageFileName, IEnvelope imageEnvelope)
file
- Nom du fichier du MNT, il doit être au formatlayerName
- Nom de couche du MNTfill
- Indique si l'on fait une représentation maille ou une
représentation continueexager
- L'exaggération du MNTimageFileName
- Nom du fichier de l'image à plaquerimageEnvelope
- coordonnées min et max de l'imagepublic DTM(InputStream is, String layerName, boolean fill, int exager, String imageFileName, IEnvelope imageEnvelope)
is
- layerName
- fill
- exager
- imageFileName
- imageEnvelope
- public DTM(String file, String layerName, boolean fill, int exager, Color[] colorGradation)
file
- Fichier MNT au format .asclayerName
- Nom de la couchefill
- Si l'on veut une représentation sous forme remplie ou sous
forme de mailleexager
- exaggeration à appliquercolorGradation
- dégradé appliqué sur le MNT. Il s'agit d'un Color[].
Les triangles seront classés en fonction du nombre de couleur dans
le tableau de couleur. La classe Degrade propose une série de
tableau de couleurs.public DTM(InputStream is, String layerName, boolean fill, int exager, Color[] colorGradation)
is
- layerName
- fill
- exager
- colorGradation
- public void refresh(String file, String layerName, boolean fill, int exager, String imageFileName, IEnvelope imageEnvelope)
file
- layerName
- fill
- exager
- imageFileName
- imageEnvelope
- public void refresh(String file, String layerName, boolean fill, int exager, Color[] colorGradation)
file
- layerName
- fill
- exager
- colorGradation
- public void refresh()
public Color4f getColor4f(double z)
z
- l'altitude dont on veut obtenir la couleurpublic IDirectPosition getPMinImage()
public IDirectPosition getPMaxImage()
public MultiPolygon processSurfacicGrid(double xmin, double xmax, double ymin, double ymax)
processSurfacicGrid
in class AbstractDTM
dpMin
- point inférieur gauche du rectangledpMax
- point supérieur droit du rectanglepublic MultiLineString processLinearGrid(double xmin, double ymin, double xmax, double ymax)
processLinearGrid
in class AbstractDTM
dpMin
- point inférieur gauchedpMax
- point supérieur droitpublic DirectPositionList getTriangle(int indexX, int indexY, boolean inferior)
indexX
- l'indice de la maille en XindexY
- l'indice de la maille en Yinferior
- la position du triangle par rapport à la maillepublic Coordinate castCoordinate(double x, double y)
castCoordinate
in class AbstractDTM
x
- ,y le point à projeteroffsetting
- l'altitude que l'on rajoute au point finalpublic Box3D get3DEnvelope()
Layer
public TriangleStripArray getRepresentation()
public int getNX()
public int getNY()
public double getXIni()
public double getYIni()
public double getStepX()
public double getStepY()
public Component getRepresentationComponent()
getRepresentationComponent
in interface Layer
getRepresentationComponent
in class AbstractDTMLayer
public GM_Object getGeometryAt(double x, double y)
AbstractDTM
getGeometryAt
in class AbstractDTM
public DirectPosition getLowestPoint()
public DirectPosition getHighestPoint()
public double getAverageAltitude()
public double getStdAltitude()
public double getRatioUnder(double threshold)
Copyright © 2016 Laboratoire COGIT, IGN. All rights reserved.