Class

com.scalakml.kml

Model

Related Doc: package kml

Permalink

case class Model(altitudeMode: Option[AltitudeMode] = None, location: Option[Location] = None, orientation: Option[Orientation] = None, scale: Option[Scale] = None, link: Option[Link] = None, resourceMap: Option[ResourceMap] = None, id: Option[String] = None, targetId: Option[String] = None, modelSimpleExtensionGroup: Seq[Any] = Nil, modelObjectExtensionGroup: Seq[Any] = Nil, geometrySimpleExtensionGroup: Seq[Any] = Nil, geometryObjectExtensionGroup: Seq[Any] = Nil, objectSimpleExtensionGroup: Seq[Any] = Nil) extends Geometry with Product with Serializable

A 3D object described in a COLLADA file (referenced in the <Link> 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 Models for more detail.

Google Earth supports the COLLADA common profile, with the following exceptions:

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.

altitudeMode

Specifies how the <altitude> specified in <Location> is interpreted. Possible values are as follows: clampToGround - (default) Indicates to ignore the <altitude> specification and place the Model on the ground. relativeToGround - Interprets the <altitude> as a value in meters above the ground. absolute - Interprets the <altitude> as a value in meters above sea level.

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 <altitudeMode> or <gx:altitudeMode>.

orientation

Describes rotation of a 3D model's coordinate system to position the object in Google Earth.

scale

Scales a model along the x, y, and z axes in the model's coordinate space.

link

Specifies the file to load and optional refresh parameters. See <Link>.

resourceMap

Specifies 0 or more <Alias> elements, each of which is a mapping for the texture file path from the original Collada file to the KML or KMZ file that contains the Model. This element allows you to move and rename texture files without having to update the original Collada file that references those textures. One <ResourceMap> element can contain multiple mappings from different (source) Collada files into the same (target) KMZ file.

Linear Supertypes
Serializable, Serializable, Product, Equals, Geometry, KmlObject, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Model
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Geometry
  7. KmlObject
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Model(altitudeMode: AltitudeMode, location: Location, orientation: Orientation, scale: Scale, link: Link, resourceMap: ResourceMap, id: String)

    Permalink
  2. new Model(altitudeMode: AltitudeMode, location: Location, orientation: Orientation, scale: Scale, link: Link)

    Permalink
  3. new Model(altitudeMode: Option[AltitudeMode] = None, location: Option[Location] = None, orientation: Option[Orientation] = None, scale: Option[Scale] = None, link: Option[Link] = None, resourceMap: Option[ResourceMap] = None, id: Option[String] = None, targetId: Option[String] = None, modelSimpleExtensionGroup: Seq[Any] = Nil, modelObjectExtensionGroup: Seq[Any] = Nil, geometrySimpleExtensionGroup: Seq[Any] = Nil, geometryObjectExtensionGroup: Seq[Any] = Nil, objectSimpleExtensionGroup: Seq[Any] = Nil)

    Permalink

    altitudeMode

    Specifies how the <altitude> specified in <Location> is interpreted. Possible values are as follows: clampToGround - (default) Indicates to ignore the <altitude> specification and place the Model on the ground. relativeToGround - Interprets the <altitude> as a value in meters above the ground. absolute - Interprets the <altitude> as a value in meters above sea level.

    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 <altitudeMode> or <gx:altitudeMode>.

    orientation

    Describes rotation of a 3D model's coordinate system to position the object in Google Earth.

    scale

    Scales a model along the x, y, and z axes in the model's coordinate space.

    link

    Specifies the file to load and optional refresh parameters. See <Link>.

    resourceMap

    Specifies 0 or more <Alias> elements, each of which is a mapping for the texture file path from the original Collada file to the KML or KMZ file that contains the Model. This element allows you to move and rename texture files without having to update the original Collada file that references those textures. One <ResourceMap> element can contain multiple mappings from different (source) Collada files into the same (target) KMZ file.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val altitudeMode: Option[AltitudeMode]

    Permalink

    Specifies how the <altitude> specified in <Location> is interpreted.

    Specifies how the <altitude> specified in <Location> is interpreted. Possible values are as follows: clampToGround - (default) Indicates to ignore the <altitude> specification and place the Model on the ground. relativeToGround - Interprets the <altitude> as a value in meters above the ground. absolute - Interprets the <altitude> as a value in meters above sea level.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. val geometryObjectExtensionGroup: Seq[Any]

    Permalink
    Definition Classes
    ModelGeometry
  10. val geometrySimpleExtensionGroup: Seq[Any]

    Permalink
    Definition Classes
    ModelGeometry
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. val id: Option[String]

    Permalink
    Definition Classes
    ModelGeometryKmlObject
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val link: Option[Link]

    Permalink

    Specifies the file to load and optional refresh parameters.

    Specifies the file to load and optional refresh parameters. See <Link>.

  15. val location: Option[Location]

    Permalink

    Specifies the exact coordinates of the Model's origin in latitude, longitude, and altitude.

    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 <altitudeMode> or <gx:altitudeMode>.

  16. val modelObjectExtensionGroup: Seq[Any]

    Permalink
  17. val modelSimpleExtensionGroup: Seq[Any]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. val objectSimpleExtensionGroup: Seq[Any]

    Permalink
    Definition Classes
    ModelGeometryKmlObject
  22. val orientation: Option[Orientation]

    Permalink

    Describes rotation of a 3D model's coordinate system to position the object in Google Earth.

  23. val resourceMap: Option[ResourceMap]

    Permalink

    Specifies 0 or more <Alias> elements, each of which is a mapping for the texture file path from the original Collada file to the KML or KMZ file that contains the Model.

    Specifies 0 or more <Alias> elements, each of which is a mapping for the texture file path from the original Collada file to the KML or KMZ file that contains the Model. This element allows you to move and rename texture files without having to update the original Collada file that references those textures. One <ResourceMap> element can contain multiple mappings from different (source) Collada files into the same (target) KMZ file.

  24. val scale: Option[Scale]

    Permalink

    Scales a model along the x, y, and z axes in the model's coordinate space.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. val targetId: Option[String]

    Permalink
    Definition Classes
    ModelGeometryKmlObject
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Geometry

Inherited from KmlObject

Inherited from AnyRef

Inherited from Any

Ungrouped