|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcae.viewer3d.fd.PL02BranchGroup.EdgeLine
protected static class PL02BranchGroup.EdgeLine
Each EdgeLine object reports all edges along a particular infinite line This line is parallel to one of the axis, thus defined by: - Its direction: X, Y, or Z - The constant values in the other 2 directions Ex: X line defined by Y=5, Z=2 The values for the constants are indices in the grid array, thus integers Alongside each line, a certain number of edges can be defined. All overlapping edges are merged to form unique lines, thus reducing the geometry => Optimum solution in the end : no edge is duplicated, minimum geometrical description => easy to find back the grid indices in picking operations
| Constructor Summary | |
|---|---|
PL02BranchGroup.EdgeLine(int c1,
int c2,
int direction)
|
|
| Method Summary | |
|---|---|
void |
add(int e1,
int e2)
Add an edge along this line. |
boolean |
equals(java.lang.Object obj)
Equals is a bit special : test for direction and constant equality, but the edges need not be the same along this line. |
double[] |
getCoords(float[][] grid)
|
int |
getNumberOfEdges()
|
int |
hashCode()
Hashcode the direction and constants. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PL02BranchGroup.EdgeLine(int c1,
int c2,
int direction)
c1 - The first constant of one couple : (Y,Z) or (X,Z) or (X,Y)c2 - The second constant of one couple : (Y,Z) or (X,Z) or
(X,Y)direction - 0,1,2 for X,Y,Z| Method Detail |
|---|
public double[] getCoords(float[][] grid)
grid -
public int getNumberOfEdges()
public void add(int e1,
int e2)
e1 - The first edge ende2 - The second edge endpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object),
hashCode()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||