Revision 18219 trunk/libraries/lib3DMap/src/com/iver/ai2/gvsig3d/simbology3D/geometry3D/Point3DGeometry.java
Point3DGeometry.java | ||
---|---|---|
8 | 8 |
import com.iver.ai2.gvsig3d.simbology3D.symbol3D.I3DSymbol; |
9 | 9 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
10 | 10 |
|
11 |
import es.upv.ai2.libjosg.Group;
|
|
12 |
import es.upv.ai2.libjosg.Node;
|
|
13 |
import es.upv.ai2.libjosg.Vec3;
|
|
11 |
import es.upv.ai2.osgvp.Group;
|
|
12 |
import es.upv.ai2.osgvp.Node;
|
|
13 |
import es.upv.ai2.osgvp.Vec3;
|
|
14 | 14 |
|
15 | 15 |
public class Point3DGeometry extends Abstract3DGeometry { |
16 | 16 |
|
17 |
protected Map<Double, List> pointsMap;
|
|
17 |
protected Map<Double, List> pointsMap; |
|
18 | 18 |
|
19 | 19 |
public Point3DGeometry(IGeometry geometry) { |
20 | 20 |
super(geometry); |
21 |
|
|
21 |
|
|
22 | 22 |
} |
23 | 23 |
|
24 | 24 |
public Group generateGeometry(I3DSymbol symbol3D) { |
... | ... | |
30 | 30 |
|
31 | 31 |
this.setGeomType(getGeometry().getGeometryType()); |
32 | 32 |
// TRANSFORMANDO A GEOMETRIA CON VALOR Z |
33 |
|
|
34 | 33 |
|
35 | 34 |
// Getting the Iterator |
36 | 35 |
PathIterator theIteratorL = getGeometry().getPathIterator(null); |
... | ... | |
42 | 41 |
while (!theIteratorL.isDone()) { |
43 | 42 |
// System.out.println("ITERO"); |
44 | 43 |
int type = theIteratorL.currentSegment(dataLine); |
45 |
Vec3 position = getGeometryPosition(getGeometry(),dataLine,getHeigth(),contH); |
|
46 |
|
|
44 |
Vec3 position = getGeometryPosition(getGeometry(), dataLine, |
|
45 |
getHeigth(), contH); |
|
46 |
|
|
47 | 47 |
// Adding points |
48 | 48 |
switch (type) { |
49 | 49 |
case PathIterator.SEG_MOVETO: |
50 | 50 |
// System.out.println("SEG_MOVETO"); |
51 |
// FeatureFactory.addPointToNode(node, pos, rgba, pointSize);
|
|
52 |
// posi.add(pos);
|
|
51 |
// FeatureFactory.addPointToNode(node, pos, rgba, pointSize);
|
|
52 |
// posi.add(pos);
|
|
53 | 53 |
// INSERT HERE THE CODE TO MAKE TETURED QUAD POINT |
54 |
List <Vec3> posit = new ArrayList<Vec3>();
|
|
54 |
List<Vec3> posit = new ArrayList<Vec3>(); |
|
55 | 55 |
posit.add(position); |
56 | 56 |
node = symbol3D.generateSymbol(posit); |
57 | 57 |
groupAux.addChild(node); |
58 |
// group.addChild(generateFeature(posit,new Vec4(1.0,0.0,0.0,1.0),sym)); |
|
59 |
// group.addChild(); |
|
60 |
// pointListAux.add(new Punto3D(pos, rgba, pointSize)); |
|
58 |
// group.addChild(generateFeature(posit,new |
|
59 |
// Vec4(1.0,0.0,0.0,1.0),sym)); |
|
60 |
// group.addChild(); |
|
61 |
// pointListAux.add(new Punto3D(pos, rgba, pointSize)); |
|
61 | 62 |
break; |
62 | 63 |
|
63 | 64 |
case PathIterator.SEG_LINETO: |
... | ... | |
80 | 81 |
contH++; |
81 | 82 |
theIteratorL.next(); |
82 | 83 |
} |
83 |
return groupAux;
|
|
84 |
return groupAux; |
|
84 | 85 |
|
85 | 86 |
} |
86 | 87 |
|
Also available in: Unified diff