Revision 29097 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/impl/MultiSolid2DZ.java
MultiSolid2DZ.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.geom.aggregate.impl; |
2 | 2 |
|
3 | 3 |
import org.cresques.cts.IProjection; |
4 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
5 | 4 |
import org.gvsig.fmap.geom.aggregate.MultiSolid; |
6 | 5 |
import org.gvsig.fmap.geom.primitive.Solid; |
7 | 6 |
import org.gvsig.fmap.geom.primitive.impl.Solid2DZ; |
... | ... | |
63 | 62 |
* @author Jorge Piera Llodr? (jorge.piera@iver.es) |
64 | 63 |
*/ |
65 | 64 |
public class MultiSolid2DZ extends BaseMultiPrimitive implements MultiSolid { |
66 |
|
|
67 |
private static final long serialVersionUID = 1L; |
|
68 |
|
|
69 |
private static GeometryType geomType = GeometryLocator.getGeometryManager() |
|
70 |
.registerGeometryType(MultiSolid2DZ.class, TYPES.MULTISOLID, SUBTYPES.GEOM2DZ); |
|
71 |
public static int CODE = geomType.getId(); |
|
72 |
|
|
65 |
private static final long serialVersionUID = 6690458251466529134L; |
|
66 |
|
|
73 | 67 |
/** |
74 |
* Constructor without arguments. It is necessary to create |
|
75 |
* geometries using the {@link GeometryType}{@link #create()} |
|
76 |
* method |
|
68 |
* The constructor with the GeometryType like and argument |
|
69 |
* is used by the {@link GeometryType}{@link #create()} |
|
70 |
* to create the geometry |
|
71 |
* @param type |
|
72 |
* The geometry type |
|
77 | 73 |
*/ |
78 |
public MultiSolid2DZ() { |
|
79 |
super(); |
|
74 |
public MultiSolid2DZ(GeometryType geomType) {
|
|
75 |
super(geomType);
|
|
80 | 76 |
} |
81 | 77 |
|
82 |
public MultiSolid2DZ(String id, IProjection projection) {
|
|
83 |
super(id, projection); |
|
78 |
MultiSolid2DZ(GeometryType geomType, String id, IProjection projection) {
|
|
79 |
super(geomType, id, projection);
|
|
84 | 80 |
} |
85 | 81 |
|
86 |
public MultiSolid2DZ(String id, IProjection projection, Solid2DZ[] solids) {
|
|
87 |
super(id, projection, solids); |
|
82 |
MultiSolid2DZ(GeometryType geomType, String id, IProjection projection, Solid2DZ[] solids) {
|
|
83 |
super(geomType,id, projection, solids);
|
|
88 | 84 |
} |
89 | 85 |
|
90 | 86 |
/* |
... | ... | |
94 | 90 |
*/ |
95 | 91 |
public int getDimension() { |
96 | 92 |
return 3; |
97 |
} |
|
93 |
}
|
|
98 | 94 |
|
99 | 95 |
/* (non-Javadoc) |
100 |
* @see org.gvsig.fmap.geom.primitive.AbstractPrimitive#getGeometryType() |
|
101 |
*/ |
|
102 |
public GeometryType getGeometryType() { |
|
103 |
return geomType; |
|
104 |
} |
|
105 |
|
|
106 |
/* (non-Javadoc) |
|
107 |
* @see org.gvsig.fmap.geom.Geometry#getType() |
|
108 |
*/ |
|
109 |
public int getType() { |
|
110 |
return geomType.getType(); |
|
111 |
} |
|
112 |
|
|
113 |
/* (non-Javadoc) |
|
114 | 96 |
* @see org.gvsig.fmap.geom.aggregate.MultiSolid#addSolid(org.gvsig.fmap.geom.primitive.Solid) |
115 | 97 |
*/ |
116 | 98 |
public void addSolid(Solid solid) { |
Also available in: Unified diff