HPS::Exchange::TranslationNotifier

class HPS.Exchange.TranslationNotifier : public HPS.IONotifier

The TranslationNotifier class is a smart-pointer that is tied to a file translation. It is used to interact with an ongoing translation or get the results from a completed translation.

Public Functions

void Assign (HPS.Exchange.TranslationNotifier in_that)

Associate this TranslationNotifier with the same file translation as the source TranslationNotifier.

Param in_that

The source TranslationNotifier for the assignment.

override void Dispose ()
double GetImportTime ()

Get the number of milliseconds it took Exchange to read the CAD file(s) and generate the corresponding PRC data. Throws an IOException if the translation is not complete, was not successful or was canceled.

int[] GetParasolidParts ()

Get the Parasolid parts obtained from the translation. Throws an IOException if the translation is not complete, was not successful or was canceled.

Return

The Parasolid Parts for a successful file translation.

double GetTranslationTime ()

Get the number of milliseconds it took Exchange to translate the PRC data into Parasolid data. Throws an IOException if the translation is not complete, was not successful or was canceled.

override HPS.Type ObjectType ()

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Return

The declared type of the object in question, which may differ from the true, underlying type.

TranslationNotifier ()

The default constructor creates an TranslationNotifier object which is not tied to any file translation.

TranslationNotifier (HPS.Exchange.TranslationNotifier in_that)

The copy constructor creates a new TranslationNotifier object that is associated with the same file translation as the source TranslationNotifier.

Param in_that

The source TranslationNotifier to copy.

TranslationNotifier (HPS.IONotifier in_that)

The conversion constructor creates a new derived TranslationNotifier object from a base IONotifier object. The copy will only be successful if the source notifier is really an upcast of this notifier type. Otherwise the copy will fail and the resulting TranslationNotifier will be invalid.

Param in_that

The source IONotifier to copy.