Enumeration FilterItemInterfaceSignal

The FilterItemInterfaceSignal lists all the signals that may be sent by the abstract FilterItemInterface.

These signals are emitted by the abstract FilterItemInterface when it is modified.

There is no way to know when the abstract FilterItemInterface is ready : the abstract FilterItemInterface is contained inside a WorkingSetInterface that notifies when it is ready. As such, there is no way to get the part instances or geometric instances that are included in such a FilterItemInterface.

The FilterItemInterface may fire the following signals :

/** 
* Sample to illustrate how to use the 3djuump Infinite signal system.
*/
import { FilterItemInterface, FilterItemInterfaceSignal } from 'generated_files/documentation/appinfiniteapi';

// filter has been created previously
let lFilter : FilterItemInterface;

// we want to be notified when events occur
const lCallbackId : string = lFilter.addEventListener(FilterItemInterfaceSignal.FilterChanged, (_event: any, _pObject: Object | undefined) =>
{
// output a fancy message when filter changes
console.log('filter has changed');
// and remove the listener
lFilter.removeEventListenerById(lCallbackId);
});

Please refer to FilterItemInterface for more information.
Events

Enumeration Members

FilterChanged: "filterChanged"

Signal sent by the abstract FilterItemInterface when it has changed.

Such a signal is usually sent with other FilterItemInterfaceSignals, in this case, this signal is always the last to be sent.

No attachment for events of this type.

FilterDataChanged: "dataChanged"

Signal sent by the abstract FilterItemInterface when the specific data of this filter has been changed (e.g. FilterItemInterface.fromJSON, FilterAABBInterface.setAABB, FilterAttributeInterface.setAttributeName, etc has been called).

No attachment for events of this type.

FilterEnabledChanged: "enabledChanged"

Signal sent by the abstract FilterItemInterface when its enabled state has changed.

No attachment for events of this type.

FilterIdChanged: "filterIdChanged"

Signal sent by the abstract FilterItemInterface when the id has changed.

The id is only used by the developer to uniquely identify filters. Modifying the id does not change the filter data internally, and as such the filter is not considered modified. Thus, no call to DataSessionInterface.update is required.

No attachment for events of this type.

FilterInvertedChanged: "invertedChanged"

Signal sent by the abstract FilterItemInterface when its inverted state has changed.

No attachment for events of this type.

FilterOperatorChanged: "operatorChanged"

Signal sent by the abstract FilterItemInterface when its GroupOperator has changed.

No attachment for events of this type.