Class VoyagerSceneBuilder
java.lang.Object
io.goobi.viewer.model.media.voyager.VoyagerSceneBuilder
Builder that constructs a Smithsonian Voyager scene document (JSON) for one or more 3D model assets, including asset metadata, scene nodes, and
derivative descriptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setBounds(double[] min, double[] max) Sets the axis-aligned bounding box of the model in its local coordinate space, as read from the GLTF accessor min/max values.setTranslation(double x, double y, double z) Sets the model-level translation stored in the SVXmodels[i].translationfield, expressed as[x, y, z]in the scene's native units.
-
Constructor Details
-
VoyagerSceneBuilder
-
-
Method Details
-
setUnit
-
setTranslation
Sets the model-level translation stored in the SVXmodels[i].translationfield, expressed as[x, y, z]in the scene's native units.Voyager uses this field (together with
model.boundingBox) to compute the orbit pivot. Pass the negated world-space bounding-box centre so that the pivot lands at the scene origin and Voyager orbits around the object's true geometric centre.- Parameters:
x- translation along the X axisy- translation along the Y axisz- translation along the Z axis- Returns:
- this builder
-
setBounds
Sets the axis-aligned bounding box of the model in its local coordinate space, as read from the GLTF accessor min/max values. Used to embed aboundingBoxin the SVX model entry so Voyager can correctly position the orbit pivot, and to compute a reasonable initial camera distance.- Parameters:
min- lower corner[x, y, z]max- upper corner[x, y, z]- Returns:
- this builder
-
addModel
-
build
-