#include <UT_Interrupt.h>

Public Member Functions | |
| UT_Interrupt (const char *app_title=0) | |
| virtual | ~UT_Interrupt () |
| void | setEnabled (int state, int print_longtext=0) |
| bool | isEnabled () const |
| void | setUseLocks (int state) |
| bool | setInterruptable (bool allow, bool *prev_enabled=NULL, bool allow_ui=false) |
| bool | getInterruptable () const |
| UT_Lock & | getInterruptableLock () |
| bool | getAllowUI () const |
| void | setAppTitle (const char *title) |
| const char * | getAppTitle () const |
| void | setActiveCallback (UT_InterruptCB function) |
| void | setInterruptHandler (UT_InterruptHandler *hand) |
| UT_InterruptHandler * | getInterruptHandler () |
| void | pushInterruptCallback (void(*callback)()) |
| void | popInterruptCallback () |
| void | interrupt (int use_semaphore=0) |
| void | pause (bool dopause) |
| bool | isPaused () const |
| void | setSignalCallback (UTsigHandler function) |
| bool | testMemoryThreshold () |
| int | opStart (const char *opname=0, int npoll=0, int immediate_dialog=0, int *opid=0) |
| int | opInterrupt (int percent=-1) |
| void | opEnd (int opid=-1) |
| void | setLongOpText (const char *longoptext) |
| void | setLongPercent (float percent) |
Static Public Member Functions | |
| static void | setUpdateModeCallback (OPUI_UpdateModeCB function) |
| static void | setEscapeCheckCallback (UI_CheckForEscapeCB function) |
| static bool | getIsEscapeCheckCallbackSet () |
Protected Member Functions | |
| const char * | getSharedKey () const |
| virtual int | detach () |
CHOP/CHOP_Blend.C, CHOP/CHOP_Spring.C, CHOP/CHOP_Spring.h, POP/POP_CircleForce.C, POP/POP_LocalForce.C, ROP/ROP_Dumper.C, ROP/ROP_Dumper.h, SIM/SIM_GasAdd.C, SOP/SOP_PrimVOP.C, and SOP/SOP_Star.C.
Definition at line 80 of file UT_Interrupt.h.
| UT_Interrupt::UT_Interrupt | ( | const char * | app_title = 0 |
) | [explicit] |
| virtual UT_Interrupt::~UT_Interrupt | ( | ) | [virtual] |
| virtual int UT_Interrupt::detach | ( | ) | [protected, virtual] |
Reimplemented from UT_SharedMem.
| bool UT_Interrupt::getAllowUI | ( | ) | const [inline] |
Definition at line 111 of file UT_Interrupt.h.
| const char* UT_Interrupt::getAppTitle | ( | ) | const [inline] |
Definition at line 159 of file UT_Interrupt.h.
| bool UT_Interrupt::getInterruptable | ( | ) | const [inline] |
Definition at line 109 of file UT_Interrupt.h.
| UT_Lock& UT_Interrupt::getInterruptableLock | ( | ) | [inline] |
Definition at line 110 of file UT_Interrupt.h.
| UT_InterruptHandler* UT_Interrupt::getInterruptHandler | ( | ) | [inline] |
Definition at line 174 of file UT_Interrupt.h.
| static bool UT_Interrupt::getIsEscapeCheckCallbackSet | ( | ) | [inline, static] |
Definition at line 185 of file UT_Interrupt.h.
| const char* UT_Interrupt::getSharedKey | ( | ) | const [protected] |
| void UT_Interrupt::interrupt | ( | int | use_semaphore = 0 |
) |
| bool UT_Interrupt::isEnabled | ( | ) | const [inline] |
Definition at line 92 of file UT_Interrupt.h.
| bool UT_Interrupt::isPaused | ( | ) | const |
| void UT_Interrupt::opEnd | ( | int | opid = -1 |
) |
To use the long operation mechanism invoke "opStart" once, giving the name of the operation and (if possible) an estimate of the number of calls which are planned to be made to the opInterrupt method. The start method will return zero if the operation has already been terminated (possibly from a containing long operation) and should not even start. In that case, you *must* still call opEnd(). It will return one if the operation can proceed normally.
During the long operation, invoke the "opInterrupt" method (if possible, giving a value between 0 and 100 indicating the percentage of the operation that is complete). This method will return zero if the operation should continue and one if a request was made to terminate. When the operation is complete, invoke the "opEnd" method. This should be called even if the operation was interrupted.
The 'immediate_dialog' flag causes the idialog program to be started immediately instead of waiting for a timeout. This is the only way to start the idialog progress monitor, and should only be used for very long operations where the user would minimize Houdini (like rendering)
The opid can be used to verify nesting of interrupts. It can be passed to opEnd to verify that the nesting is proper...
These methods are now thread safe. Only the main thread will start the interrupt server.
| int UT_Interrupt::opInterrupt | ( | int | percent = -1 |
) |
To use the long operation mechanism invoke "opStart" once, giving the name of the operation and (if possible) an estimate of the number of calls which are planned to be made to the opInterrupt method. The start method will return zero if the operation has already been terminated (possibly from a containing long operation) and should not even start. In that case, you *must* still call opEnd(). It will return one if the operation can proceed normally.
During the long operation, invoke the "opInterrupt" method (if possible, giving a value between 0 and 100 indicating the percentage of the operation that is complete). This method will return zero if the operation should continue and one if a request was made to terminate. When the operation is complete, invoke the "opEnd" method. This should be called even if the operation was interrupted.
The 'immediate_dialog' flag causes the idialog program to be started immediately instead of waiting for a timeout. This is the only way to start the idialog progress monitor, and should only be used for very long operations where the user would minimize Houdini (like rendering)
The opid can be used to verify nesting of interrupts. It can be passed to opEnd to verify that the nesting is proper...
These methods are now thread safe. Only the main thread will start the interrupt server.
| int UT_Interrupt::opStart | ( | const char * | opname = 0, |
|
| int | npoll = 0, |
|||
| int | immediate_dialog = 0, |
|||
| int * | opid = 0 | |||
| ) |
To use the long operation mechanism invoke "opStart" once, giving the name of the operation and (if possible) an estimate of the number of calls which are planned to be made to the opInterrupt method. The start method will return zero if the operation has already been terminated (possibly from a containing long operation) and should not even start. In that case, you *must* still call opEnd(). It will return one if the operation can proceed normally.
During the long operation, invoke the "opInterrupt" method (if possible, giving a value between 0 and 100 indicating the percentage of the operation that is complete). This method will return zero if the operation should continue and one if a request was made to terminate. When the operation is complete, invoke the "opEnd" method. This should be called even if the operation was interrupted.
The 'immediate_dialog' flag causes the idialog program to be started immediately instead of waiting for a timeout. This is the only way to start the idialog progress monitor, and should only be used for very long operations where the user would minimize Houdini (like rendering)
The opid can be used to verify nesting of interrupts. It can be passed to opEnd to verify that the nesting is proper...
These methods are now thread safe. Only the main thread will start the interrupt server.
| void UT_Interrupt::pause | ( | bool | dopause | ) |
| void UT_Interrupt::popInterruptCallback | ( | ) |
| void UT_Interrupt::pushInterruptCallback | ( | void(*)() | callback | ) |
| void UT_Interrupt::setActiveCallback | ( | UT_InterruptCB | function | ) | [inline] |
Definition at line 165 of file UT_Interrupt.h.
| void UT_Interrupt::setAppTitle | ( | const char * | title | ) |
| void UT_Interrupt::setEnabled | ( | int | state, | |
| int | print_longtext = 0 | |||
| ) |
| static void UT_Interrupt::setEscapeCheckCallback | ( | UI_CheckForEscapeCB | function | ) | [inline, static] |
Definition at line 183 of file UT_Interrupt.h.
| bool UT_Interrupt::setInterruptable | ( | bool | allow, | |
| bool * | prev_enabled = NULL, |
|||
| bool | allow_ui = false | |||
| ) |
| void UT_Interrupt::setInterruptHandler | ( | UT_InterruptHandler * | hand | ) | [inline] |
Definition at line 168 of file UT_Interrupt.h.
| void UT_Interrupt::setLongOpText | ( | const char * | longoptext | ) |
Call this before a new set of opStart()s are called. It will also cause idialog to configure the user interface with two text boxes instead of the usual single line. After that, you can call setLongOpText() to modify the second line message.
| void UT_Interrupt::setLongPercent | ( | float | percent | ) |
Call this before a new set of opStart()s are called. It will also cause idialog to configure the user interface with two text boxes instead of the usual single line. After that, you can call setLongOpText() to modify the second line message.
| void UT_Interrupt::setSignalCallback | ( | UTsigHandler | function | ) |
| static void UT_Interrupt::setUpdateModeCallback | ( | OPUI_UpdateModeCB | function | ) | [inline, static] |
Definition at line 178 of file UT_Interrupt.h.
| void UT_Interrupt::setUseLocks | ( | int | state | ) | [inline] |
Definition at line 96 of file UT_Interrupt.h.
| bool UT_Interrupt::testMemoryThreshold | ( | ) | [inline] |
Definition at line 212 of file UT_Interrupt.h.
1.5.9