|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.geometry.GM_Object_Impl
org.deegree_impl.model.geometry.GM_Aggregate_Impl
org.deegree_impl.model.geometry.GM_MultiPrimitive_Impl
org.deegree_impl.model.geometry.GM_MultiCurve_Impl
default implementation of the GM_MultiCurve interface from package jago.model. ------------------------------------------------------------
Field Summary | |
protected java.util.ArrayList |
aggregate
|
private static long |
serialVersionUID
Use serialVersionUID for interoperability. |
Fields inherited from class org.deegree_impl.model.geometry.GM_Object_Impl |
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
Constructor Summary | |
GM_MultiCurve_Impl(CS_CoordinateSystem crs)
Creates a new GM_MultiCurve_Impl object. |
|
GM_MultiCurve_Impl(GM_Curve[] gmc)
Creates a new GM_MultiCurve_Impl object. |
|
GM_MultiCurve_Impl(GM_Curve[] gmc,
CS_CoordinateSystem crs)
Creates a new GM_MultiCurve_Impl object. |
Method Summary | |
void |
add(GM_Object gmo)
adds an GM_Object to the aggregation |
void |
addCurve(GM_Curve gmc)
adds a GM_Curve to the aggregation |
protected void |
calculateCentroid()
calculates the centroid of the aggregation |
protected void |
calculateEnvelope()
calculates the bounding box / envelope of the aggregation |
protected void |
calculateParam()
calculates the centroid and envelope of the aggregation |
java.lang.Object |
clone()
returns a shallow copy of the geometry |
boolean |
equals(java.lang.Object other)
Compares the GM_Object to be equal to another GM_Object. |
GM_Object[] |
getAll()
returns all GM_Objects as array |
GM_Curve[] |
getAllCurves()
returns all GM_Curves as array |
GM_Primitive[] |
getAllPrimitives()
returns all GM_Primitives as array |
GM_Boundary |
getBoundary()
returns the boundary of the MultiCurve not implemented yet |
int |
getCoordinateDimension()
The operation "coordinateDimension" shall return the dimension of the coordinates that define this GM_Object, which must be the same as the coordinate dimension of the coordinate reference system for this GM_Object. |
GM_Curve |
getCurveAt(int index)
returns the GM_Curve at the submitted index. |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this GM_Object, which shall be less than or equal to the coordinate dimension. |
java.util.Iterator |
getIterator()
returns the aggregation as an iterator |
GM_Object |
getObjectAt(int index)
returns the GM_Object at the submitted index. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown. |
GM_Primitive |
getPrimitiveAt(int index)
returns the GM_Primitive at the submitted index. |
int |
getSize()
returns the number of GM_Object within the aggregation |
void |
insertCurveAt(GM_Curve gmc,
int index)
inserts a GM_Curve in the aggregation. all elements with an index equal or larger index will be moved. if index is larger then getSize() - 1 or smaller then 0 or gmc equals null an exception will be thrown. |
void |
insertObjectAt(GM_Object gmo,
int index)
inserts a GM_Object in the aggregation. all elements with an index equal or larger index will be moved. if index is larger then getSize() - 1 or smaller then 0 or gmo equals null an exception will be thrown. |
boolean |
intersects(GM_Object gmo)
The Boolean valued operation "intersects" shall return TRUE if this GM_Object intersects another GM_Object. |
boolean |
isEmpty()
returns true if no geometry stored within the collection. |
boolean |
isMember(GM_Curve gmc)
returns true if the submitted GM_Curve is within the aggregation |
boolean |
isMember(GM_Object gmo)
returns true if the submitted GM_Object is within the aggregation |
void |
merge(GM_Aggregate aggregate)
merges this aggregation with another one |
void |
removeAll()
removes all GM_Curve from the aggregation. |
GM_Curve |
removeCurve(GM_Curve gmc)
removes the submitted GM_Curve from the aggregation |
GM_Curve |
removeCurveAt(int index)
removes the GM_Curve at the submitted index from the aggregation. |
GM_Object |
removeObject(GM_Object gmo)
removes the submitted GM_Object from the aggregation |
GM_Object |
removeObjectAt(int index)
removes the GM_Object at the submitted index from the aggregation. |
void |
setCoordinateSystem(CS_CoordinateSystem crs)
sets the spatial reference system |
void |
setCurveAt(GM_Curve gmc,
int index)
sets the submitted GM_Curve at the submitted index. the element at the position index will be removed. if index is
larger then getSize() - 1 or smaller then 0 or gmc equals null
an exception will be thrown. |
void |
setObjectAt(GM_Object gmo,
int index)
sets the submitted GM_Object at the submitted index. the element at the position index will be removed. if index is
larger then getSize() - 1 or smaller then 0 or gmo equals null
an exception will be thrown. |
java.lang.String |
toString()
|
void |
translate(double[] d)
translate the point by the submitted values. the dz -
value will be ignored. |
Methods inherited from class org.deegree_impl.model.geometry.GM_Object_Impl |
contains, contains, difference, distance, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, intersection, isValid, isWithinDistance, setEmpty, setValid, union |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.model.geometry.GM_MultiPrimitive |
getAllPrimitives, getPrimitiveAt |
Methods inherited from interface org.deegree.model.geometry.GM_Aggregate |
add, getAll, getIterator, getObjectAt, getSize, insertObjectAt, isMember, merge, removeObject, removeObjectAt, setObjectAt |
Methods inherited from interface org.deegree.model.geometry.GM_Object |
contains, contains, difference, distance, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, intersection, intersects, isEmpty, isWithinDistance, translate, union |
Field Detail |
private static final long serialVersionUID
protected java.util.ArrayList aggregate
Constructor Detail |
public GM_MultiCurve_Impl(CS_CoordinateSystem crs)
crs
- public GM_MultiCurve_Impl(GM_Curve[] gmc)
gmc
- public GM_MultiCurve_Impl(GM_Curve[] gmc, CS_CoordinateSystem crs)
gmc
- crs
- Method Detail |
public void addCurve(GM_Curve gmc)
addCurve
in interface GM_MultiCurve
public void insertCurveAt(GM_Curve gmc, int index) throws GM_Exception
insertCurveAt
in interface GM_MultiCurve
gmc
- GM_Curve to insert.index
- position where to insert the new GM_Curve
GM_Exception
public void setCurveAt(GM_Curve gmc, int index) throws GM_Exception
index
will be removed. if index is
larger then getSize() - 1 or smaller then 0 or gmc equals null
an exception will be thrown.
setCurveAt
in interface GM_MultiCurve
gmc
- GM_Curve to set.index
- position where to set the new GM_Curve
GM_Exception
public GM_Curve removeCurve(GM_Curve gmc)
removeCurve
in interface GM_MultiCurve
public GM_Curve removeCurveAt(int index) throws GM_Exception
removeCurveAt
in interface GM_MultiCurve
GM_Exception
public void removeAll()
removeAll
in interface GM_Aggregate
removeAll
in class GM_Aggregate_Impl
public GM_Curve getCurveAt(int index)
getCurveAt
in interface GM_MultiCurve
public GM_Curve[] getAllCurves()
getAllCurves
in interface GM_MultiCurve
public boolean isMember(GM_Curve gmc)
public GM_Boundary getBoundary()
not implemented yet
getBoundary
in interface GM_Object
getBoundary
in class GM_Object_Impl
protected void calculateEnvelope()
protected void calculateCentroid()
protected void calculateParam()
calculateParam
in class GM_MultiPrimitive_Impl
public int getDimension()
getDimension
in interface GM_Object
getDimension
in class GM_MultiPrimitive_Impl
public int getCoordinateDimension()
getCoordinateDimension
in interface GM_Object
getCoordinateDimension
in class GM_MultiPrimitive_Impl
public java.lang.Object clone()
clone
in class GM_Object_Impl
public void merge(GM_Aggregate aggregate) throws GM_Exception
merge
in interface GM_Aggregate
merge
in class GM_Aggregate_Impl
GM_Exception
- will be thrown if the submitted
isn't the same type as the recieving one.public GM_Primitive getPrimitiveAt(int index)
getPrimitiveAt
in interface GM_MultiPrimitive
public GM_Primitive[] getAllPrimitives()
getAllPrimitives
in interface GM_MultiPrimitive
public int getSize()
getSize
in interface GM_Aggregate
public void add(GM_Object gmo)
add
in interface GM_Aggregate
public void insertObjectAt(GM_Object gmo, int index) throws GM_Exception
insertObjectAt
in interface GM_Aggregate
gmo
- GM_Object to insert.index
- position where to insert the new GM_Object
GM_Exception
public void setObjectAt(GM_Object gmo, int index) throws GM_Exception
index
will be removed. if index is
larger then getSize() - 1 or smaller then 0 or gmo equals null
an exception will be thrown.
setObjectAt
in interface GM_Aggregate
gmo
- GM_Object to set.index
- position where to set the new GM_Object
GM_Exception
public GM_Object removeObject(GM_Object gmo)
removeObject
in interface GM_Aggregate
public GM_Object removeObjectAt(int index) throws GM_Exception
removeObjectAt
in interface GM_Aggregate
GM_Exception
public GM_Object getObjectAt(int index)
getObjectAt
in interface GM_Aggregate
public GM_Object[] getAll()
getAll
in interface GM_Aggregate
public boolean isMember(GM_Object gmo)
isMember
in interface GM_Aggregate
public java.util.Iterator getIterator()
getIterator
in interface GM_Aggregate
public boolean isEmpty()
isEmpty
in interface GM_Object
isEmpty
in class GM_Object_Impl
public void setCoordinateSystem(CS_CoordinateSystem crs)
setCoordinateSystem
in class GM_Object_Impl
crs
- new spatial reference systempublic void translate(double[] d)
dz
-
value will be ignored.
translate
in interface GM_Object
translate
in class GM_Object_Impl
public boolean equals(java.lang.Object other)
GM_Object_Impl
equals
in class GM_Object_Impl
other
-
public boolean intersects(GM_Object gmo)
intersects
in interface GM_Object
intersects
in class GM_Object_Impl
gmo
- the GM_Object to intersect with
public java.lang.String toString()
toString
in class GM_Object_Impl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |