|
jET |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jet.tracks.Track
The track entity.
Field Summary | |
static java.lang.String |
BANK
Bank enviroment. |
static java.lang.String |
BRIDGE
Bridge enviroment. |
static java.lang.String |
CANYON
Canyon enviroment. |
protected int |
damage
Track damage flag. |
protected java.lang.String |
enviroment
The enviroment. |
static java.lang.String |
FLAT
Lowlands enviroment. |
protected double |
friction
Friction. |
protected double |
length
Track length. |
static java.lang.String |
MOUNTAINS
Mountains enviroment. |
protected java.lang.String |
name
The name. |
protected javax.vecmath.Point3d |
node1
1st end point of the track. |
protected javax.vecmath.Point3d |
node2
2nd end point of the track. |
protected int |
quality
Quality of the track. |
protected double |
radius
Radius. |
static double |
ROLL
Maximal track roll in degrees in PKP. |
protected double |
roll1
Roll at 1st point. |
protected double |
roll2
Roll at 2nd point. |
static java.lang.String |
SECOND_TEXTURE_DEFAULT
Default second texture name. |
protected java.lang.String |
secondTexture
Second texture. |
protected double |
tapDistance
Tap distance. |
protected double |
texHeight
Texture height. |
protected double |
texSlope
Texture slope. |
protected java.lang.String |
texture
Texture. |
static java.lang.String |
TEXTURE_DEFAULT
Default texture name. |
protected double |
textureLength
Texture length. |
protected double |
texWidth
Texture width. |
static java.lang.String |
TUNNEL
Tunnel enviroment. |
protected javax.vecmath.Vector3d |
vec1
1st control vector of the track. |
protected javax.vecmath.Vector3d |
vec2
2nd control vector of the track. |
protected static javax.vecmath.Vector3d |
VECTOR_ZERO
Vector zero. |
protected boolean |
visibility
Visibility flag. |
protected double |
width
Track width. |
Constructor Summary | |
Track()
Constructs new empty track. |
|
Track(javax.vecmath.Point3d node1,
javax.vecmath.Point3d node2,
javax.vecmath.Vector3d vec1,
javax.vecmath.Vector3d vec2)
Constructs new track with Beizer's curve nodes. |
Method Summary | |
java.lang.Object |
clone()
Preformes field-to-field copy. |
boolean |
equals(java.lang.Object o)
Equality test. |
int |
getDamage()
Gets damage track status. |
java.lang.String |
getEnviroment()
Gets track enviroment. |
double |
getFriction()
Gets track friction. |
double |
getIncline()
Gets the track incline. |
double |
getLength()
Gets the track length. |
java.lang.String |
getName()
Gets the name for the track. |
javax.vecmath.Point3d |
getPoint1()
Gets the 1st point of the Bezier curve. |
javax.vecmath.Point3d |
getPoint2()
Gets the 2nd point of the Bezier curve. |
int |
getQuality()
Gets quality flags. |
double |
getRadius()
Gets track radius. |
double |
getRoll1()
Gets the roll at the 1st point. |
double |
getRoll2()
Gets the roll at the 2nd point. |
java.lang.String |
getSecondTexture()
Gets second texture name |
double |
getTap()
Gets track tapping. |
java.lang.String |
getTexture()
Gets track texture name. |
double |
getTextureHeight()
Gets texture height. |
double |
getTextureLength()
Gets texture length. |
double |
getTextureSlope()
Gets texture slope. |
double |
getTextureWidth()
Gets texture width. |
javax.vecmath.Vector3d |
getVector1()
Gets the 1st control vector of the Bezier curve. |
javax.vecmath.Vector3d |
getVector2()
Gets the 2nd control vector of the Bezier curve. |
double |
getWidth()
Gets track width. |
boolean |
isStraight()
Returns true if the track is straight. |
boolean |
isVisible()
Returns visibility flag of this track. |
void |
setDamage(int i)
Sets damage status. |
void |
setEnviroment(java.lang.String enviroment)
Sets enviroment. |
void |
setFriction(double d)
Sets track friction. |
void |
setLength(double d)
Sets the track length. |
void |
setName(java.lang.String name)
Sets the name for the track. |
void |
setPoint1(double[] array)
Sets the 1st point of the Bezier curve. |
void |
setPoint1(double x,
double y,
double z)
Sets the 1st point of the Bezier curve. |
void |
setPoint1(javax.vecmath.Point3d p)
Sets the 1st point of the Bezier curve. |
void |
setPoint2(double[] array)
Sets the 2nd point of the Bezier curve. |
void |
setPoint2(double x,
double y,
double z)
Sets the 2nd point of the Bezier curve. |
void |
setPoint2(javax.vecmath.Point3d p)
Sets the 2nd point of the Bezier curve. |
void |
setQuality(int i)
Sets quality flags. |
void |
setRadius(double d)
Sets track radius. |
void |
setRoll1(double roll)
Sets the roll at the 1st point. |
void |
setRoll2(double roll)
Sets the roll at the 2nd point. |
void |
setSecondTexture(java.lang.String name)
Sets second texture name. |
void |
setTap(double d)
Sets track tapping. |
void |
setTexture(java.lang.String name)
Sets track texture. |
void |
setTextureHeight(double d)
Sets texture height. |
void |
setTextureLength(double d)
Sets texture length. |
void |
setTextureSlope(double d)
Sets texture slope. |
void |
setTextureWidth(double d)
Sets texture width. |
void |
setVector1(double[] array)
Sets the 1st control vector of the Bezier curve. |
void |
setVector1(double x,
double y,
double z)
Sets the 1st control vector of the Bezier curve. |
void |
setVector1(javax.vecmath.Vector3d v)
Sets the 1st control vector of the Bezier curve. |
void |
setVector2(double[] array)
Sets the 2nd control vector of the Bezier curve. |
void |
setVector2(double x,
double y,
double z)
Sets the 2nd control vector of the Bezier curve. |
void |
setVector2(javax.vecmath.Vector3d v)
Sets the 2nd control vector of the Bezier curve. |
void |
setVisible(boolean b)
Sets visibility flag. |
void |
setWidth(double d)
Sets track width. |
java.lang.String |
toString()
Gets description. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String FLAT
public static final java.lang.String CANYON
public static final java.lang.String TUNNEL
public static final java.lang.String MOUNTAINS
public static final java.lang.String BANK
public static final java.lang.String BRIDGE
public static final double ROLL
public static final java.lang.String TEXTURE_DEFAULT
public static final java.lang.String SECOND_TEXTURE_DEFAULT
protected static final javax.vecmath.Vector3d VECTOR_ZERO
protected java.lang.String name
protected javax.vecmath.Point3d node1
protected javax.vecmath.Point3d node2
protected javax.vecmath.Vector3d vec1
protected javax.vecmath.Vector3d vec2
protected double length
protected double width
protected double friction
protected double tapDistance
protected int quality
protected int damage
protected java.lang.String enviroment
protected boolean visibility
protected java.lang.String texture
protected double textureLength
protected java.lang.String secondTexture
protected double texHeight
protected double texWidth
protected double texSlope
protected double roll1
protected double roll2
protected double radius
0
for flex and straight tracks.
Constructor Detail |
public Track()
public Track(javax.vecmath.Point3d node1, javax.vecmath.Point3d node2, javax.vecmath.Vector3d vec1, javax.vecmath.Vector3d vec2)
node1
- Start point.node2
- End point.vec1
- The 1st control vector.vec2
- The 2nd control vector.Method Detail |
public double getIncline()
For flex track it will be not true.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to check.
True
, if tracks are equal.public java.lang.Object clone()
x.clone().equals(x)
doesn't return true.
clone
in class java.lang.Object
public void setName(java.lang.String name)
name
- The name for the track.public java.lang.String getName()
public javax.vecmath.Point3d getPoint1()
public void setPoint1(javax.vecmath.Point3d p)
public void setPoint1(double x, double y, double z)
public void setPoint1(double[] array)
public javax.vecmath.Point3d getPoint2()
public void setPoint2(javax.vecmath.Point3d p)
public void setPoint2(double x, double y, double z)
public void setPoint2(double[] array)
public javax.vecmath.Vector3d getVector1()
public void setVector1(javax.vecmath.Vector3d v)
public void setVector1(double x, double y, double z)
public void setVector1(double[] array)
public javax.vecmath.Vector3d getVector2()
public void setVector2(javax.vecmath.Vector3d v)
public void setVector2(double x, double y, double z)
public void setVector2(double[] array)
public double getRoll1()
public void setRoll1(double roll)
public double getRoll2()
public void setRoll2(double roll)
public double getLength()
public void setLength(double d)
public double getWidth()
public void setWidth(double d)
public double getFriction()
public void setFriction(double d)
public double getTap()
public void setTap(double d)
public int getQuality()
public void setQuality(int i)
public int getDamage()
public void setDamage(int i)
public java.lang.String getEnviroment()
public void setEnviroment(java.lang.String enviroment)
public boolean isVisible()
public void setVisible(boolean b)
public double getRadius()
0
, when track is flex or straight.public void setRadius(double d)
public java.lang.String getTexture()
public void setTexture(java.lang.String name)
name
- Name of the texture.public double getTextureLength()
public void setTextureLength(double d)
public java.lang.String getSecondTexture()
public void setSecondTexture(java.lang.String name)
public double getTextureHeight()
public void setTextureHeight(double d)
public double getTextureWidth()
public void setTextureWidth(double d)
public double getTextureSlope()
public void setTextureSlope(double d)
public boolean isStraight()
|
jET |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |