Ightaria
Class Terrain

java.lang.Object
  extended by DrawHills.SingleHill
      extended by Ightaria.Terrain
Direct Known Subclasses:
Hill, Scene

public class Terrain
extends SingleHill


Field Summary
protected  boolean addFunctionToTerrainFunction
          This variable speaks for itself.
protected  double hFFx
           
protected  double hFFy
           
protected  double hFp
           
protected  double hOp
           
protected  DVector loc
          Location in HF.
protected  double oDistance
          Spherical Dist.
protected static double oFFMx
          oFFMx, oFFMy - are really flat coodinates as they calculated by tools of tracking flat path during Vessel's travel.
protected static double oFFMy
          oFFMx, oFFMy - are really flat coodinates as they calculated by tools of tracking flat path during Vessel's travel.
protected static double oFFz
          "Horizontal hight" of observer while traveling.
protected  double oFp
           
protected  double oFrontDistance
           
protected  double oTau
          Angular spherical Dist.
(package private) static double PI
           
(package private) static double[][] tA
           
(package private) static double terrrainPeriodX
           
(package private) static double terrrainPeriodY
           
(package private) static int tNG
           
(package private) static double[][] tPh
           
(package private) static double tWX
           
(package private) static double tWY
           
 
Fields inherited from class DrawHills.SingleHill
altitudeCos, altitudeSin, aziRotationShift, BackgroundColor, center_x, center_y, CosRotationAngle, CurrFactor, CurrScreenX, CurrScreenY, debug, displayAxes, firstMeshDrawIx, flagTrianglesVsSquares, frameNumber, funFlippedParabola, funGaussBell, funLowSphere, funN, funPolinomials, funTerrain, funUpperSphere, funY2mX2, g, hillAxisColor, hOOx, hOOy, hOOz, lastMeshDrawIx, lightX, lightY, lightZ, MoonHalfPeriod, MoonHorizontalRadius, MoonXStart, MoonZ, n2X, n2Y, n2Z, nX, nY, nZ, oAltitudeViewAngle, obsX, obsY, obsZ, OwnColor, phase_sig, phase_sub, posX, posY, posZ, radius, Real_current, Real_previous, ReservedDomain, REventX, REventY, RotatedYAuxilairy, RotationModula, safeModule, safeScale, screen_current, screen_upper, screenMesh2X, screenMesh2Z, screenMeshX, screenMeshZ, ScreenXL, ScreenYL, shieldRadius, SinRotationAngle, sp, spOwn, tangentOfVision, Xmax, Xmin, Xsize, Xstep, Ymax, YMaxMin, Ymin, Yrange, Ystep
 
Constructor Summary
Terrain()
          This constructor is probably never used:
Terrain(SPad sp, SPad spOwn, int ScreenXL, int ScreenYL, int center_x, int center_y, int funN, boolean addFunctionToTerrainFunction)
          Main constructor.
 
Method Summary
 int Fun(int funNumb, int X, int Y)
           
static void setObsFlatPosition(double x, double y)
           
protected  int Terrain(double X, double Y)
          Function which describes Terrain of the HomeFold.
 
Methods inherited from class DrawHills.SingleHill
ConstructHill, DisplayMoon, DrawAxisToHill, DrawCoordinateAxis, DrawLegendedLine, DrawLegendedLine, FindMoonPhase, FindScreenX, FindScreenY, InsertSubHill, ms, ObsToSX, PaintAuxSigns, PaintFunction, paintHill, paintHillInternally, PositionMoon, ProjectObsSpaceLineToS, ProjectObsSpaceLineToScr, releaseGraphics, root, RotateArgToFunctDomainBasisX, supplyGraphics, XRotated, YRotated, YRotatedBack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loc

protected DVector loc
Location in HF. Variable loc is not called inside of this class and its children yet, but stores HF-location of the Hill. It is designed to be used in external calls to Hill.


oDistance

protected double oDistance
Spherical Dist. to Obs. during the travel.


oTau

protected double oTau
Angular spherical Dist. to Obs. during the travel.


oFrontDistance

protected double oFrontDistance

hOp

protected double hOp

hFFx

protected double hFFx

hFFy

protected double hFFy

hFp

protected double hFp

oFp

protected double oFp

oFFz

protected static double oFFz
"Horizontal hight" of observer while traveling. Belongs to path. Not much of importance in navigation, but useful in displaying the scene.


addFunctionToTerrainFunction

protected boolean addFunctionToTerrainFunction
This variable speaks for itself. When we draw a Terrain, then this variable is false. When we draw a local hill, then it is true:


oFFMx

protected static double oFFMx
oFFMx, oFFMy - are really flat coodinates as they calculated by tools of tracking flat path during Vessel's travel. Belongs to path, so common to all Hills. .do1 "protected static" may be uncommon use of variables. Is this use legal? Apparently it works.


oFFMy

protected static double oFFMy
oFFMx, oFFMy - are really flat coodinates as they calculated by tools of tracking flat path during Vessel's travel. Belongs to path, so common to all Hills. .do1 "protected static" may be uncommon use of variables. Is this use legal? Apparently it works.


terrrainPeriodX

static double terrrainPeriodX

terrrainPeriodY

static double terrrainPeriodY

PI

static final double PI
See Also:
Constant Field Values

tWX

static double tWX

tWY

static double tWY

tNG

static int tNG

tPh

static double[][] tPh

tA

static double[][] tA
Constructor Detail

Terrain

public Terrain()
This constructor is probably never used:


Terrain

public Terrain(SPad sp,
               SPad spOwn,
               int ScreenXL,
               int ScreenYL,
               int center_x,
               int center_y,
               int funN,
               boolean addFunctionToTerrainFunction)
Main constructor. Will be overused by children.super calls.

Method Detail

setObsFlatPosition

public static void setObsFlatPosition(double x,
                                      double y)

Terrain

protected int Terrain(double X,
                      double Y)
Function which describes Terrain of the HomeFold. This function is a 2-dimensional Fourier series. Only tNG Harmonics are used for X and for Y coodinates. Details are described in class Terrain source code.


Fun

public int Fun(int funNumb,
               int X,
               int Y)
Overrides:
Fun in class SingleHill