org.gjt.universe.gui
Class DisplayMap

java.lang.Object
  |
  +--org.gjt.universe.gui.DisplayMap

class DisplayMap
extends java.lang.Object

This class has display routines that used in the 3D map.


Field Summary
private  float boundary
           
private  Coord center
           
private  GalaxyID context
           
private  InternalCoord crosshair
           
(package private) static int DMCblue
           
(package private) static int DMCgreen
           
(package private) static int DMcoord
           
(package private) static int DMCred
           
(package private) static int DMCyellow
           
(package private) static int DMdistance
           
(package private) static int DMname
           
(package private) static int DMnone
           
private  Coord source
           
private  VectorSystemPoint stars
           
private  AffineBase TotalXForm
           
 
Constructor Summary
(package private) DisplayMap(GalaxyID galaxy, Coord cent)
           
(package private) DisplayMap(SystemID SID)
           
 
Method Summary
(package private)  void ApplyXForm(AffineBase AB)
           
 Coord getCenter()
           
 GalaxyID getContext()
           
(package private)  InternalCoord getCrosshairIntCoord()
           
(package private)  VectorFleetPoint getFleets(CivID AID)
           
(package private)  VectorScreenCoord getGrid(CivID AID, float size, int type, boolean height)
          This returns the grid for the map.
(package private)  java.lang.String getLabel(SystemID system, int displayType)
          Returns the labels used on the map.
 Coord getSource()
           
(package private)  VectorScreenCoord getSphere(float size, int part)
          This returns the sphere used in the map.
(package private)  VectorSystemPoint getStars()
          This returns the systems (stars) for the map.
(package private)  VectorStationPoint getStations(CivID AID)
           
(package private)  VectorScreenCoord getWormholeLines(GalaxyID GID)
           
(package private)  VectorSystemPoint getWormholes()
           
(package private)  boolean Inbounds(InternalCoord IC)
           
(package private)  void Rotate(float pitch, float roll)
          Rotate with yaw = 0.
(package private)  void Rotate(float pitch, float roll, float yaw)
           
(package private)  void Scale(float zoom)
           
(package private)  void setBoundary(float size)
           
 void setCenter(Coord in_center)
           
(package private)  void setCrosshairIntCoord(Coord new_coord)
           
 void setSource(Coord in_source)
           
(package private)  void Translate(float x, float y, float z)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DMnone

static final int DMnone
See Also:
Constant Field Values

DMname

static final int DMname
See Also:
Constant Field Values

DMcoord

static final int DMcoord
See Also:
Constant Field Values

DMdistance

static final int DMdistance
See Also:
Constant Field Values

DMCblue

static final int DMCblue
See Also:
Constant Field Values

DMCred

static final int DMCred
See Also:
Constant Field Values

DMCyellow

static final int DMCyellow
See Also:
Constant Field Values

DMCgreen

static final int DMCgreen
See Also:
Constant Field Values

stars

private VectorSystemPoint stars

center

private Coord center

source

private Coord source

boundary

private float boundary

TotalXForm

private AffineBase TotalXForm

crosshair

private InternalCoord crosshair

context

private GalaxyID context
Constructor Detail

DisplayMap

DisplayMap(SystemID SID)

DisplayMap

DisplayMap(GalaxyID galaxy,
           Coord cent)
Method Detail

setCenter

public void setCenter(Coord in_center)

getCenter

public Coord getCenter()

setSource

public void setSource(Coord in_source)

getSource

public Coord getSource()

getContext

public GalaxyID getContext()

Translate

void Translate(float x,
               float y,
               float z)

Scale

void Scale(float zoom)

Rotate

void Rotate(float pitch,
            float roll,
            float yaw)

Rotate

void Rotate(float pitch,
            float roll)
Rotate with yaw = 0.


getLabel

java.lang.String getLabel(SystemID system,
                          int displayType)
Returns the labels used on the map.


getStars

VectorSystemPoint getStars()
This returns the systems (stars) for the map.


getWormholes

VectorSystemPoint getWormholes()

getWormholeLines

VectorScreenCoord getWormholeLines(GalaxyID GID)

getSphere

VectorScreenCoord getSphere(float size,
                            int part)
This returns the sphere used in the map. The sphere is created with 6 parts.


getGrid

VectorScreenCoord getGrid(CivID AID,
                          float size,
                          int type,
                          boolean height)
This returns the grid for the map.


setBoundary

void setBoundary(float size)

ApplyXForm

void ApplyXForm(AffineBase AB)

Inbounds

boolean Inbounds(InternalCoord IC)

getFleets

VectorFleetPoint getFleets(CivID AID)

getStations

VectorStationPoint getStations(CivID AID)

setCrosshairIntCoord

void setCrosshairIntCoord(Coord new_coord)

getCrosshairIntCoord

InternalCoord getCrosshairIntCoord()


Copyright © 2001 Universe Dev Team All Rights Reserved.