new GeoObject(options)
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
Object |
Geo object parameters:
|
Members
-
protected_colorog.Vec4
-
RGBA color.
-
protected_positionog.Vec3
-
Geo object center cartesian position.
Methods
-
getVisibility(){boolean}
-
Returns geo object visibility.
Returns:
Type Description boolean -
remove()
-
Removes geo object from handler.
-
setColor(r, g, b, a)
-
Sets RGBA color. Each channel from 0.0 to 1.0.
Name Type Description r
number Red. g
number Green. b
number Blue. a
number Alpha. -
setColor4v(color)
-
Sets RGBA color. Each channel from 0.0 to 1.0.
Name Type Description color
og.Vec4 RGBA vector. -
setOpacity(a)
-
Sets geo object opacity.
Name Type Description a
number Billboard opacity. -
setPickingColor3v(color)
-
Sets billboard picking color.
Name Type Description color
og.Vec3 Picking color. -
setPosition(x, y, z)
-
Sets geoObject position.
Name Type Description x
number X coordinate. y
number Y coordinate. z
number Z coordinate. -
setPosition3v(position)
-
Sets billboard position.
Name Type Description position
og.Vec3 Cartesian coordinates. -
setVisibility(visibility)
-
Sets geo object visibility.
Name Type Description visibility
boolean Visibility flag.