Constructor
new GeoObject(options)
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | IGeoObjectParams | Geo object parameters: Properties
|
- Source
Members
indices
Gets geometry mesh indices.
- Source
normals
Gets geometry mesh normals.
- Source
object3d
Gets the 3D object associated with this geo object.
- Source
tag
Gets the unique tag of the geo object.
- Source
texCoords
Gets geometry mesh texture coordinates.
- Source
vertices
Gets geometry mesh vertices.
- Source
Methods
getDirection() → {Vec3}
Returns object direction
- Source
- Type:
- Vec3
getLocalPosition() → {Vec3}
Gets local offset position.
- Source
- Type:
- Vec3
getOpacity() → {number}
Gets the opacity of the geo object.
- Source
- Type:
- number
getPosition() → {Vec3}
Gets the position of the geo object.
- Source
- Type:
- Vec3
getRotation() → {Quat}
Returns orientation quaternion.
- Source
- Type:
- Quat
getScale() → {Vec3}
Gets scale.
- Source
- Type:
- Vec3
getVisibility() → {boolean}
Returns geo object visibility.
- Source
- Type:
- boolean
remove()
Removes the geo object from the handler.
- Source
setColor(r, g, b, aopt)
Sets the color of the geo object.
Name | Type | Attributes | Description |
---|---|---|---|
r | number | Red component. | |
g | number | Green component. | |
b | number | Blue component. | |
a | number | <optional> | Alpha component. |
- Source
setColor4v(color)
Sets color.
- Source
setColorHTML(color)
Sets object HTML color.
Name | Type | Description |
---|---|---|
color | string |
- Source
setLocalPosition3v(localPosition)
Sets local offset position.
Name | Type | Description |
---|---|---|
localPosition | Vec3 |
- Source
setObject(object)
Sets Object3d for the object
Name | Type | Description |
---|---|---|
object | Object3d |
- Source
setObjectSrc(src)
Sets the object url source.
Name | Type | Description |
---|---|---|
src | string |
- Source
setOpacity(a)
Sets the opacity of the geo object.
Name | Type | Description |
---|---|---|
a | number | Opacity value (0 to 1). |
- Source
setPickingColor3v(color)
Sets billboard picking color.
Name | Type | Description |
---|---|---|
color | Vec3 | Picking color. |
- Source
setPosition(x, y, z)
Sets geo object position.
Name | Type | Description |
---|---|---|
x | number | X coordinate. |
y | number | Y coordinate. |
z | number | Z coordinate. |
- Source
setPosition3v(position)
Sets geo object position.
Name | Type | Description |
---|---|---|
position | Vec3 | Cartesian coordinates. |
- Source
setRotation(qRot)
Sets the rotation quaternion.
Name | Type | Description |
---|---|---|
qRot | Quat | Rotation quaternion. |
- Source
setScale(scale)
Sets scales.
Name | Type | Description |
---|---|---|
scale | number |
- Source
setScale3v(scale)
Sets X, Y, Z axis scales
Name | Type | Description |
---|---|---|
scale | Vec3 |
- Source
setVisibility(visibility)
Sets geo object visibility.
Name | Type | Description |
---|---|---|
visibility | boolean | Visibility flag. |
- Source
updateRotation()
Update object rotation
- Source