public class TTGraphicsState extends Object implements Cloneable, Serializable
| Modifier and Type | Field and Description |
|---|---|
boolean |
autoFlip |
int |
controlValueTableCutIn |
int |
deltaBase |
int |
deltaShift |
static int |
dg |
static int |
dtg |
int |
dualProjectionVector |
int |
freedomVector |
static int |
g |
double |
gridPeriod |
static int |
hg
Preset round states -
|
int |
instructControl |
int |
loop |
int |
minimumDistance |
static int |
off |
int |
projectionVector |
int |
roundState |
int |
rp0 |
int |
rp1 |
int |
rp2 |
int |
singleWidthCutIn |
int |
singleWidthValue |
static int |
utg |
static int |
x_axis
Preset vectors -
|
static int |
y_axis |
int |
zp0 |
int |
zp1 |
int |
zp2 |
| Constructor and Description |
|---|
TTGraphicsState() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Create a copy of this object.
|
int[] |
getFVMoveforPVDistance(int distance)
Takes an F26Dot6 distance along the projection vector and calculates the shift along the freedom vector IN ACTUAL
SPACE required.
|
String |
getRoundStateAsString() |
void |
resetForGlyph()
Resets various variables for each glyph.
|
double |
round(double n)
Rounds a double according to the round state variable.
|
int |
round(int f26dot6)
Rounds a F26Dot6 number according to the round state variable.
|
String |
toString()
Returns a string containing details of the graphics state.
|
public static final int x_axis
Vectors are stored as two F2Dot14 numbers stored in an int, with the x component taking up the high 16 bits and the y component taking up the bottom 16. The hypotenuse must be 1 in length. (0x4000 in F2Dot14)
public static final int y_axis
public static final int hg
The spec defines a way of interpreting an item from the stack to form a round state consisting of period, phase and threshold for use in the SROUND instruction. This format is used instead of storing each aspect of the round state individually.
public static final int g
public static final int dg
public static final int dtg
public static final int utg
public static final int off
public boolean autoFlip
public int controlValueTableCutIn
public int deltaBase
public int deltaShift
public int freedomVector
public int projectionVector
public int dualProjectionVector
public int instructControl
public int loop
public int minimumDistance
public int roundState
public double gridPeriod
public int rp0
public int rp1
public int rp2
public int singleWidthCutIn
public int singleWidthValue
public int zp0
public int zp1
public int zp2
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic double round(double n)
n - Number to roundpublic int round(int f26dot6)
f26dot6 - Number to roundpublic int[] getFVMoveforPVDistance(int distance)
distance - Move required along PVpublic void resetForGlyph()
public String getRoundStateAsString()
Copyright © 2017. All rights reserved.