Adds a listener to an event type.
When an event of the type pType fires, the callback pListener will be called. This function
returns a unique string id that may be used in removeEventListenerById to allow simple
listener removal.
It is possible to add an object that will be included in the callback to avoid creating too many closures.
The id of the inserted callback (actually an UUID).
Adds a listener to an event type.
When an event of the type pType fires, the callback pListener will be called. This function
returns a unique string id that may be used in removeEventListenerById to allow simple
listener removal.
The id of the inserted callback (actually an UUID).
Asynchronously triggers a request to "translate" the given geometric instance ids to the corresponding part instance ids.
The server will try to find all part instances that are linked to the given geometric instance ids in the given filtering context.
Returns a promise.
Please note that in case of multiple promises running at the same time on the same GeometricInstanceConverterInterface, the first promises will be signalled as cancelled, the last as ok, but all calls to getPartInstanceIds after awaiting will return the same value.
If pVisibilityContext is modified during the execution, then the call is cancelled (see cancel).
A promise. The promise is resolved with the reason (success, cancelled, disposed, bad input). In case of success, the promise contains the requested Uint32Array.
geometric instance ids to perform the conversion with.part instance ids.Cancels the computation of the conversion process (if any).
A GeometricInstanceConverterCancelled signal is emitted if the GeometricInstanceConverterInterface is retrieving data.
true if the GeometricInstanceConverterInterface was running, else false.
Triggers a request to "translate" the given geometric instance ids to the corresponding part instance ids.
The server will try to find all part instances that are linked to the given geometric instance ids in the given filtering context.
An event GeometricInstanceConverterReady is fired when the translation is finished,
use getLastError() to check if it was correctly performed.
Returns true if the "conversion" is started. If not, just call getLastError to get the reason why the procedure failed.
If pVisibilityContext is modified during the execution, then the call is cancelled (see cancel).
true if the conversion process has started, just wait for GeometricInstanceConverterReady.
geometric instance ids to perform the conversion with.part instance ids.Gets rid of this object.
After this call, this object can no longer be used.
If the object is an InfiniteObjectDispatcherInterface, then the ObjectDisposed signal is emitted.
Further uses of the object (with the exception of isDisposed and getInfiniteObjectType) will log a message with LL_UsingDisposedObject.
Tells the type of the given interface.
The type of the given interface.
Gets the last error returned by the convert call of the GeometricInstanceConverterInterface.
The last error message (if any, or an empty string if no error occurred).
Gets the result of the last convert call of the geometric instance ids conversion.
An Uint32Array representing the part instance ids is returned if the GeometricInstanceConverterInterface
has finished computing.
Use addEventListener on the event GeometricInstanceConverterReady to
know when the GeometricInstanceConverterInterface is ready.
DO NOT modify this data in place, this results in undefined behavior.
part instance ids,
result of the conversion, or undefined if the converter had an error, or is still computing.
Tells if the EventDispatcher has such a callback registered for the given event type.
true if such a listener is installed for the given type of event.
Tells if the GeometricInstanceConverterInterface has been cancelled.
This is generally the case after calling cancel when the GeometricInstanceConverterInterface is retrieving data.
true if the GeometricInstanceConverterInterface is cancelled.
Tells if this object has been gotten rid off.
true if dispose has been called on this object.
Tells if the GeometricInstanceConverterInterface is converting data.
This is the case after calling convert.
true if the GeometricInstanceConverterInterface is converting.
Removes a listener from an event type.
If no such listener is found, then the function returns false and does nothing. You must use the exact parameters that were used in addEventListener to actually remove the listener.
true if the callback was removed else false.
The listener function that gets removed.
The listener object that was used when addEventListener was called.
Removes a listener from an event type.
If no such listener is found, then the function returns false and does nothing. You must use the exact parameters that were used in addEventListener to actually remove the listener.
true if the callback was removed else false.
The listener function that gets removed.
Removes a listener by its id.
If no such listener is found, then the function returns false and does nothing. You must use the return value of addEventListener to actually remove the listener.
true if the callback was removed else false.
The GeometricInstanceConverterInterface interface is used to get, from a list of
geometric instance ids, the correspondingpart instance ids.Such a conversion is dependant on a filtering context. Indeed, the list of current
part instancesis dependant on the chosen configuration (at least) and may be dependant on the list of visiblepart instancesfor example. For this reason, convertinggeometric instance ids(from a picking request for example) needs a filtering context (see VisibilityContextInterface).This conversion is particularly useful to make idcard requests, since metadata documents are retrieved from
part instancesand notgeometric instances.The GeometricInstanceConverterInterface interfaces are created through the createGeometricInstanceConverter method.
The list of signals the GeometricInstanceConverterInterface may trigger is available in the GeometricInstanceConverterInterfaceSignal enumeration.
The conversion mechanism is triggered through the convert method. The result is not available right away, but the event GeometricInstanceConverterReady is triggered when the result of the GeometricInstanceConverterInterfaceSignal is available. The result is available through the getPartInstanceIds function.
Warning : there may be cases when the getPartInstanceIds is not available such as when the GeometricInstanceConverterInterface is fetching data, i.e. when isRunning returns true, or when the GeometricInstanceConverterInterface has been cancelled, i.e. when isCancelled returns true.
A GeometricInstanceConverterInterface may be interrupted (cancelled) when the GeometricInstanceConverterInterface is fetching data and cancel is called. In such cases, the GeometricInstanceConverterCancelled signal is fired, and shortly after, GeometricInstanceConverterReady signal is fired, but getPartInstanceIds will return undefined. Just call convert with another (or the same)
geometric instance idsto trigger a new retrieval.If you call multiple times convert before receiving the GeometricInstanceConverterReady, only one GeometricInstanceConverterReady will be sent with the content of the last call to convert.
This interface performs the opposite operation of the PartInstanceConverterInterface interface.
Or with async calls :
An example with an idcard request :
Please refer to [IdCardGetterInterface](IdCardGetterInterface.html) for more information about idcard requests.
See
GeometricInstanceConverterInterfaceSignal