public class ModelTests extends CommonFixture
CommonFixture.TargetElementsIteratorclient, conformanceLevel, kmlDoc, request, response, ROOT_PKG_PATH, targetElements| Constructor and Description |
|---|
ModelTests() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
assertValidAlias(Element alias,
URI modelURI)
Asserts that the given kml:Alias element satisfies all applicable
constraints.
|
void |
findModelElements()
Finds kml:Model elements in the KML document that do not appear in an
update context.
|
void |
modelLink()
[Test] Verifies that a kml:Model element has a valid reference to a
textured 3D object resource.
|
void |
modelLocation()
[Test] Verifies that a kml:Model element has a valid location (that
specifies the position of the model origin).
|
void |
orientation()
[Test] Verifies that a kml:Orientation element contains at least one of
the following elements: kml:heading, kml:tilt, or kml:roll.
|
void |
resourceMap()
[Test] Verifies that the kml:Alias elements appearing in a
kml:ResourceMap element satisfy all of the following constraints:
the value of the child kml:targetHref element is a URI reference to
an image (texture) resource;
the value of the child kml:sourceHref element corresponds to a file
reference that appears within the 3D object resource referenced by the
sibling kml:Link element
Note: The source file is expected to be a textual (including XML) digital
asset resource such as a COLLADA file.
|
buildGetRequest, clearMessages, findTargetElements, getResponseEntityAsDocument, initCommonFixture, setTargetElements, targetElementsProviderpublic void findModelElements()
public void modelLocation()
public void modelLink()
public void orientation()
public void resourceMap()
void assertValidAlias(Element alias, URI modelURI)
alias - A kml:Alias element.modelURI - An absolute URI that refers to a 3D model (e.g. a COLLADA
file); this will be used to resolve relative source URIs if
necessary.Copyright © 2016 Open Geospatial Consortium. All rights reserved.