public class Model extends Geometry implements Cloneable
A 3D object described in a COLLADA file (referenced in the tag). COLLADA files have a .dae file extension. Models are created in their own coordinate space and then located, positioned, and scaled in Google Earth. See the "Topics in KML" page on Regions for more detail.
Google Earth supports only triangles and lines as primitive types. The maximum number of triangles allowed is 21845. Google Earth does not support animation or skinning. Google Earth does not support external geometry references.
Google Earth supports the COLLADA common profile, with the following exceptions:
Syntax:<Model id="ID">
<!-- specific to Model -->
<altitudeMode>clampToGround</altitudeMode>
<!-- kml:altitudeModeEnum: clampToGround,relativeToGround,or absolute -->
<!-- or, substitute gx:altitudeMode: clampToSeaFloor, relativeToSeaFloor -->
<Location>
<longitude></longitude> <!-- kml:angle180 -->
<latitude></latitude> <!-- kml:angle90 -->
<altitude>0</altitude> <!-- double -->
</Location>
<Orientation>
<heading>0</heading> <!-- kml:angle360 -->
<tilt>0</tilt> <!-- kml:angle360 -->
<roll>0</roll> <!-- kml:angle360 -->
</Orientation>
<Scale>
<x>1</x> <!-- double -->
<y>1</y> <!-- double -->
<z>1</z> <!-- double -->
</Scale>
<Link>...</Link>
<ResourceMap>
<Alias>
<targetHref>...</targetHref> <!-- anyURI -->
<sourceHref>...</sourceHref> <!-- anyURI -->
</Alias>
</ResourceMap>
</Model>
Extends:| Modifier and Type | Field and Description |
|---|---|
protected AltitudeMode |
altitudeMode
AltitudeMode
clampToGround, relativeToGround, absolute
See Also:
See
|
protected Link |
link
(required). see .
|
protected Location |
location
|
protected List<AbstractObject> |
modelObjectExtension
|
protected List<Object> |
modelSimpleExtension |
protected Orientation |
orientation
|
protected ResourceMap |
resourceMap
|
protected Scale |
scale
|
geometryObjectExtension, geometrySimpleExtensionid, objectSimpleExtension, targetId| Constructor and Description |
|---|
Model() |
| Modifier and Type | Method and Description |
|---|---|
Model |
addToGeometryObjectExtension(AbstractObject geometryObjectExtension)
add a value to the geometryObjectExtension property collection
|
Model |
addToGeometrySimpleExtension(Object geometrySimpleExtension)
add a value to the geometrySimpleExtension property collection
|
Model |
addToModelObjectExtension(AbstractObject modelObjectExtension)
add a value to the modelObjectExtension property collection
|
Model |
addToModelSimpleExtension(Object modelSimpleExtension)
add a value to the modelSimpleExtension property collection
|
Model |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
Model |
clone() |
Link |
createAndSetLink()
Creates a new instance of
Link and set it to link. |
Location |
createAndSetLocation()
Creates a new instance of
Location and set it to location. |
Orientation |
createAndSetOrientation()
Creates a new instance of
Orientation and set it to orientation. |
ResourceMap |
createAndSetResourceMap()
Creates a new instance of
ResourceMap and set it to resourceMap. |
Scale |
createAndSetScale()
Creates a new instance of
Scale and set it to scale. |
boolean |
equals(Object obj) |
AltitudeMode |
getAltitudeMode() |
Link |
getLink() |
Location |
getLocation() |
List<AbstractObject> |
getModelObjectExtension() |
List<Object> |
getModelSimpleExtension() |
Orientation |
getOrientation() |
ResourceMap |
getResourceMap() |
Scale |
getScale() |
int |
hashCode() |
void |
setAltitudeMode(AltitudeMode value) |
void |
setGeometryObjectExtension(List<AbstractObject> geometryObjectExtension) |
void |
setGeometrySimpleExtension(List<Object> geometrySimpleExtension) |
void |
setLink(Link value) |
void |
setLocation(Location value) |
void |
setModelObjectExtension(List<AbstractObject> modelObjectExtension) |
void |
setModelSimpleExtension(List<Object> modelSimpleExtension) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setOrientation(Orientation value) |
void |
setResourceMap(ResourceMap value) |
void |
setScale(Scale value) |
Model |
withAltitudeMode(AltitudeMode altitudeMode)
fluent setter
|
Model |
withGeometryObjectExtension(List<AbstractObject> geometryObjectExtension)
fluent setter
|
Model |
withGeometrySimpleExtension(List<Object> geometrySimpleExtension)
fluent setter
|
Model |
withId(String id)
fluent setter
|
Model |
withLink(Link link)
fluent setter
|
Model |
withLocation(Location location)
fluent setter
|
Model |
withModelObjectExtension(List<AbstractObject> modelObjectExtension)
fluent setter
|
Model |
withModelSimpleExtension(List<Object> modelSimpleExtension)
fluent setter
|
Model |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
Model |
withOrientation(Orientation orientation)
fluent setter
|
Model |
withResourceMap(ResourceMap resourceMap)
fluent setter
|
Model |
withScale(Scale scale)
fluent setter
|
Model |
withTargetId(String targetId)
fluent setter
|
getGeometryObjectExtension, getGeometrySimpleExtensiongetId, getObjectSimpleExtension, getTargetId, setId, setTargetIdprotected AltitudeMode altitudeMode
clampToGround, relativeToGround, absolute
See Also: Seeprotected Location location
Specifies the exact coordinates of the Model's origin in latitude, longitude, and
altitude. Latitude and longitude measurements are standard lat-lon projection with
WGS84 datum. Altitude is distance above the earth's surface, in meters, and is interpreted
according to
protected Orientation orientation
Describes rotation of a 3D model's coordinate system to position the object in Google
Earth. See diagram below.
protected Scale scale
Note: The
Resizes the icon.
Scales a model along the x, y, and z axes in the model's coordinate space.
protected Link link
specifies the location of any of the following:
If the file specified in
KML files fetched by network links Image files used in any Overlay (the
Specifies the URL of the website containing this KML or KMZ file. Be sure to include the namespace for this element in any KML file that uses it: xmlns:atom="http://www.w3.org/2005/Atom" (see the sample that follows).
Specifies the file to load and optional refresh parameters. See .
The element replaces the
The file is conditionally loaded and refreshed, depending on the refresh parameters
supplied here. Two different sets of refresh parameters can be specified: one set
is based on time (
Tip: To display the top-level Folder or Document within a Network Link in the List View, assign an ID to the Folder or Document. Without this ID, only the child object names are displayed in the List View.
When a file is fetched, the URL that is sent to the server is composed of three pieces of information:
the href (Hypertext Reference) that specifies the file to load. an arbitrary format
string that is created from (a) parameters that you specify in the
<Link id="ID">
<!-- specific to Link -->
<href>...</href> <!-- string -->
<refreshMode>onChange</refreshMode>
<!-- refreshModeEnum: onChange, onInterval, or onExpire -->
<refreshInterval>4</refreshInterval> <!-- float -->
<viewRefreshMode>never</viewRefreshMode>
<!-- viewRefreshModeEnum: never, onStop, onRequest, onRegion -->
<viewRefreshTime>4</viewRefreshTime> <!-- float -->
<viewBoundScale>1</viewBoundScale> <!-- float -->
<viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]</viewFormat>
<!-- string -->
<httpQuery>...</httpQuery> <!-- string -->
</Link>
Extends:protected ResourceMap resourceMap
protected List<AbstractObject> modelObjectExtension
public AltitudeMode getAltitudeMode()
<Object
<AltitudeMode
<de.micromata.opengis.kml.v_2_2_0.gx.AltitudeModealtitudeModepublic void setAltitudeMode(AltitudeMode value)
value - allowed object is
<Object
<AltitudeMode
<de.micromata.opengis.kml.v_2_2_0.gx.AltitudeModealtitudeModepublic void setLocation(Location value)
value - allowed object is
Locationlocationpublic Orientation getOrientation()
Orientationorientationpublic void setOrientation(Orientation value)
value - allowed object is
Orientationorientationpublic ResourceMap getResourceMap()
ResourceMapresourceMappublic void setResourceMap(ResourceMap value)
value - allowed object is
ResourceMapresourceMappublic List<AbstractObject> getModelObjectExtension()
modelObjectExtensionpublic Location createAndSetLocation()
Location and set it to location.
This method is a short version for:
Location location = new Location();
this.setLocation(location); public Orientation createAndSetOrientation()
Orientation and set it to orientation.
This method is a short version for:
Orientation orientation = new Orientation();
this.setOrientation(orientation); public Scale createAndSetScale()
Scale and set it to scale.
This method is a short version for:
Scale scale = new Scale();
this.setScale(scale); public Link createAndSetLink()
Link and set it to link.
This method is a short version for:
Link link = new Link();
this.setLink(link); public ResourceMap createAndSetResourceMap()
ResourceMap and set it to resourceMap.
This method is a short version for:
ResourceMap resourceMap = new ResourceMap();
this.setResourceMap(resourceMap); public void setModelSimpleExtension(List<Object> modelSimpleExtension)
modelSimpleExtension - modelSimpleExtensionpublic Model addToModelSimpleExtension(Object modelSimpleExtension)
modelSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setModelObjectExtension(List<AbstractObject> modelObjectExtension)
modelObjectExtension - modelObjectExtensionpublic Model addToModelObjectExtension(AbstractObject modelObjectExtension)
modelObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class GeometryobjectSimpleExtensionpublic Model addToObjectSimpleExtension(Object objectSimpleExtension)
AbstractObjectaddToObjectSimpleExtension in class GeometryobjectSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setGeometrySimpleExtension(List<Object> geometrySimpleExtension)
setGeometrySimpleExtension in class GeometrygeometrySimpleExtensionpublic Model addToGeometrySimpleExtension(Object geometrySimpleExtension)
GeometryaddToGeometrySimpleExtension in class GeometrygeometrySimpleExtension - Objects of the following type are allowed in the list: <ObjectJAXBElement<BigIntegerJAXBElement<Doublepublic void setGeometryObjectExtension(List<AbstractObject> geometryObjectExtension)
setGeometryObjectExtension in class GeometrygeometryObjectExtensionpublic Model addToGeometryObjectExtension(AbstractObject geometryObjectExtension)
GeometryaddToGeometryObjectExtension in class GeometrygeometryObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic Model withAltitudeMode(AltitudeMode altitudeMode)
altitudeMode - required parameter#setAltitudeMode(Object)public Model withLocation(Location location)
location - required parametersetLocation(Location)public Model withOrientation(Orientation orientation)
orientation - required parametersetOrientation(Orientation)public Model withScale(Scale scale)
scale - required parametersetScale(Scale)public Model withLink(Link link)
link - required parametersetLink(Link)public Model withResourceMap(ResourceMap resourceMap)
resourceMap - required parametersetResourceMap(ResourceMap)public Model withModelSimpleExtension(List<Object> modelSimpleExtension)
modelSimpleExtension - required parameter#setModelSimpleExtension(Listpublic Model withModelObjectExtension(List<AbstractObject> modelObjectExtension)
modelObjectExtension - required parameter#setModelObjectExtension(List) public Model withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class GeometryobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic Model withId(String id)
AbstractObjectwithId in class Geometryid - required parameterAbstractObject.setId(String)public Model withTargetId(String targetId)
AbstractObjectwithTargetId in class GeometrytargetId - required parameterAbstractObject.setTargetId(String)public Model withGeometrySimpleExtension(List<Object> geometrySimpleExtension)
GeometrywithGeometrySimpleExtension in class GeometrygeometrySimpleExtension - required parameter#setGeometrySimpleExtension(Listpublic Model withGeometryObjectExtension(List<AbstractObject> geometryObjectExtension)
GeometrywithGeometryObjectExtension in class GeometrygeometryObjectExtension - required parameter#setGeometryObjectExtension(List) Copyright © 2014 Micromata GmbH. All rights reserved.