Model

com.phasmidsoftware.xmldoc.kml.Model
See theModel companion object
case class Model(maybeLocation: Option[Location], maybeOrientation: Option[Orientation], maybeScale: Option[ModelScale], maybeLink: Option[Link], maybeResourceMap: Option[ResourceMap])(geometryData: GeometryData) extends Geometry

Case class Model, which extends Geometry: a 3D object described in a COLLADA file, placed at a given location and orientation, and scaled. See Model

NOTE: altitude mode is not one of this class's own fields, unlike the KML spec's own grouping - it's already provided by every Geometry subtype via the shared geometryData aux (see GeometryData.maybeAltitudeMode), so adding it again here would render it twice.

Value parameters

geometryData

the other properties of the Model.

maybeLink

an optional reference to the COLLADA (.dae) file: Option[Link].

maybeLocation

an optional location on the Earth's surface: Option[Location].

maybeOrientation

an optional orientation: Option[Orientation].

maybeResourceMap

an optional map from the COLLADA file's own texture references to where those resources actually are in this KML/KMZ package: Option[ResourceMap].

maybeScale

an optional scale factor along each axis: Option[ModelScale].

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Geometry
trait KmlObject
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def invert: Option[Geometry]

Inverts the current Geometry instance. This operation typically reverses the orientation or nature of the Geometry, depending on its specific subtype (e.g., LineString, Polygon, etc.).

Inverts the current Geometry instance. This operation typically reverses the orientation or nature of the Geometry, depending on its specific subtype (e.g., LineString, Polygon, etc.).

Attributes

Returns

an Option containing the inverted Geometry if applicable; otherwise, None.

Inherited from:
Geometry
def merge(t: Geometry, mergeName: Boolean = ...): Option[Geometry]

Merge this mergeable object with t.

Merge this mergeable object with t.

Value parameters

t

the object to be merged with this.

Attributes

Returns

the merged value of T.

Inherited from:
Geometry
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields