|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
This class tracks the IDs of LW items, especially related to the LWItemFuncs callbacks. More...
#include <item.h>
Public Member Functions | |
| LWItemTracker (void) | |
| ~LWItemTracker (void) | |
| void | changeID (const LWItemID *idlist) |
| should be used for LWs changeID callback. | |
| void | refresh () |
| Refresh the list of IDs created from the tracked Items. | |
| void | trackItem (LWItem *item) |
| Add an item to track. | |
| void | trackItem (LWItem &item) |
| void | unTrackItem (LWItem &item) |
| void | unTrackItem (LWItem *item) |
| const LWItemID * | useItems () |
| Should be used for LWs useItems callback. | |
This class tracks the IDs of LW items, especially related to the LWItemFuncs callbacks.
LW Callbacks served:
Returns an array of items this instance depends on. If your plug-in's behavior is based on the parameters of other items (such as the positions of objects), you'll want to be re-evaluated after those parameters change, and you use this function to inform Layout of that. The array is terminated by LWITEM_NULL. The function can return NULL if the instance doesn't use any items. It can also return LWITEM_ALL to indicate that it wants to be evaluated after any change occurs.
Notification about a change in item IDs. This function is called if the IDs of items are going to change for any reason. The null-terminated item array passed to this function is of the form "old-1, new-1, old-2, new-2, ..." where the old ID is the value that is changing and the new ID is its new value. Clients should be careful to renumber each item only once. The changeID callback may also be called when an item's data, such as the geometry of an object, has changed, and when called for this reason, the old and new item IDs will be the same.
|
inline |
| lwpp::LWItemTracker::~LWItemTracker | ( | void | ) |
| void lwpp::LWItemTracker::changeID | ( | const LWItemID * | idlist | ) |
should be used for LWs changeID callback.
| void lwpp::LWItemTracker::refresh | ( | ) |
Refresh the list of IDs created from the tracked Items.
| void lwpp::LWItemTracker::trackItem | ( | LWItem * | item | ) |
Add an item to track.
| void lwpp::LWItemTracker::trackItem | ( | LWItem & | item | ) |
| void lwpp::LWItemTracker::unTrackItem | ( | LWItem & | item | ) |
| void lwpp::LWItemTracker::unTrackItem | ( | LWItem * | item | ) |
| const LWItemID * lwpp::LWItemTracker::useItems | ( | ) |
Should be used for LWs useItems callback.