com.threerings.miso.util
Class MisoSceneMetrics

java.lang.Object
  extended by com.threerings.miso.util.MisoSceneMetrics

public class MisoSceneMetrics
extends Object

Contains information on the configuration of a particular isometric view. The member data are public to facilitate convenient referencing by the MisoScenePanel class, the values should not be modified once the metrics are constructed.


Field Summary
 short blockhei
          Dimensions of our scene blocks in tile count.
 short blockwid
          Dimensions of our scene blocks in tile count.
 float fineBX
          The y-intercept of the x-axis line within a tile.
 int finegran
          Number of fine coordinates on each axis within a tile.
 int finehhei
          Fine coordinate dimensions.
 int finehwid
          Fine coordinate dimensions.
 float finelen
          The length between fine coordinates in pixels.
 float fineSlopeX
          The slope of the x- and y-axis lines within a tile.
 float fineSlopeY
          The slope of the x- and y-axis lines within a tile.
 float slopeX
          The slope of the x- and y-axis lines.
 float slopeY
          The slope of the x- and y-axis lines.
 int tilehei
          Tile dimensions and half-dimensions in the view.
 int tilehhei
          Tile dimensions and half-dimensions in the view.
 int tilehwid
          Tile dimensions and half-dimensions in the view.
 float tilelen
          The length of a tile edge in pixels.
 int tilewid
          Tile dimensions and half-dimensions in the view.
 
Constructor Summary
MisoSceneMetrics(int tilewid, int tilehei, int finegran)
          Constructs scene metrics by directly specifying the desired config parameters.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tilewid

public int tilewid
Tile dimensions and half-dimensions in the view.


tilehei

public int tilehei
Tile dimensions and half-dimensions in the view.


tilehwid

public int tilehwid
Tile dimensions and half-dimensions in the view.


tilehhei

public int tilehhei
Tile dimensions and half-dimensions in the view.


finehwid

public int finehwid
Fine coordinate dimensions.


finehhei

public int finehhei
Fine coordinate dimensions.


finegran

public int finegran
Number of fine coordinates on each axis within a tile.


blockwid

public short blockwid
Dimensions of our scene blocks in tile count.


blockhei

public short blockhei
Dimensions of our scene blocks in tile count.


tilelen

public float tilelen
The length of a tile edge in pixels.


slopeX

public float slopeX
The slope of the x- and y-axis lines.


slopeY

public float slopeY
The slope of the x- and y-axis lines.


finelen

public float finelen
The length between fine coordinates in pixels.


fineBX

public float fineBX
The y-intercept of the x-axis line within a tile.


fineSlopeX

public float fineSlopeX
The slope of the x- and y-axis lines within a tile.


fineSlopeY

public float fineSlopeY
The slope of the x- and y-axis lines within a tile.

Constructor Detail

MisoSceneMetrics

public MisoSceneMetrics(int tilewid,
                        int tilehei,
                        int finegran)
Constructs scene metrics by directly specifying the desired config parameters.

Parameters:
tilewid - the width in pixels of the tiles.
tilehei - the height in pixels of the tiles.
finegran - the number of sub-tile divisions to use for fine coordinates.