boundingObject

vgl. boundingObject

new boundingObject() → {vgl.boundingObject}

Description:
  • Create a new instance of class boundingObject.

Source:
Returns:
Type
vgl.boundingObject

Extends

  • vgl.object

Methods

bounds() → {Array.<number>}

Description:
  • Get current bounds of the object.

Source:
Returns:

The min x, max x, min y, max y, min z, max z bounding range of the object.

Type
Array.<number>

boundsDirtyTimestamp() → {geo.timestamp}

Description:
  • Return bounds dirty timestamp.

Source:
Returns:
Type
geo.timestamp

computeBounds()

Description:
  • Compute bounds of the object.

    Should be implemented by the concrete class.

Source:

computeBoundsTimestamp() → {geo.timestamp}

Description:
  • Return bounds computation modification time.

Source:
Returns:
Type
geo.timestamp

hasValidBounds(bounds) → {boolean}

Description:
  • Check if bounds are valid.

Source:
Parameters:
Name Type Description
bounds Array.<number>

The six value bounds of the object.

Returns:

true if the bounds are valid.

Type
boolean

resetBounds()

Description:
  • Reset bounds to default values.

Source:

setBounds(minX, maxX, minY, maxY, minZ, maxZ) → (nullable) {boolean}

Description:
  • Set current bounds of the object.

Source:
Parameters:
Name Type Description
minX number

Minimum x value.

maxX number

Maximum x value.

minY number

Minimum y value.

maxY number

Maximum y value.

minZ number

Minimum z value.

maxZ number

Maximum z value.

Returns:

true if the bounds were set.

Type
boolean