QuerySet

A QuerySet holds a set of queries of a particular type.

Constructor

new QuerySet(type, count)

Creates a new QuerySet.

Parameters:
NameTypeDescription
typeQUERYSET_TYPE

The type of the query set.

countnumber

The number of queries in the set.

Extends

Members

conservative :boolean

Indicates whether the query set operates in conservative mode. This property only applies to occlusion query sets in WebGL renderer.

Type:
  • boolean
Default Value
  • true

(readonly) count :number

The max number of queries in the set.

Type:
  • number

(readonly) id :number

Unique number for this query set instance.

Type:
  • number

name :string

The name of the query set.

Type:
  • string
Default Value
  • ""

(readonly) type :QUERYSET_TYPE

The type of the query set.

Methods

addEventListener(type, listener)

Adds a listener to an event type.

Parameters:
NameTypeDescription
typestring

The type of event to listen to.

listenerfunction

The function that gets called when the event is fired.

dispatchEvent(event)

Fire an event.

Parameters:
NameTypeDescription
eventobject

The event that gets fired.

dispose()

Dispose this query set.

removeEventListener(type, listener)

Removes a listener from an event type.

Parameters:
NameTypeDescription
typestring

The type of the listener that gets removed.

listenerfunction

The listener function that gets removed.