42 |
Point pt0, pt1; |
Point pt0, pt1; |
43 |
|
|
44 |
/** |
/** |
45 |
* @param x0, y0 Coordinate inside first coord system |
* @param x0,y0 Coordinate inside first coord system |
46 |
* @param x1, y1 Coordinate inside second coord system |
* @param x1,y1 Coordinate inside second coord system |
47 |
*/ |
*/ |
48 |
public SimpleConnection(float x0, float y0, float x1, float y1) { |
public SimpleConnection(float x0, float y0, float x1, float y1) { |
49 |
this(x0, y0, x1, y1, null); |
this(x0, y0, x1, y1, null); |
50 |
} |
} |
51 |
|
|
52 |
/** |
/** |
53 |
* @param x0, y0 Coordinate inside first coord system |
* @param x0,y0 Coordinate inside first coord system |
54 |
* @param x1, y1 Coordinate inside second coord system |
* @param x1,y1 Coordinate inside second coord system |
55 |
*/ |
*/ |
56 |
public SimpleConnection(float x0, float y0, float x1, float y1, |
public SimpleConnection(float x0, float y0, float x1, float y1, |
57 |
Color color) { |
Color color) { |
76 |
g.drawLine(pt0.x, pt0.y, pt1.x, pt1.y); |
g.drawLine(pt0.x, pt0.y, pt1.x, pt1.y); |
77 |
} |
} |
78 |
|
|
79 |
|
public Vob glsetup; |
80 |
Vob line; |
Vob line; |
81 |
|
public Vob glteardown; |
82 |
|
|
83 |
public int putGL(VobScene vs, int coordsys1, int coordsys2) { |
public int putGL(VobScene vs, int coordsys1, int coordsys2) { |
84 |
if(line == null) line = GLRen.createLineConnector(x0, y0, x1, y1); |
if(line == null) line = GLRen.createLineConnector(x0, y0, x1, y1); |
85 |
|
if(glsetup != null) vs.map.put(glsetup); |
86 |
vs.map.put(line, coordsys1, coordsys2); |
vs.map.put(line, coordsys1, coordsys2); |
87 |
|
if(glteardown != null) vs.map.put(glteardown); |
88 |
return 0; |
return 0; |
89 |
} |
} |
90 |
} |
} |