|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.vecmath.Tuple3d
javax.vecmath.Point3d
plugins.big.bigsnakeutils.icy.snake3D.Snake3DNode
public class Snake3DNode
This class is used to store the snake-defining parameters. It extends the
capabilities of the class Point3d
by additional state variables.
Field Summary | |
---|---|
static java.lang.String |
ID_FROZEN
|
static java.lang.String |
ID_HIDDEN
|
static java.lang.String |
ID_X
|
static java.lang.String |
ID_Y
|
static java.lang.String |
ID_Z
|
Fields inherited from class javax.vecmath.Tuple3d |
---|
x, y, z |
Constructor Summary | |
---|---|
Snake3DNode(double x,
double y,
double z)
This constructor builds a point that is initially neither frozen nor hidden. |
|
Snake3DNode(double x,
double y,
double z,
boolean frozen,
boolean hidden)
This constructor builds a point with the given initial values. |
Method Summary | |
---|---|
int |
compareTo(Snake3DNode node)
Comparator that organizes the points by their first component. |
void |
freeze()
Sets the frozen state of the node to |
void |
hide()
Sets the hidden state of the node to |
boolean |
isFrozen()
Returns the frozen state of the node. |
boolean |
isHidden()
Returns the hidden state of the node. |
void |
loadFromXML(org.w3c.dom.Node node)
|
void |
saveToXML(org.w3c.dom.Element node)
|
java.lang.String |
toString()
This method returns text-based information about this object. |
void |
unfreeze()
Sets the frozen state of the node to |
void |
unhide()
Sets the hidden state of the node to |
Methods inherited from class javax.vecmath.Point3d |
---|
distance, distanceL1, distanceLinf, distanceSquared, project |
Methods inherited from class javax.vecmath.Tuple3d |
---|
absolute, absolute, add, add, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, clone, epsilonEquals, equals, equals, get, get, hashCode, interpolate, interpolate, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, scaleAdd, set, set, set, set, sub, sub |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID_X
public static final java.lang.String ID_Y
public static final java.lang.String ID_Z
public static final java.lang.String ID_FROZEN
public static final java.lang.String ID_HIDDEN
Constructor Detail |
---|
public Snake3DNode(double x, double y, double z)
public Snake3DNode(double x, double y, double z, boolean frozen, boolean hidden)
Method Detail |
---|
public void loadFromXML(org.w3c.dom.Node node)
public void saveToXML(org.w3c.dom.Element node)
public java.lang.String toString()
toString
in class javax.vecmath.Tuple3d
public int compareTo(Snake3DNode node)
compareTo
in interface java.lang.Comparable<Snake3DNode>
public void hide()
public void unhide()
public boolean isHidden()
public void freeze()
public void unfreeze()
public boolean isFrozen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |