universe.client.gui
Class DisplayMap

java.lang.Object
  |
  +--universe.client.gui.DisplayMap

class DisplayMap
extends java.lang.Object

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

Version:
$Id: DisplayMap.java,v 1.2 2003/04/03 07:10:38 sstarkey Exp $

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  java.util.Vector 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)  java.util.Vector getFleets()
           
(package private)  java.util.Vector getGrid(CivID AID, float size, int type, boolean height)
          This returns the grid for the map.
(package private)  java.lang.String getLabel(SystemID SID, int displayType)
          Returns the labels used on the map.
 Coord getSource()
           
(package private)  java.util.Vector getSphere(float size, int part)
          This returns the sphere used in the map.
(package private)  java.util.Vector getStars()
          This returns the systems (stars) for the map.
(package private)  java.util.Vector getStations()
           
(package private)  java.util.Vector getWormholeLines(GalaxyID GID)
           
(package private)  java.util.Vector 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 java.util.Vector 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 SID,
                          int displayType)
Returns the labels used on the map.


getStars

java.util.Vector getStars()
This returns the systems (stars) for the map.


getWormholes

java.util.Vector getWormholes()

getWormholeLines

java.util.Vector getWormholeLines(GalaxyID GID)

getSphere

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


getGrid

java.util.Vector 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

java.util.Vector getFleets()

getStations

java.util.Vector getStations()

setCrosshairIntCoord

void setCrosshairIntCoord(Coord new_coord)

getCrosshairIntCoord

InternalCoord getCrosshairIntCoord()


Copyright © 2001 Universe Dev Team All Rights Reserved.