public class TLcdGML31OrientableSurface extends TLcdGML31AbstractSurface implements ILcdShape
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
BASE_SURFACE_PROPERTY
Data property that maps to the
baseSurface element. |
static TLcdDataProperty |
GID_PROPERTY
Property that maps on the
gid attribute. |
static TLcdDataProperty |
ORIENTATION_PROPERTY
Data property that maps to the
orientation attribute. |
SRS_PROPERTY
DESCRIPTION_PROPERTY, ID_PROPERTY, META_DATA_PROPERTY_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
TLcdGML31OrientableSurface() |
TLcdGML31OrientableSurface(ILcdModelReference aSrs)
Constructs an orientable surface and initializes its
model reference (srs).
|
TLcdGML31OrientableSurface(TLcdDataType aType) |
TLcdGML31OrientableSurface(TLcdDataType aDataType,
ILcdModelReference aSrs)
Constructs an orientable surface and initializes its
model reference (srs).
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains2D(double v,
double v1)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double v,
double v1,
double v2)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
TLcdGML31AbstractSurface |
getBaseSurface()
Returns the value of the property that maps to the
baseSurface element. |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
String |
getGid()
Gets the value of the
GID_PROPERTY property. |
ELcdGML31Sign |
getOrientation()
Returns the value of the property that maps to the
orientation attribute. |
void |
setBaseSurface(TLcdGML31AbstractSurface aValue)
Sets the value of the property that maps to the
baseSurface element. |
void |
setGid(String aValue)
Sets the value of the
GID_PROPERTY property. |
void |
setOrientation(ELcdGML31Sign aValue)
Sets the value of the property that maps to the
orientation attribute. |
getSrs, setSrs, toString
getDescription, getId, getMetaDataProperty, getName, setDescription, setId
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeature
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone
public static final TLcdDataProperty ORIENTATION_PROPERTY
orientation
attribute.
The possible values for this property are instances of ELcdGML31Sign
.public static final TLcdDataProperty BASE_SURFACE_PROPERTY
baseSurface
element.
The possible values for this property are instances of TLcdGML31SurfaceProperty
.public static final TLcdDataProperty GID_PROPERTY
gid
attribute. Acceptable values for this property are instances of java.lang.String
.public TLcdGML31OrientableSurface()
public TLcdGML31OrientableSurface(TLcdDataType aType)
public TLcdGML31OrientableSurface(ILcdModelReference aSrs)
aSrs
- the model reference for this objectTLcdGML31AbstractGeometry.setSrs(ILcdModelReference)
public TLcdGML31OrientableSurface(TLcdDataType aDataType, ILcdModelReference aSrs)
aSrs
- the model reference for this objectTLcdGML31AbstractGeometry.setSrs(ILcdModelReference)
public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
getFocusPoint
in class TLcdGML31AbstractGeometry
ILcdShape
.public boolean contains2D(ILcdPoint aILcdPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
contains2D
in class TLcdGML31AbstractGeometry
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains2D(double v, double v1)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
contains2D
in class TLcdGML31AbstractGeometry
v
- the x coordinate of the point.v1
- the y coordinate of the point.public boolean contains3D(ILcdPoint aILcdPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
contains3D
in class TLcdGML31AbstractGeometry
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains3D(double v, double v1, double v2)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
contains3D
in class TLcdGML31AbstractGeometry
v
- the x coordinate of the point.v1
- the y coordinate of the point.v2
- the z coordinate of the point.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
getBounds
in class TLcdGML31AbstractGeometry
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public ELcdGML31Sign getOrientation()
orientation
attribute.
If the orientation is "+", then the OrientableSurface is identical to the baseSurface. If the orientation is "-", then the OrientableSurface is a reference to a Surface with an up-normal that reverses the direction for this OrientableSurface, the sense of "the top of the surface". "+" is the default value.
ORIENTATION_PROPERTY
property.public void setOrientation(ELcdGML31Sign aValue)
orientation
attribute.
If the orientation is "+", then the OrientableSurface is identical to the baseSurface. If the orientation is "-", then the OrientableSurface is a reference to a Surface with an up-normal that reverses the direction for this OrientableSurface, the sense of "the top of the surface". "+" is the default value.
aValue
- the value to set for the ORIENTATION_PROPERTY
property.public TLcdGML31AbstractSurface getBaseSurface()
baseSurface
element.
This property element either references a surface via the XLink-attributes or contains the surface element. A surface element is any element which is substitutable for "_Surface".
BASE_SURFACE_PROPERTY
property.TLcdGML31SurfaceProperty
public void setBaseSurface(TLcdGML31AbstractSurface aValue)
baseSurface
element.
This property element either references a surface via the XLink-attributes or contains the surface element. A surface element is any element which is substitutable for "_Surface".
aValue
- the value to set for the BASE_SURFACE_PROPERTY
property.public String getGid()
GID_PROPERTY
property.
This attribute is included for backward compatibility with GML 2 and is deprecated with GML 3. This identifer is superceded by "gml:id" inherited from AbstractGMLType. The attribute "gid" should not be used anymore and may be deleted in future versions of GML without further notice.
GID_PROPERTY
property.public void setGid(String aValue)
GID_PROPERTY
property.
This attribute is included for backward compatibility with GML 2 and is deprecated with GML 3. This identifer is superceded by "gml:id" inherited from AbstractGMLType. The attribute "gid" should not be used anymore and may be deleted in future versions of GML without further notice.
aValue
- the value to set for the GID_PROPERTY
property.